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