1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.messageboards.service;
24  
25  
26  /**
27   * <a href="MBThreadLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.messageboards.service.MBThreadLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.messageboards.service.MBThreadLocalService
45   *
46   */
47  public class MBThreadLocalServiceUtil {
48      public static com.liferay.portlet.messageboards.model.MBThread addMBThread(
49          com.liferay.portlet.messageboards.model.MBThread mbThread)
50          throws com.liferay.portal.SystemException {
51          return _service.addMBThread(mbThread);
52      }
53  
54      public static void deleteMBThread(long threadId)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _service.deleteMBThread(threadId);
58      }
59  
60      public static void deleteMBThread(
61          com.liferay.portlet.messageboards.model.MBThread mbThread)
62          throws com.liferay.portal.SystemException {
63          _service.deleteMBThread(mbThread);
64      }
65  
66      public static java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return _service.dynamicQuery(dynamicQuery);
70      }
71  
72      public static java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.SystemException {
75          return _service.dynamicQuery(dynamicQuery, start, end);
76      }
77  
78      public static com.liferay.portlet.messageboards.model.MBThread getMBThread(
79          long threadId)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException {
82          return _service.getMBThread(threadId);
83      }
84  
85      public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
86          int start, int end) throws com.liferay.portal.SystemException {
87          return _service.getMBThreads(start, end);
88      }
89  
90      public static int getMBThreadsCount()
91          throws com.liferay.portal.SystemException {
92          return _service.getMBThreadsCount();
93      }
94  
95      public static com.liferay.portlet.messageboards.model.MBThread updateMBThread(
96          com.liferay.portlet.messageboards.model.MBThread mbThread)
97          throws com.liferay.portal.SystemException {
98          return _service.updateMBThread(mbThread);
99      }
100 
101     public static void deleteThread(long threadId)
102         throws com.liferay.portal.PortalException,
103             com.liferay.portal.SystemException {
104         _service.deleteThread(threadId);
105     }
106 
107     public static void deleteThread(
108         com.liferay.portlet.messageboards.model.MBThread thread)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException {
111         _service.deleteThread(thread);
112     }
113 
114     public static void deleteThreads(long categoryId)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         _service.deleteThreads(categoryId);
118     }
119 
120     public static int getCategoriesThreadsCount(
121         java.util.List<Long> categoryIds)
122         throws com.liferay.portal.SystemException {
123         return _service.getCategoriesThreadsCount(categoryIds);
124     }
125 
126     public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
127         long groupId, int start, int end)
128         throws com.liferay.portal.SystemException {
129         return _service.getGroupThreads(groupId, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
133         long groupId, long userId, int start, int end)
134         throws com.liferay.portal.SystemException {
135         return _service.getGroupThreads(groupId, userId, start, end);
136     }
137 
138     public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
139         long groupId, long userId, boolean subscribed, int start, int end)
140         throws com.liferay.portal.SystemException {
141         return _service.getGroupThreads(groupId, userId, subscribed, start, end);
142     }
143 
144     public static int getGroupThreadsCount(long groupId)
145         throws com.liferay.portal.SystemException {
146         return _service.getGroupThreadsCount(groupId);
147     }
148 
149     public static int getGroupThreadsCount(long groupId, long userId)
150         throws com.liferay.portal.SystemException {
151         return _service.getGroupThreadsCount(groupId, userId);
152     }
153 
154     public static int getGroupThreadsCount(long groupId, long userId,
155         boolean subscribed) throws com.liferay.portal.SystemException {
156         return _service.getGroupThreadsCount(groupId, userId, subscribed);
157     }
158 
159     public static com.liferay.portlet.messageboards.model.MBThread getThread(
160         long threadId)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException {
163         return _service.getThread(threadId);
164     }
165 
166     public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
167         long categoryId, int start, int end)
168         throws com.liferay.portal.SystemException {
169         return _service.getThreads(categoryId, start, end);
170     }
171 
172     public static int getThreadsCount(long categoryId)
173         throws com.liferay.portal.SystemException {
174         return _service.getThreadsCount(categoryId);
175     }
176 
177     public static boolean hasReadThread(long userId, long threadId)
178         throws com.liferay.portal.PortalException,
179             com.liferay.portal.SystemException {
180         return _service.hasReadThread(userId, threadId);
181     }
182 
183     public static com.liferay.portlet.messageboards.model.MBThread moveThread(
184         long categoryId, long threadId)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException {
187         return _service.moveThread(categoryId, threadId);
188     }
189 
190     public static com.liferay.portlet.messageboards.model.MBThread splitThread(
191         long messageId, javax.portlet.PortletPreferences prefs,
192         com.liferay.portal.theme.ThemeDisplay themeDisplay)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException {
195         return _service.splitThread(messageId, prefs, themeDisplay);
196     }
197 
198     public static com.liferay.portlet.messageboards.model.MBThread updateThread(
199         long threadId, int viewCount)
200         throws com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException {
202         return _service.updateThread(threadId, viewCount);
203     }
204 
205     public static MBThreadLocalService getService() {
206         return _service;
207     }
208 
209     public void setService(MBThreadLocalService service) {
210         _service = service;
211     }
212 
213     private static MBThreadLocalService _service;
214 }