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 com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
76          long messageId)
77          throws com.liferay.portal.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.SystemException {
79          return _mbMessageLocalService.getMBMessage(messageId);
80      }
81  
82      public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
83          int start, int end)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return _mbMessageLocalService.getMBMessages(start, end);
86      }
87  
88      public int getMBMessagesCount()
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return _mbMessageLocalService.getMBMessagesCount();
91      }
92  
93      public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
94          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
95          throws com.liferay.portal.kernel.exception.SystemException {
96          return _mbMessageLocalService.updateMBMessage(mbMessage);
97      }
98  
99      public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
100         com.liferay.portlet.messageboards.model.MBMessage mbMessage,
101         boolean merge)
102         throws com.liferay.portal.kernel.exception.SystemException {
103         return _mbMessageLocalService.updateMBMessage(mbMessage, merge);
104     }
105 
106     public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
107         long userId, java.lang.String userName, java.lang.String className,
108         long classPK, int status)
109         throws com.liferay.portal.kernel.exception.PortalException,
110             com.liferay.portal.kernel.exception.SystemException {
111         return _mbMessageLocalService.addDiscussionMessage(userId, userName,
112             className, classPK, status);
113     }
114 
115     public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
116         long userId, java.lang.String userName, java.lang.String className,
117         long classPK, long threadId, long parentMessageId,
118         java.lang.String subject, java.lang.String body,
119         com.liferay.portal.service.ServiceContext serviceContext)
120         throws com.liferay.portal.kernel.exception.PortalException,
121             com.liferay.portal.kernel.exception.SystemException {
122         return _mbMessageLocalService.addDiscussionMessage(userId, userName,
123             className, classPK, threadId, parentMessageId, subject, body,
124             serviceContext);
125     }
126 
127     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
128         long userId, java.lang.String userName, long groupId, long categoryId,
129         java.lang.String subject, java.lang.String body,
130         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
131         boolean anonymous, double priority, boolean allowPingbacks,
132         com.liferay.portal.service.ServiceContext serviceContext)
133         throws com.liferay.portal.kernel.exception.PortalException,
134             com.liferay.portal.kernel.exception.SystemException {
135         return _mbMessageLocalService.addMessage(userId, userName, groupId,
136             categoryId, subject, body, files, anonymous, priority,
137             allowPingbacks, serviceContext);
138     }
139 
140     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
141         long userId, java.lang.String userName, long groupId, long categoryId,
142         long threadId, long parentMessageId, java.lang.String subject,
143         java.lang.String body,
144         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
145         boolean anonymous, double priority, boolean allowPingbacks,
146         com.liferay.portal.service.ServiceContext serviceContext)
147         throws com.liferay.portal.kernel.exception.PortalException,
148             com.liferay.portal.kernel.exception.SystemException {
149         return _mbMessageLocalService.addMessage(userId, userName, groupId,
150             categoryId, threadId, parentMessageId, subject, body, files,
151             anonymous, priority, allowPingbacks, serviceContext);
152     }
153 
154     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
155         java.lang.String uuid, long userId, java.lang.String userName,
156         long groupId, long categoryId, long threadId, long parentMessageId,
157         java.lang.String subject, java.lang.String body,
158         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
159         boolean anonymous, double priority, boolean allowPingbacks,
160         com.liferay.portal.service.ServiceContext serviceContext)
161         throws com.liferay.portal.kernel.exception.PortalException,
162             com.liferay.portal.kernel.exception.SystemException {
163         return _mbMessageLocalService.addMessage(uuid, userId, userName,
164             groupId, categoryId, threadId, parentMessageId, subject, body,
165             files, anonymous, priority, allowPingbacks, serviceContext);
166     }
167 
168     public void addMessageResources(long messageId,
169         boolean addCommunityPermissions, boolean addGuestPermissions)
170         throws com.liferay.portal.kernel.exception.PortalException,
171             com.liferay.portal.kernel.exception.SystemException {
172         _mbMessageLocalService.addMessageResources(messageId,
173             addCommunityPermissions, addGuestPermissions);
174     }
175 
176     public void addMessageResources(
177         com.liferay.portlet.messageboards.model.MBMessage message,
178         boolean addCommunityPermissions, boolean addGuestPermissions)
179         throws com.liferay.portal.kernel.exception.PortalException,
180             com.liferay.portal.kernel.exception.SystemException {
181         _mbMessageLocalService.addMessageResources(message,
182             addCommunityPermissions, addGuestPermissions);
183     }
184 
185     public void addMessageResources(long messageId,
186         java.lang.String[] communityPermissions,
187         java.lang.String[] guestPermissions)
188         throws com.liferay.portal.kernel.exception.PortalException,
189             com.liferay.portal.kernel.exception.SystemException {
190         _mbMessageLocalService.addMessageResources(messageId,
191             communityPermissions, guestPermissions);
192     }
193 
194     public void addMessageResources(
195         com.liferay.portlet.messageboards.model.MBMessage message,
196         java.lang.String[] communityPermissions,
197         java.lang.String[] guestPermissions)
198         throws com.liferay.portal.kernel.exception.PortalException,
199             com.liferay.portal.kernel.exception.SystemException {
200         _mbMessageLocalService.addMessageResources(message,
201             communityPermissions, guestPermissions);
202     }
203 
204     public void deleteDiscussionMessage(long messageId)
205         throws com.liferay.portal.kernel.exception.PortalException,
206             com.liferay.portal.kernel.exception.SystemException {
207         _mbMessageLocalService.deleteDiscussionMessage(messageId);
208     }
209 
210     public void deleteDiscussionMessages(java.lang.String className,
211         long classPK)
212         throws com.liferay.portal.kernel.exception.PortalException,
213             com.liferay.portal.kernel.exception.SystemException {
214         _mbMessageLocalService.deleteDiscussionMessages(className, classPK);
215     }
216 
217     public void deleteMessage(long messageId)
218         throws com.liferay.portal.kernel.exception.PortalException,
219             com.liferay.portal.kernel.exception.SystemException {
220         _mbMessageLocalService.deleteMessage(messageId);
221     }
222 
223     public void deleteMessage(
224         com.liferay.portlet.messageboards.model.MBMessage message)
225         throws com.liferay.portal.kernel.exception.PortalException,
226             com.liferay.portal.kernel.exception.SystemException {
227         _mbMessageLocalService.deleteMessage(message);
228     }
229 
230     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
231         long groupId, long categoryId, int status, int start, int end)
232         throws com.liferay.portal.kernel.exception.SystemException {
233         return _mbMessageLocalService.getCategoryMessages(groupId, categoryId,
234             status, start, end);
235     }
236 
237     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
238         long groupId, long categoryId, int status, int start, int end,
239         com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.kernel.exception.SystemException {
241         return _mbMessageLocalService.getCategoryMessages(groupId, categoryId,
242             status, start, end, obc);
243     }
244 
245     public int getCategoryMessagesCount(long groupId, long categoryId,
246         int status) throws com.liferay.portal.kernel.exception.SystemException {
247         return _mbMessageLocalService.getCategoryMessagesCount(groupId,
248             categoryId, status);
249     }
250 
251     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
252         long companyId, int status, int start, int end)
253         throws com.liferay.portal.kernel.exception.SystemException {
254         return _mbMessageLocalService.getCompanyMessages(companyId, status,
255             start, end);
256     }
257 
258     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
259         long companyId, int status, int start, int end,
260         com.liferay.portal.kernel.util.OrderByComparator obc)
261         throws com.liferay.portal.kernel.exception.SystemException {
262         return _mbMessageLocalService.getCompanyMessages(companyId, status,
263             start, end, obc);
264     }
265 
266     public int getCompanyMessagesCount(long companyId, int status)
267         throws com.liferay.portal.kernel.exception.SystemException {
268         return _mbMessageLocalService.getCompanyMessagesCount(companyId, status);
269     }
270 
271     public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
272         long userId, java.lang.String className, long classPK, int status)
273         throws com.liferay.portal.kernel.exception.PortalException,
274             com.liferay.portal.kernel.exception.SystemException {
275         return _mbMessageLocalService.getDiscussionMessageDisplay(userId,
276             className, classPK, status);
277     }
278 
279     public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
280         long userId, java.lang.String className, long classPK, int status,
281         java.lang.String threadView)
282         throws com.liferay.portal.kernel.exception.PortalException,
283             com.liferay.portal.kernel.exception.SystemException {
284         return _mbMessageLocalService.getDiscussionMessageDisplay(userId,
285             className, classPK, status, threadView);
286     }
287 
288     public int getDiscussionMessagesCount(long classNameId, long classPK,
289         int status) throws com.liferay.portal.kernel.exception.SystemException {
290         return _mbMessageLocalService.getDiscussionMessagesCount(classNameId,
291             classPK, status);
292     }
293 
294     public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
295         java.lang.String className)
296         throws com.liferay.portal.kernel.exception.SystemException {
297         return _mbMessageLocalService.getDiscussions(className);
298     }
299 
300     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
301         long groupId, int status, int start, int end)
302         throws com.liferay.portal.kernel.exception.SystemException {
303         return _mbMessageLocalService.getGroupMessages(groupId, status, start,
304             end);
305     }
306 
307     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
308         long groupId, int status, int start, int end,
309         com.liferay.portal.kernel.util.OrderByComparator obc)
310         throws com.liferay.portal.kernel.exception.SystemException {
311         return _mbMessageLocalService.getGroupMessages(groupId, status, start,
312             end, obc);
313     }
314 
315     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
316         long groupId, long userId, int status, int start, int end)
317         throws com.liferay.portal.kernel.exception.SystemException {
318         return _mbMessageLocalService.getGroupMessages(groupId, userId, status,
319             start, end);
320     }
321 
322     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
323         long groupId, long userId, 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, userId, status,
327             start, end, obc);
328     }
329 
330     public int getGroupMessagesCount(long groupId, int status)
331         throws com.liferay.portal.kernel.exception.SystemException {
332         return _mbMessageLocalService.getGroupMessagesCount(groupId, status);
333     }
334 
335     public int getGroupMessagesCount(long groupId, long userId, int status)
336         throws com.liferay.portal.kernel.exception.SystemException {
337         return _mbMessageLocalService.getGroupMessagesCount(groupId, userId,
338             status);
339     }
340 
341     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
342         long messageId)
343         throws com.liferay.portal.kernel.exception.PortalException,
344             com.liferay.portal.kernel.exception.SystemException {
345         return _mbMessageLocalService.getMessage(messageId);
346     }
347 
348     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
349         java.lang.String className, long classPK, int status)
350         throws com.liferay.portal.kernel.exception.SystemException {
351         return _mbMessageLocalService.getMessages(className, classPK, status);
352     }
353 
354     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
355         long messageId, int status, java.lang.String threadView)
356         throws com.liferay.portal.kernel.exception.PortalException,
357             com.liferay.portal.kernel.exception.SystemException {
358         return _mbMessageLocalService.getMessageDisplay(messageId, status,
359             threadView);
360     }
361 
362     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
363         com.liferay.portlet.messageboards.model.MBMessage message, int status,
364         java.lang.String threadView)
365         throws com.liferay.portal.kernel.exception.PortalException,
366             com.liferay.portal.kernel.exception.SystemException {
367         return _mbMessageLocalService.getMessageDisplay(message, status,
368             threadView);
369     }
370 
371     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
372         throws com.liferay.portal.kernel.exception.SystemException {
373         return _mbMessageLocalService.getNoAssetMessages();
374     }
375 
376     public int getPositionInThread(long messageId)
377         throws com.liferay.portal.kernel.exception.PortalException,
378             com.liferay.portal.kernel.exception.SystemException {
379         return _mbMessageLocalService.getPositionInThread(messageId);
380     }
381 
382     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
383         long threadId, int status)
384         throws com.liferay.portal.kernel.exception.SystemException {
385         return _mbMessageLocalService.getThreadMessages(threadId, status);
386     }
387 
388     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
389         long threadId, int status,
390         java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
391         throws com.liferay.portal.kernel.exception.SystemException {
392         return _mbMessageLocalService.getThreadMessages(threadId, status,
393             comparator);
394     }
395 
396     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
397         long threadId, int status, int start, int end)
398         throws com.liferay.portal.kernel.exception.SystemException {
399         return _mbMessageLocalService.getThreadMessages(threadId, status,
400             start, end);
401     }
402 
403     public int getThreadMessagesCount(long threadId, int status)
404         throws com.liferay.portal.kernel.exception.SystemException {
405         return _mbMessageLocalService.getThreadMessagesCount(threadId, status);
406     }
407 
408     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
409         long threadId, int status, int start, int end)
410         throws com.liferay.portal.kernel.exception.SystemException {
411         return _mbMessageLocalService.getThreadRepliesMessages(threadId,
412             status, start, end);
413     }
414 
415     public void subscribeMessage(long userId, long messageId)
416         throws com.liferay.portal.kernel.exception.PortalException,
417             com.liferay.portal.kernel.exception.SystemException {
418         _mbMessageLocalService.subscribeMessage(userId, messageId);
419     }
420 
421     public void unsubscribeMessage(long userId, long messageId)
422         throws com.liferay.portal.kernel.exception.PortalException,
423             com.liferay.portal.kernel.exception.SystemException {
424         _mbMessageLocalService.unsubscribeMessage(userId, messageId);
425     }
426 
427     public void updateAsset(long userId,
428         com.liferay.portlet.messageboards.model.MBMessage message,
429         long[] assetCategoryIds, java.lang.String[] assetTagNames)
430         throws com.liferay.portal.kernel.exception.PortalException,
431             com.liferay.portal.kernel.exception.SystemException {
432         _mbMessageLocalService.updateAsset(userId, message, assetCategoryIds,
433             assetTagNames);
434     }
435 
436     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
437         long userId, long messageId, java.lang.String subject,
438         java.lang.String body, int status)
439         throws com.liferay.portal.kernel.exception.PortalException,
440             com.liferay.portal.kernel.exception.SystemException {
441         return _mbMessageLocalService.updateDiscussionMessage(userId,
442             messageId, subject, body, status);
443     }
444 
445     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
446         long userId, long messageId, java.lang.String subject,
447         java.lang.String body,
448         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
449         java.util.List<String> existingFiles, double priority,
450         boolean allowPingbacks,
451         com.liferay.portal.service.ServiceContext serviceContext)
452         throws com.liferay.portal.kernel.exception.PortalException,
453             com.liferay.portal.kernel.exception.SystemException {
454         return _mbMessageLocalService.updateMessage(userId, messageId, subject,
455             body, files, existingFiles, priority, allowPingbacks, serviceContext);
456     }
457 
458     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
459         long messageId, java.util.Date createDate, java.util.Date modifiedDate)
460         throws com.liferay.portal.kernel.exception.PortalException,
461             com.liferay.portal.kernel.exception.SystemException {
462         return _mbMessageLocalService.updateMessage(messageId, createDate,
463             modifiedDate);
464     }
465 
466     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
467         long messageId, java.lang.String body)
468         throws com.liferay.portal.kernel.exception.PortalException,
469             com.liferay.portal.kernel.exception.SystemException {
470         return _mbMessageLocalService.updateMessage(messageId, body);
471     }
472 
473     public com.liferay.portlet.messageboards.model.MBMessage updateStatus(
474         long userId, com.liferay.portlet.messageboards.model.MBMessage message,
475         com.liferay.portal.service.ServiceContext serviceContext,
476         boolean reindex)
477         throws com.liferay.portal.kernel.exception.PortalException,
478             com.liferay.portal.kernel.exception.SystemException {
479         return _mbMessageLocalService.updateStatus(userId, message,
480             serviceContext, reindex);
481     }
482 
483     public com.liferay.portlet.messageboards.model.MBMessage updateStatus(
484         long userId, long messageId,
485         com.liferay.portal.service.ServiceContext serviceContext)
486         throws com.liferay.portal.kernel.exception.PortalException,
487             com.liferay.portal.kernel.exception.SystemException {
488         return _mbMessageLocalService.updateStatus(userId, messageId,
489             serviceContext);
490     }
491 
492     public MBMessageLocalService getWrappedMBMessageLocalService() {
493         return _mbMessageLocalService;
494     }
495 
496     private MBMessageLocalService _mbMessageLocalService;
497 }