1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service;
16  
17  
18  /**
19   * <a href="MBMessageLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link MBMessageLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       MBMessageLocalService
32   * @generated
33   */
34  public class MBMessageLocalServiceWrapper implements MBMessageLocalService {
35      public MBMessageLocalServiceWrapper(
36          MBMessageLocalService mbMessageLocalService) {
37          _mbMessageLocalService = mbMessageLocalService;
38      }
39  
40      public com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
41          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return _mbMessageLocalService.addMBMessage(mbMessage);
44      }
45  
46      public com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
47          long messageId) {
48          return _mbMessageLocalService.createMBMessage(messageId);
49      }
50  
51      public void deleteMBMessage(long messageId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          _mbMessageLocalService.deleteMBMessage(messageId);
55      }
56  
57      public void deleteMBMessage(
58          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          _mbMessageLocalService.deleteMBMessage(mbMessage);
61      }
62  
63      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.SystemException {
66          return _mbMessageLocalService.dynamicQuery(dynamicQuery);
67      }
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException {
72          return _mbMessageLocalService.dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException {
80          return _mbMessageLocalService.dynamicQuery(dynamicQuery, start, end,
81              orderByComparator);
82      }
83  
84      public int dynamicQueryCount(
85          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86          throws com.liferay.portal.kernel.exception.SystemException {
87          return _mbMessageLocalService.dynamicQueryCount(dynamicQuery);
88      }
89  
90      public com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
91          long messageId)
92          throws com.liferay.portal.kernel.exception.PortalException,
93              com.liferay.portal.kernel.exception.SystemException {
94          return _mbMessageLocalService.getMBMessage(messageId);
95      }
96  
97      public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
98          int start, int end)
99          throws com.liferay.portal.kernel.exception.SystemException {
100         return _mbMessageLocalService.getMBMessages(start, end);
101     }
102 
103     public int getMBMessagesCount()
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return _mbMessageLocalService.getMBMessagesCount();
106     }
107 
108     public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
109         com.liferay.portlet.messageboards.model.MBMessage mbMessage)
110         throws com.liferay.portal.kernel.exception.SystemException {
111         return _mbMessageLocalService.updateMBMessage(mbMessage);
112     }
113 
114     public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
115         com.liferay.portlet.messageboards.model.MBMessage mbMessage,
116         boolean merge)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return _mbMessageLocalService.updateMBMessage(mbMessage, merge);
119     }
120 
121     public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
122         long userId, java.lang.String userName, java.lang.String className,
123         long classPK, int status)
124         throws com.liferay.portal.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException {
126         return _mbMessageLocalService.addDiscussionMessage(userId, userName,
127             className, classPK, status);
128     }
129 
130     public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
131         long userId, java.lang.String userName, java.lang.String className,
132         long classPK, long threadId, long parentMessageId,
133         java.lang.String subject, java.lang.String body,
134         com.liferay.portal.service.ServiceContext serviceContext)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException {
137         return _mbMessageLocalService.addDiscussionMessage(userId, userName,
138             className, classPK, threadId, parentMessageId, subject, body,
139             serviceContext);
140     }
141 
142     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
143         long userId, java.lang.String userName, long groupId, long categoryId,
144         java.lang.String subject, java.lang.String body,
145         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
146         boolean anonymous, double priority, boolean allowPingbacks,
147         com.liferay.portal.service.ServiceContext serviceContext)
148         throws com.liferay.portal.kernel.exception.PortalException,
149             com.liferay.portal.kernel.exception.SystemException {
150         return _mbMessageLocalService.addMessage(userId, userName, groupId,
151             categoryId, subject, body, files, anonymous, priority,
152             allowPingbacks, serviceContext);
153     }
154 
155     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
156         long userId, java.lang.String userName, long groupId, long categoryId,
157         long threadId, long parentMessageId, java.lang.String subject,
158         java.lang.String body,
159         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
160         boolean anonymous, double priority, boolean allowPingbacks,
161         com.liferay.portal.service.ServiceContext serviceContext)
162         throws com.liferay.portal.kernel.exception.PortalException,
163             com.liferay.portal.kernel.exception.SystemException {
164         return _mbMessageLocalService.addMessage(userId, userName, groupId,
165             categoryId, threadId, parentMessageId, subject, body, files,
166             anonymous, priority, allowPingbacks, serviceContext);
167     }
168 
169     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
170         java.lang.String uuid, long userId, java.lang.String userName,
171         long groupId, long categoryId, long threadId, long parentMessageId,
172         java.lang.String subject, java.lang.String body,
173         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
174         boolean anonymous, double priority, boolean allowPingbacks,
175         com.liferay.portal.service.ServiceContext serviceContext)
176         throws com.liferay.portal.kernel.exception.PortalException,
177             com.liferay.portal.kernel.exception.SystemException {
178         return _mbMessageLocalService.addMessage(uuid, userId, userName,
179             groupId, categoryId, threadId, parentMessageId, subject, body,
180             files, anonymous, priority, allowPingbacks, serviceContext);
181     }
182 
183     public void addMessageResources(long messageId,
184         boolean addCommunityPermissions, boolean addGuestPermissions)
185         throws com.liferay.portal.kernel.exception.PortalException,
186             com.liferay.portal.kernel.exception.SystemException {
187         _mbMessageLocalService.addMessageResources(messageId,
188             addCommunityPermissions, addGuestPermissions);
189     }
190 
191     public void addMessageResources(
192         com.liferay.portlet.messageboards.model.MBMessage message,
193         boolean addCommunityPermissions, boolean addGuestPermissions)
194         throws com.liferay.portal.kernel.exception.PortalException,
195             com.liferay.portal.kernel.exception.SystemException {
196         _mbMessageLocalService.addMessageResources(message,
197             addCommunityPermissions, addGuestPermissions);
198     }
199 
200     public void addMessageResources(long messageId,
201         java.lang.String[] communityPermissions,
202         java.lang.String[] guestPermissions)
203         throws com.liferay.portal.kernel.exception.PortalException,
204             com.liferay.portal.kernel.exception.SystemException {
205         _mbMessageLocalService.addMessageResources(messageId,
206             communityPermissions, guestPermissions);
207     }
208 
209     public void addMessageResources(
210         com.liferay.portlet.messageboards.model.MBMessage message,
211         java.lang.String[] communityPermissions,
212         java.lang.String[] guestPermissions)
213         throws com.liferay.portal.kernel.exception.PortalException,
214             com.liferay.portal.kernel.exception.SystemException {
215         _mbMessageLocalService.addMessageResources(message,
216             communityPermissions, guestPermissions);
217     }
218 
219     public void deleteDiscussionMessage(long messageId)
220         throws com.liferay.portal.kernel.exception.PortalException,
221             com.liferay.portal.kernel.exception.SystemException {
222         _mbMessageLocalService.deleteDiscussionMessage(messageId);
223     }
224 
225     public void deleteDiscussionMessages(java.lang.String className,
226         long classPK)
227         throws com.liferay.portal.kernel.exception.PortalException,
228             com.liferay.portal.kernel.exception.SystemException {
229         _mbMessageLocalService.deleteDiscussionMessages(className, classPK);
230     }
231 
232     public void deleteMessage(long messageId)
233         throws com.liferay.portal.kernel.exception.PortalException,
234             com.liferay.portal.kernel.exception.SystemException {
235         _mbMessageLocalService.deleteMessage(messageId);
236     }
237 
238     public void deleteMessage(
239         com.liferay.portlet.messageboards.model.MBMessage message)
240         throws com.liferay.portal.kernel.exception.PortalException,
241             com.liferay.portal.kernel.exception.SystemException {
242         _mbMessageLocalService.deleteMessage(message);
243     }
244 
245     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
246         long groupId, long categoryId, int status, int start, int end)
247         throws com.liferay.portal.kernel.exception.SystemException {
248         return _mbMessageLocalService.getCategoryMessages(groupId, categoryId,
249             status, start, end);
250     }
251 
252     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
253         long groupId, long categoryId, int status, int start, int end,
254         com.liferay.portal.kernel.util.OrderByComparator obc)
255         throws com.liferay.portal.kernel.exception.SystemException {
256         return _mbMessageLocalService.getCategoryMessages(groupId, categoryId,
257             status, start, end, obc);
258     }
259 
260     public int getCategoryMessagesCount(long groupId, long categoryId,
261         int status) throws com.liferay.portal.kernel.exception.SystemException {
262         return _mbMessageLocalService.getCategoryMessagesCount(groupId,
263             categoryId, status);
264     }
265 
266     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
267         long companyId, int status, int start, int end)
268         throws com.liferay.portal.kernel.exception.SystemException {
269         return _mbMessageLocalService.getCompanyMessages(companyId, status,
270             start, end);
271     }
272 
273     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
274         long companyId, int status, int start, int end,
275         com.liferay.portal.kernel.util.OrderByComparator obc)
276         throws com.liferay.portal.kernel.exception.SystemException {
277         return _mbMessageLocalService.getCompanyMessages(companyId, status,
278             start, end, obc);
279     }
280 
281     public int getCompanyMessagesCount(long companyId, int status)
282         throws com.liferay.portal.kernel.exception.SystemException {
283         return _mbMessageLocalService.getCompanyMessagesCount(companyId, status);
284     }
285 
286     public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
287         long userId, java.lang.String className, long classPK, int status)
288         throws com.liferay.portal.kernel.exception.PortalException,
289             com.liferay.portal.kernel.exception.SystemException {
290         return _mbMessageLocalService.getDiscussionMessageDisplay(userId,
291             className, classPK, status);
292     }
293 
294     public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
295         long userId, java.lang.String className, long classPK, int status,
296         java.lang.String threadView)
297         throws com.liferay.portal.kernel.exception.PortalException,
298             com.liferay.portal.kernel.exception.SystemException {
299         return _mbMessageLocalService.getDiscussionMessageDisplay(userId,
300             className, classPK, status, threadView);
301     }
302 
303     public int getDiscussionMessagesCount(long classNameId, long classPK,
304         int status) throws com.liferay.portal.kernel.exception.SystemException {
305         return _mbMessageLocalService.getDiscussionMessagesCount(classNameId,
306             classPK, status);
307     }
308 
309     public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
310         java.lang.String className)
311         throws com.liferay.portal.kernel.exception.SystemException {
312         return _mbMessageLocalService.getDiscussions(className);
313     }
314 
315     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
316         long groupId, int status, int start, int end)
317         throws com.liferay.portal.kernel.exception.SystemException {
318         return _mbMessageLocalService.getGroupMessages(groupId, status, start,
319             end);
320     }
321 
322     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
323         long groupId, int status, int start, int end,
324         com.liferay.portal.kernel.util.OrderByComparator obc)
325         throws com.liferay.portal.kernel.exception.SystemException {
326         return _mbMessageLocalService.getGroupMessages(groupId, status, start,
327             end, obc);
328     }
329 
330     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
331         long groupId, long userId, int status, int start, int end)
332         throws com.liferay.portal.kernel.exception.SystemException {
333         return _mbMessageLocalService.getGroupMessages(groupId, userId, status,
334             start, end);
335     }
336 
337     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
338         long groupId, long userId, int status, int start, int end,
339         com.liferay.portal.kernel.util.OrderByComparator obc)
340         throws com.liferay.portal.kernel.exception.SystemException {
341         return _mbMessageLocalService.getGroupMessages(groupId, userId, status,
342             start, end, obc);
343     }
344 
345     public int getGroupMessagesCount(long groupId, int status)
346         throws com.liferay.portal.kernel.exception.SystemException {
347         return _mbMessageLocalService.getGroupMessagesCount(groupId, status);
348     }
349 
350     public int getGroupMessagesCount(long groupId, long userId, int status)
351         throws com.liferay.portal.kernel.exception.SystemException {
352         return _mbMessageLocalService.getGroupMessagesCount(groupId, userId,
353             status);
354     }
355 
356     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
357         long messageId)
358         throws com.liferay.portal.kernel.exception.PortalException,
359             com.liferay.portal.kernel.exception.SystemException {
360         return _mbMessageLocalService.getMessage(messageId);
361     }
362 
363     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
364         java.lang.String className, long classPK, int status)
365         throws com.liferay.portal.kernel.exception.SystemException {
366         return _mbMessageLocalService.getMessages(className, classPK, status);
367     }
368 
369     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
370         long messageId, int status, java.lang.String threadView)
371         throws com.liferay.portal.kernel.exception.PortalException,
372             com.liferay.portal.kernel.exception.SystemException {
373         return _mbMessageLocalService.getMessageDisplay(messageId, status,
374             threadView);
375     }
376 
377     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
378         com.liferay.portlet.messageboards.model.MBMessage message, int status,
379         java.lang.String threadView)
380         throws com.liferay.portal.kernel.exception.PortalException,
381             com.liferay.portal.kernel.exception.SystemException {
382         return _mbMessageLocalService.getMessageDisplay(message, status,
383             threadView);
384     }
385 
386     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
387         throws com.liferay.portal.kernel.exception.SystemException {
388         return _mbMessageLocalService.getNoAssetMessages();
389     }
390 
391     public int getPositionInThread(long messageId)
392         throws com.liferay.portal.kernel.exception.PortalException,
393             com.liferay.portal.kernel.exception.SystemException {
394         return _mbMessageLocalService.getPositionInThread(messageId);
395     }
396 
397     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
398         long threadId, int status)
399         throws com.liferay.portal.kernel.exception.SystemException {
400         return _mbMessageLocalService.getThreadMessages(threadId, status);
401     }
402 
403     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
404         long threadId, int status,
405         java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
406         throws com.liferay.portal.kernel.exception.SystemException {
407         return _mbMessageLocalService.getThreadMessages(threadId, status,
408             comparator);
409     }
410 
411     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
412         long threadId, int status, int start, int end)
413         throws com.liferay.portal.kernel.exception.SystemException {
414         return _mbMessageLocalService.getThreadMessages(threadId, status,
415             start, end);
416     }
417 
418     public int getThreadMessagesCount(long threadId, int status)
419         throws com.liferay.portal.kernel.exception.SystemException {
420         return _mbMessageLocalService.getThreadMessagesCount(threadId, status);
421     }
422 
423     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
424         long threadId, int status, int start, int end)
425         throws com.liferay.portal.kernel.exception.SystemException {
426         return _mbMessageLocalService.getThreadRepliesMessages(threadId,
427             status, start, end);
428     }
429 
430     public void subscribeMessage(long userId, long messageId)
431         throws com.liferay.portal.kernel.exception.PortalException,
432             com.liferay.portal.kernel.exception.SystemException {
433         _mbMessageLocalService.subscribeMessage(userId, messageId);
434     }
435 
436     public void unsubscribeMessage(long userId, long messageId)
437         throws com.liferay.portal.kernel.exception.PortalException,
438             com.liferay.portal.kernel.exception.SystemException {
439         _mbMessageLocalService.unsubscribeMessage(userId, messageId);
440     }
441 
442     public void updateAsset(long userId,
443         com.liferay.portlet.messageboards.model.MBMessage message,
444         long[] assetCategoryIds, java.lang.String[] assetTagNames)
445         throws com.liferay.portal.kernel.exception.PortalException,
446             com.liferay.portal.kernel.exception.SystemException {
447         _mbMessageLocalService.updateAsset(userId, message, assetCategoryIds,
448             assetTagNames);
449     }
450 
451     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
452         long userId, long messageId, java.lang.String subject,
453         java.lang.String body, int status)
454         throws com.liferay.portal.kernel.exception.PortalException,
455             com.liferay.portal.kernel.exception.SystemException {
456         return _mbMessageLocalService.updateDiscussionMessage(userId,
457             messageId, subject, body, status);
458     }
459 
460     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
461         long userId, long messageId, java.lang.String subject,
462         java.lang.String body,
463         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
464         java.util.List<String> existingFiles, double priority,
465         boolean allowPingbacks,
466         com.liferay.portal.service.ServiceContext serviceContext)
467         throws com.liferay.portal.kernel.exception.PortalException,
468             com.liferay.portal.kernel.exception.SystemException {
469         return _mbMessageLocalService.updateMessage(userId, messageId, subject,
470             body, files, existingFiles, priority, allowPingbacks, serviceContext);
471     }
472 
473     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
474         long messageId, java.util.Date createDate, java.util.Date modifiedDate)
475         throws com.liferay.portal.kernel.exception.PortalException,
476             com.liferay.portal.kernel.exception.SystemException {
477         return _mbMessageLocalService.updateMessage(messageId, createDate,
478             modifiedDate);
479     }
480 
481     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
482         long messageId, java.lang.String body)
483         throws com.liferay.portal.kernel.exception.PortalException,
484             com.liferay.portal.kernel.exception.SystemException {
485         return _mbMessageLocalService.updateMessage(messageId, body);
486     }
487 
488     public com.liferay.portlet.messageboards.model.MBMessage updateStatus(
489         long userId, com.liferay.portlet.messageboards.model.MBMessage message,
490         com.liferay.portal.service.ServiceContext serviceContext,
491         boolean reindex)
492         throws com.liferay.portal.kernel.exception.PortalException,
493             com.liferay.portal.kernel.exception.SystemException {
494         return _mbMessageLocalService.updateStatus(userId, message,
495             serviceContext, reindex);
496     }
497 
498     public com.liferay.portlet.messageboards.model.MBMessage updateStatus(
499         long userId, long messageId,
500         com.liferay.portal.service.ServiceContext serviceContext)
501         throws com.liferay.portal.kernel.exception.PortalException,
502             com.liferay.portal.kernel.exception.SystemException {
503         return _mbMessageLocalService.updateStatus(userId, messageId,
504             serviceContext);
505     }
506 
507     public MBMessageLocalService getWrappedMBMessageLocalService() {
508         return _mbMessageLocalService;
509     }
510 
511     private MBMessageLocalService _mbMessageLocalService;
512 }