001
014
015 package com.liferay.portlet.messageboards.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021
022 import com.liferay.portlet.messageboards.service.MBThreadServiceUtil;
023
024 import java.rmi.RemoteException;
025
026
066 @ProviderType
067 public class MBThreadServiceSoap {
068 public static void deleteThread(long threadId) throws RemoteException {
069 try {
070 MBThreadServiceUtil.deleteThread(threadId);
071 }
072 catch (Exception e) {
073 _log.error(e, e);
074
075 throw new RemoteException(e.getMessage());
076 }
077 }
078
079 public static com.liferay.portlet.messageboards.model.MBThreadSoap[] getGroupThreads(
080 long groupId, long userId, java.util.Date modifiedDate, int status,
081 int start, int end) throws RemoteException {
082 try {
083 java.util.List<com.liferay.portlet.messageboards.model.MBThread> returnValue =
084 MBThreadServiceUtil.getGroupThreads(groupId, userId,
085 modifiedDate, status, start, end);
086
087 return com.liferay.portlet.messageboards.model.MBThreadSoap.toSoapModels(returnValue);
088 }
089 catch (Exception e) {
090 _log.error(e, e);
091
092 throw new RemoteException(e.getMessage());
093 }
094 }
095
096 public static com.liferay.portlet.messageboards.model.MBThreadSoap[] getGroupThreads(
097 long groupId, long userId, int status, boolean subscribed,
098 boolean includeAnonymous, int start, int end) throws RemoteException {
099 try {
100 java.util.List<com.liferay.portlet.messageboards.model.MBThread> returnValue =
101 MBThreadServiceUtil.getGroupThreads(groupId, userId, status,
102 subscribed, includeAnonymous, start, end);
103
104 return com.liferay.portlet.messageboards.model.MBThreadSoap.toSoapModels(returnValue);
105 }
106 catch (Exception e) {
107 _log.error(e, e);
108
109 throw new RemoteException(e.getMessage());
110 }
111 }
112
113 public static com.liferay.portlet.messageboards.model.MBThreadSoap[] getGroupThreads(
114 long groupId, long userId, int status, boolean subscribed, int start,
115 int end) throws RemoteException {
116 try {
117 java.util.List<com.liferay.portlet.messageboards.model.MBThread> returnValue =
118 MBThreadServiceUtil.getGroupThreads(groupId, userId, status,
119 subscribed, start, end);
120
121 return com.liferay.portlet.messageboards.model.MBThreadSoap.toSoapModels(returnValue);
122 }
123 catch (Exception e) {
124 _log.error(e, e);
125
126 throw new RemoteException(e.getMessage());
127 }
128 }
129
130 public static com.liferay.portlet.messageboards.model.MBThreadSoap[] getGroupThreads(
131 long groupId, long userId, int status, int start, int end)
132 throws RemoteException {
133 try {
134 java.util.List<com.liferay.portlet.messageboards.model.MBThread> returnValue =
135 MBThreadServiceUtil.getGroupThreads(groupId, userId, status,
136 start, end);
137
138 return com.liferay.portlet.messageboards.model.MBThreadSoap.toSoapModels(returnValue);
139 }
140 catch (Exception e) {
141 _log.error(e, e);
142
143 throw new RemoteException(e.getMessage());
144 }
145 }
146
147 public static int getGroupThreadsCount(long groupId, long userId,
148 java.util.Date modifiedDate, int status) throws RemoteException {
149 try {
150 int returnValue = MBThreadServiceUtil.getGroupThreadsCount(groupId,
151 userId, modifiedDate, status);
152
153 return returnValue;
154 }
155 catch (Exception e) {
156 _log.error(e, e);
157
158 throw new RemoteException(e.getMessage());
159 }
160 }
161
162 public static int getGroupThreadsCount(long groupId, long userId, int status)
163 throws RemoteException {
164 try {
165 int returnValue = MBThreadServiceUtil.getGroupThreadsCount(groupId,
166 userId, status);
167
168 return returnValue;
169 }
170 catch (Exception e) {
171 _log.error(e, e);
172
173 throw new RemoteException(e.getMessage());
174 }
175 }
176
177 public static int getGroupThreadsCount(long groupId, long userId,
178 int status, boolean subscribed) throws RemoteException {
179 try {
180 int returnValue = MBThreadServiceUtil.getGroupThreadsCount(groupId,
181 userId, status, subscribed);
182
183 return returnValue;
184 }
185 catch (Exception e) {
186 _log.error(e, e);
187
188 throw new RemoteException(e.getMessage());
189 }
190 }
191
192 public static int getGroupThreadsCount(long groupId, long userId,
193 int status, boolean subscribed, boolean includeAnonymous)
194 throws RemoteException {
195 try {
196 int returnValue = MBThreadServiceUtil.getGroupThreadsCount(groupId,
197 userId, status, subscribed, includeAnonymous);
198
199 return returnValue;
200 }
201 catch (Exception e) {
202 _log.error(e, e);
203
204 throw new RemoteException(e.getMessage());
205 }
206 }
207
208 public static com.liferay.portlet.messageboards.model.MBThreadSoap[] getThreads(
209 long groupId, long categoryId, int status, int start, int end)
210 throws RemoteException {
211 try {
212 java.util.List<com.liferay.portlet.messageboards.model.MBThread> returnValue =
213 MBThreadServiceUtil.getThreads(groupId, categoryId, status,
214 start, end);
215
216 return com.liferay.portlet.messageboards.model.MBThreadSoap.toSoapModels(returnValue);
217 }
218 catch (Exception e) {
219 _log.error(e, e);
220
221 throw new RemoteException(e.getMessage());
222 }
223 }
224
225 public static int getThreadsCount(long groupId, long categoryId, int status)
226 throws RemoteException {
227 try {
228 int returnValue = MBThreadServiceUtil.getThreadsCount(groupId,
229 categoryId, status);
230
231 return returnValue;
232 }
233 catch (Exception e) {
234 _log.error(e, e);
235
236 throw new RemoteException(e.getMessage());
237 }
238 }
239
240 public static com.liferay.portal.kernel.lock.Lock lockThread(long threadId)
241 throws RemoteException {
242 try {
243 com.liferay.portal.kernel.lock.Lock returnValue = MBThreadServiceUtil.lockThread(threadId);
244
245 return returnValue;
246 }
247 catch (Exception e) {
248 _log.error(e, e);
249
250 throw new RemoteException(e.getMessage());
251 }
252 }
253
254 public static com.liferay.portlet.messageboards.model.MBThreadSoap moveThread(
255 long categoryId, long threadId) throws RemoteException {
256 try {
257 com.liferay.portlet.messageboards.model.MBThread returnValue = MBThreadServiceUtil.moveThread(categoryId,
258 threadId);
259
260 return com.liferay.portlet.messageboards.model.MBThreadSoap.toSoapModel(returnValue);
261 }
262 catch (Exception e) {
263 _log.error(e, e);
264
265 throw new RemoteException(e.getMessage());
266 }
267 }
268
269 public static com.liferay.portlet.messageboards.model.MBThreadSoap moveThreadFromTrash(
270 long categoryId, long threadId) throws RemoteException {
271 try {
272 com.liferay.portlet.messageboards.model.MBThread returnValue = MBThreadServiceUtil.moveThreadFromTrash(categoryId,
273 threadId);
274
275 return com.liferay.portlet.messageboards.model.MBThreadSoap.toSoapModel(returnValue);
276 }
277 catch (Exception e) {
278 _log.error(e, e);
279
280 throw new RemoteException(e.getMessage());
281 }
282 }
283
284 public static com.liferay.portlet.messageboards.model.MBThreadSoap moveThreadToTrash(
285 long threadId) throws RemoteException {
286 try {
287 com.liferay.portlet.messageboards.model.MBThread returnValue = MBThreadServiceUtil.moveThreadToTrash(threadId);
288
289 return com.liferay.portlet.messageboards.model.MBThreadSoap.toSoapModel(returnValue);
290 }
291 catch (Exception e) {
292 _log.error(e, e);
293
294 throw new RemoteException(e.getMessage());
295 }
296 }
297
298 public static void restoreThreadFromTrash(long threadId)
299 throws RemoteException {
300 try {
301 MBThreadServiceUtil.restoreThreadFromTrash(threadId);
302 }
303 catch (Exception e) {
304 _log.error(e, e);
305
306 throw new RemoteException(e.getMessage());
307 }
308 }
309
310 public static com.liferay.portlet.messageboards.model.MBThreadSoap splitThread(
311 long messageId, java.lang.String subject,
312 com.liferay.portal.service.ServiceContext serviceContext)
313 throws RemoteException {
314 try {
315 com.liferay.portlet.messageboards.model.MBThread returnValue = MBThreadServiceUtil.splitThread(messageId,
316 subject, serviceContext);
317
318 return com.liferay.portlet.messageboards.model.MBThreadSoap.toSoapModel(returnValue);
319 }
320 catch (Exception e) {
321 _log.error(e, e);
322
323 throw new RemoteException(e.getMessage());
324 }
325 }
326
327 public static void unlockThread(long threadId) throws RemoteException {
328 try {
329 MBThreadServiceUtil.unlockThread(threadId);
330 }
331 catch (Exception e) {
332 _log.error(e, e);
333
334 throw new RemoteException(e.getMessage());
335 }
336 }
337
338 private static Log _log = LogFactoryUtil.getLog(MBThreadServiceSoap.class);
339 }