1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.messageboards.service;
24  
25  
26  /**
27   * <a href="MBMessageLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link MBMessageLocalService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       MBMessageLocalService
40   * @generated
41   */
42  public class MBMessageLocalServiceWrapper implements MBMessageLocalService {
43      public MBMessageLocalServiceWrapper(
44          MBMessageLocalService mbMessageLocalService) {
45          _mbMessageLocalService = mbMessageLocalService;
46      }
47  
48      public com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
49          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
50          throws com.liferay.portal.SystemException {
51          return _mbMessageLocalService.addMBMessage(mbMessage);
52      }
53  
54      public com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
55          long messageId) {
56          return _mbMessageLocalService.createMBMessage(messageId);
57      }
58  
59      public void deleteMBMessage(long messageId)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException {
62          _mbMessageLocalService.deleteMBMessage(messageId);
63      }
64  
65      public void deleteMBMessage(
66          com.liferay.portlet.messageboards.model.MBMessage mbMessage)
67          throws com.liferay.portal.SystemException {
68          _mbMessageLocalService.deleteMBMessage(mbMessage);
69      }
70  
71      public java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73          throws com.liferay.portal.SystemException {
74          return _mbMessageLocalService.dynamicQuery(dynamicQuery);
75      }
76  
77      public java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end) throws com.liferay.portal.SystemException {
80          return _mbMessageLocalService.dynamicQuery(dynamicQuery, start, end);
81      }
82  
83      public com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
84          long messageId)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException {
87          return _mbMessageLocalService.getMBMessage(messageId);
88      }
89  
90      public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
91          int start, int end) throws com.liferay.portal.SystemException {
92          return _mbMessageLocalService.getMBMessages(start, end);
93      }
94  
95      public int getMBMessagesCount() throws com.liferay.portal.SystemException {
96          return _mbMessageLocalService.getMBMessagesCount();
97      }
98  
99      public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
100         com.liferay.portlet.messageboards.model.MBMessage mbMessage)
101         throws com.liferay.portal.SystemException {
102         return _mbMessageLocalService.updateMBMessage(mbMessage);
103     }
104 
105     public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
106         com.liferay.portlet.messageboards.model.MBMessage mbMessage,
107         boolean merge) throws com.liferay.portal.SystemException {
108         return _mbMessageLocalService.updateMBMessage(mbMessage, merge);
109     }
110 
111     public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
112         long userId, java.lang.String userName, java.lang.String className,
113         long classPK)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException {
116         return _mbMessageLocalService.addDiscussionMessage(userId, userName,
117             className, classPK);
118     }
119 
120     public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
121         long userId, java.lang.String userName, java.lang.String className,
122         long classPK, long threadId, long parentMessageId,
123         java.lang.String subject, java.lang.String body,
124         com.liferay.portal.service.ServiceContext serviceContext)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException {
127         return _mbMessageLocalService.addDiscussionMessage(userId, userName,
128             className, classPK, threadId, parentMessageId, subject, body,
129             serviceContext);
130     }
131 
132     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
133         long userId, java.lang.String userName, long categoryId, long threadId,
134         long parentMessageId, java.lang.String subject, java.lang.String body,
135         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
136         boolean anonymous, double priority,
137         com.liferay.portal.service.ServiceContext serviceContext)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException {
140         return _mbMessageLocalService.addMessage(userId, userName, categoryId,
141             threadId, parentMessageId, subject, body, files, anonymous,
142             priority, serviceContext);
143     }
144 
145     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
146         long userId, java.lang.String userName, long categoryId,
147         java.lang.String subject, java.lang.String body,
148         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
149         boolean anonymous, double priority,
150         com.liferay.portal.service.ServiceContext serviceContext)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException {
153         return _mbMessageLocalService.addMessage(userId, userName, categoryId,
154             subject, body, files, anonymous, priority, serviceContext);
155     }
156 
157     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
158         java.lang.String uuid, long userId, java.lang.String userName,
159         long categoryId, long threadId, long parentMessageId,
160         java.lang.String subject, java.lang.String body,
161         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
162         boolean anonymous, double priority,
163         com.liferay.portal.service.ServiceContext serviceContext)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException {
166         return _mbMessageLocalService.addMessage(uuid, userId, userName,
167             categoryId, threadId, parentMessageId, subject, body, files,
168             anonymous, priority, serviceContext);
169     }
170 
171     public void addMessageResources(long messageId,
172         boolean addCommunityPermissions, boolean addGuestPermissions)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException {
175         _mbMessageLocalService.addMessageResources(messageId,
176             addCommunityPermissions, addGuestPermissions);
177     }
178 
179     public void addMessageResources(long messageId,
180         java.lang.String[] communityPermissions,
181         java.lang.String[] guestPermissions)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException {
184         _mbMessageLocalService.addMessageResources(messageId,
185             communityPermissions, guestPermissions);
186     }
187 
188     public void addMessageResources(
189         com.liferay.portlet.messageboards.model.MBMessage message,
190         boolean addCommunityPermissions, boolean addGuestPermissions)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException {
193         _mbMessageLocalService.addMessageResources(message,
194             addCommunityPermissions, addGuestPermissions);
195     }
196 
197     public void addMessageResources(
198         com.liferay.portlet.messageboards.model.MBMessage message,
199         java.lang.String[] communityPermissions,
200         java.lang.String[] guestPermissions)
201         throws com.liferay.portal.PortalException,
202             com.liferay.portal.SystemException {
203         _mbMessageLocalService.addMessageResources(message,
204             communityPermissions, guestPermissions);
205     }
206 
207     public void deleteDiscussionMessage(long messageId)
208         throws com.liferay.portal.PortalException,
209             com.liferay.portal.SystemException {
210         _mbMessageLocalService.deleteDiscussionMessage(messageId);
211     }
212 
213     public void deleteDiscussionMessages(java.lang.String className,
214         long classPK)
215         throws com.liferay.portal.PortalException,
216             com.liferay.portal.SystemException {
217         _mbMessageLocalService.deleteDiscussionMessages(className, classPK);
218     }
219 
220     public void deleteMessage(long messageId)
221         throws com.liferay.portal.PortalException,
222             com.liferay.portal.SystemException {
223         _mbMessageLocalService.deleteMessage(messageId);
224     }
225 
226     public void deleteMessage(
227         com.liferay.portlet.messageboards.model.MBMessage message)
228         throws com.liferay.portal.PortalException,
229             com.liferay.portal.SystemException {
230         _mbMessageLocalService.deleteMessage(message);
231     }
232 
233     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
234         long categoryId, int start, int end)
235         throws com.liferay.portal.SystemException {
236         return _mbMessageLocalService.getCategoryMessages(categoryId, start, end);
237     }
238 
239     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
240         long categoryId, int start, int end,
241         com.liferay.portal.kernel.util.OrderByComparator obc)
242         throws com.liferay.portal.SystemException {
243         return _mbMessageLocalService.getCategoryMessages(categoryId, start,
244             end, obc);
245     }
246 
247     public int getCategoryMessagesCount(long categoryId)
248         throws com.liferay.portal.SystemException {
249         return _mbMessageLocalService.getCategoryMessagesCount(categoryId);
250     }
251 
252     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
253         long companyId, int start, int end)
254         throws com.liferay.portal.SystemException {
255         return _mbMessageLocalService.getCompanyMessages(companyId, start, end);
256     }
257 
258     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
259         long companyId, int start, int end,
260         com.liferay.portal.kernel.util.OrderByComparator obc)
261         throws com.liferay.portal.SystemException {
262         return _mbMessageLocalService.getCompanyMessages(companyId, start, end,
263             obc);
264     }
265 
266     public int getCompanyMessagesCount(long companyId)
267         throws com.liferay.portal.SystemException {
268         return _mbMessageLocalService.getCompanyMessagesCount(companyId);
269     }
270 
271     public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
272         long userId, java.lang.String className, long classPK)
273         throws com.liferay.portal.PortalException,
274             com.liferay.portal.SystemException {
275         return _mbMessageLocalService.getDiscussionMessageDisplay(userId,
276             className, classPK);
277     }
278 
279     public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
280         long userId, java.lang.String className, long classPK,
281         java.lang.String threadView)
282         throws com.liferay.portal.PortalException,
283             com.liferay.portal.SystemException {
284         return _mbMessageLocalService.getDiscussionMessageDisplay(userId,
285             className, classPK, threadView);
286     }
287 
288     public int getDiscussionMessagesCount(long classNameId, long classPK)
289         throws com.liferay.portal.SystemException {
290         return _mbMessageLocalService.getDiscussionMessagesCount(classNameId,
291             classPK);
292     }
293 
294     public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
295         java.lang.String className) throws com.liferay.portal.SystemException {
296         return _mbMessageLocalService.getDiscussions(className);
297     }
298 
299     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
300         long groupId, int start, int end)
301         throws com.liferay.portal.SystemException {
302         return _mbMessageLocalService.getGroupMessages(groupId, start, end);
303     }
304 
305     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
306         long groupId, int start, int end,
307         com.liferay.portal.kernel.util.OrderByComparator obc)
308         throws com.liferay.portal.SystemException {
309         return _mbMessageLocalService.getGroupMessages(groupId, start, end, obc);
310     }
311 
312     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
313         long groupId, long userId, int start, int end)
314         throws com.liferay.portal.SystemException {
315         return _mbMessageLocalService.getGroupMessages(groupId, userId, start,
316             end);
317     }
318 
319     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
320         long groupId, long userId, int start, int end,
321         com.liferay.portal.kernel.util.OrderByComparator obc)
322         throws com.liferay.portal.SystemException {
323         return _mbMessageLocalService.getGroupMessages(groupId, userId, start,
324             end, obc);
325     }
326 
327     public int getGroupMessagesCount(long groupId)
328         throws com.liferay.portal.SystemException {
329         return _mbMessageLocalService.getGroupMessagesCount(groupId);
330     }
331 
332     public int getGroupMessagesCount(long groupId, long userId)
333         throws com.liferay.portal.SystemException {
334         return _mbMessageLocalService.getGroupMessagesCount(groupId, userId);
335     }
336 
337     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
338         long messageId)
339         throws com.liferay.portal.PortalException,
340             com.liferay.portal.SystemException {
341         return _mbMessageLocalService.getMessage(messageId);
342     }
343 
344     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
345         long messageId, java.lang.String threadView)
346         throws com.liferay.portal.PortalException,
347             com.liferay.portal.SystemException {
348         return _mbMessageLocalService.getMessageDisplay(messageId, threadView);
349     }
350 
351     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
352         com.liferay.portlet.messageboards.model.MBMessage message,
353         java.lang.String threadView)
354         throws com.liferay.portal.PortalException,
355             com.liferay.portal.SystemException {
356         return _mbMessageLocalService.getMessageDisplay(message, threadView);
357     }
358 
359     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
360         java.lang.String className, long classPK)
361         throws com.liferay.portal.SystemException {
362         return _mbMessageLocalService.getMessages(className, classPK);
363     }
364 
365     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
366         throws com.liferay.portal.SystemException {
367         return _mbMessageLocalService.getNoAssetMessages();
368     }
369 
370     public int getPositionInThread(long messageId)
371         throws com.liferay.portal.PortalException,
372             com.liferay.portal.SystemException {
373         return _mbMessageLocalService.getPositionInThread(messageId);
374     }
375 
376     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
377         long threadId) throws com.liferay.portal.SystemException {
378         return _mbMessageLocalService.getThreadMessages(threadId);
379     }
380 
381     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
382         long threadId,
383         java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
384         throws com.liferay.portal.SystemException {
385         return _mbMessageLocalService.getThreadMessages(threadId, comparator);
386     }
387 
388     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
389         long threadId, int start, int end)
390         throws com.liferay.portal.SystemException {
391         return _mbMessageLocalService.getThreadMessages(threadId, start, end);
392     }
393 
394     public int getThreadMessagesCount(long threadId)
395         throws com.liferay.portal.SystemException {
396         return _mbMessageLocalService.getThreadMessagesCount(threadId);
397     }
398 
399     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
400         long threadId, int start, int end)
401         throws com.liferay.portal.SystemException {
402         return _mbMessageLocalService.getThreadRepliesMessages(threadId, start,
403             end);
404     }
405 
406     public void reIndex(long messageId)
407         throws com.liferay.portal.SystemException {
408         _mbMessageLocalService.reIndex(messageId);
409     }
410 
411     public void reIndex(
412         com.liferay.portlet.messageboards.model.MBMessage message)
413         throws com.liferay.portal.SystemException {
414         _mbMessageLocalService.reIndex(message);
415     }
416 
417     public void subscribeMessage(long userId, long messageId)
418         throws com.liferay.portal.PortalException,
419             com.liferay.portal.SystemException {
420         _mbMessageLocalService.subscribeMessage(userId, messageId);
421     }
422 
423     public void unsubscribeMessage(long userId, long messageId)
424         throws com.liferay.portal.PortalException,
425             com.liferay.portal.SystemException {
426         _mbMessageLocalService.unsubscribeMessage(userId, messageId);
427     }
428 
429     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
430         long userId, long messageId, java.lang.String subject,
431         java.lang.String body)
432         throws com.liferay.portal.PortalException,
433             com.liferay.portal.SystemException {
434         return _mbMessageLocalService.updateDiscussionMessage(userId,
435             messageId, subject, body);
436     }
437 
438     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
439         long messageId, java.util.Date createDate, java.util.Date modifiedDate)
440         throws com.liferay.portal.PortalException,
441             com.liferay.portal.SystemException {
442         return _mbMessageLocalService.updateMessage(messageId, createDate,
443             modifiedDate);
444     }
445 
446     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
447         long userId, long messageId, java.lang.String subject,
448         java.lang.String body,
449         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
450         java.util.List<String> existingFiles, double priority,
451         com.liferay.portal.service.ServiceContext serviceContext)
452         throws com.liferay.portal.PortalException,
453             com.liferay.portal.SystemException {
454         return _mbMessageLocalService.updateMessage(userId, messageId, subject,
455             body, files, existingFiles, priority, serviceContext);
456     }
457 
458     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
459         long messageId, java.lang.String body)
460         throws com.liferay.portal.PortalException,
461             com.liferay.portal.SystemException {
462         return _mbMessageLocalService.updateMessage(messageId, body);
463     }
464 
465     public void updateTagsAsset(long userId,
466         com.liferay.portlet.messageboards.model.MBMessage message,
467         java.lang.String[] tagsEntries)
468         throws com.liferay.portal.PortalException,
469             com.liferay.portal.SystemException {
470         _mbMessageLocalService.updateTagsAsset(userId, message, tagsEntries);
471     }
472 
473     public MBMessageLocalService getWrappedMBMessageLocalService() {
474         return _mbMessageLocalService;
475     }
476 
477     private MBMessageLocalService _mbMessageLocalService;
478 }