001
014
015 package com.liferay.portlet.messageboards.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class MBThreadServiceUtil {
038
043
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static void deleteThread(long threadId)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException {
065 getService().deleteThread(threadId);
066 }
067
068 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
069 long groupId, long userId, java.util.Date modifiedDate, int status,
070 int start, int end)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 return getService()
074 .getGroupThreads(groupId, userId, modifiedDate, status,
075 start, end);
076 }
077
078 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
079 long groupId, long userId, int status, boolean subscribed,
080 boolean includeAnonymous, int start, int end)
081 throws com.liferay.portal.kernel.exception.PortalException,
082 com.liferay.portal.kernel.exception.SystemException {
083 return getService()
084 .getGroupThreads(groupId, userId, status, subscribed,
085 includeAnonymous, start, end);
086 }
087
088 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
089 long groupId, long userId, int status, boolean subscribed, int start,
090 int end)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException {
093 return getService()
094 .getGroupThreads(groupId, userId, status, subscribed, start,
095 end);
096 }
097
098 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
099 long groupId, long userId, int status, int start, int end)
100 throws com.liferay.portal.kernel.exception.PortalException,
101 com.liferay.portal.kernel.exception.SystemException {
102 return getService().getGroupThreads(groupId, userId, status, start, end);
103 }
104
105 public static int getGroupThreadsCount(long groupId, long userId,
106 java.util.Date modifiedDate, int status)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService()
109 .getGroupThreadsCount(groupId, userId, modifiedDate, status);
110 }
111
112 public static int getGroupThreadsCount(long groupId, long userId, int status)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().getGroupThreadsCount(groupId, userId, status);
115 }
116
117 public static int getGroupThreadsCount(long groupId, long userId,
118 int status, boolean subscribed)
119 throws com.liferay.portal.kernel.exception.SystemException {
120 return getService()
121 .getGroupThreadsCount(groupId, userId, status, subscribed);
122 }
123
124 public static int getGroupThreadsCount(long groupId, long userId,
125 int status, boolean subscribed, boolean includeAnonymous)
126 throws com.liferay.portal.kernel.exception.SystemException {
127 return getService()
128 .getGroupThreadsCount(groupId, userId, status, subscribed,
129 includeAnonymous);
130 }
131
132 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
133 long groupId, long categoryId, int status, int start, int end)
134 throws com.liferay.portal.kernel.exception.SystemException {
135 return getService().getThreads(groupId, categoryId, status, start, end);
136 }
137
138 public static int getThreadsCount(long groupId, long categoryId, int status)
139 throws com.liferay.portal.kernel.exception.SystemException {
140 return getService().getThreadsCount(groupId, categoryId, status);
141 }
142
143 public static com.liferay.portal.model.Lock lockThread(long threadId)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException {
146 return getService().lockThread(threadId);
147 }
148
149 public static com.liferay.portlet.messageboards.model.MBThread moveThread(
150 long categoryId, long threadId)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException {
153 return getService().moveThread(categoryId, threadId);
154 }
155
156 public static com.liferay.portlet.messageboards.model.MBThread moveThreadFromTrash(
157 long categoryId, long threadId)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException {
160 return getService().moveThreadFromTrash(categoryId, threadId);
161 }
162
163 public static com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
164 long threadId)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException {
167 return getService().moveThreadToTrash(threadId);
168 }
169
170 public static void restoreThreadFromTrash(long threadId)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException {
173 getService().restoreThreadFromTrash(threadId);
174 }
175
176 public static com.liferay.portal.kernel.search.Hits search(long groupId,
177 long creatorUserId, int status, int start, int end)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException {
180 return getService().search(groupId, creatorUserId, status, start, end);
181 }
182
183 public static com.liferay.portal.kernel.search.Hits search(long groupId,
184 long creatorUserId, long startDate, long endDate, int status,
185 int start, int end)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return getService()
189 .search(groupId, creatorUserId, startDate, endDate, status,
190 start, end);
191 }
192
193 public static com.liferay.portlet.messageboards.model.MBThread splitThread(
194 long messageId, java.lang.String subject,
195 com.liferay.portal.service.ServiceContext serviceContext)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException {
198 return getService().splitThread(messageId, subject, serviceContext);
199 }
200
201 public static void unlockThread(long threadId)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException {
204 getService().unlockThread(threadId);
205 }
206
207 public static MBThreadService getService() {
208 if (_service == null) {
209 _service = (MBThreadService)PortalBeanLocatorUtil.locate(MBThreadService.class.getName());
210
211 ReferenceRegistry.registerReference(MBThreadServiceUtil.class,
212 "_service");
213 }
214
215 return _service;
216 }
217
218
221 public void setService(MBThreadService service) {
222 }
223
224 private static MBThreadService _service;
225 }