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="MBMessageServiceUtil.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 MBMessageService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       MBMessageService
32   * @generated
33   */
34  public class MBMessageServiceWrapper implements MBMessageService {
35      public MBMessageServiceWrapper(MBMessageService mbMessageService) {
36          _mbMessageService = mbMessageService;
37      }
38  
39      public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
40          long groupId, java.lang.String className, long classPK, long threadId,
41          long parentMessageId, java.lang.String subject, java.lang.String body,
42          com.liferay.portal.theme.ThemeDisplay themeDisplay)
43          throws com.liferay.portal.PortalException,
44              com.liferay.portal.SystemException, java.rmi.RemoteException {
45          return _mbMessageService.addDiscussionMessage(groupId, className,
46              classPK, threadId, parentMessageId, subject, body, themeDisplay);
47      }
48  
49      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
50          long categoryId, long threadId, long parentMessageId,
51          java.lang.String subject, java.lang.String body,
52          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
53          boolean anonymous, double priority, java.lang.String[] tagsEntries,
54          boolean addCommunityPermissions, boolean addGuestPermissions)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException, java.rmi.RemoteException {
57          return _mbMessageService.addMessage(categoryId, threadId,
58              parentMessageId, subject, body, files, anonymous, priority,
59              tagsEntries, addCommunityPermissions, addGuestPermissions);
60      }
61  
62      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
63          long categoryId, long threadId, long parentMessageId,
64          java.lang.String subject, java.lang.String body,
65          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
66          boolean anonymous, double priority, java.lang.String[] tagsEntries,
67          javax.portlet.PortletPreferences prefs,
68          boolean addCommunityPermissions, boolean addGuestPermissions,
69          com.liferay.portal.theme.ThemeDisplay themeDisplay)
70          throws com.liferay.portal.PortalException,
71              com.liferay.portal.SystemException, java.rmi.RemoteException {
72          return _mbMessageService.addMessage(categoryId, threadId,
73              parentMessageId, subject, body, files, anonymous, priority,
74              tagsEntries, prefs, addCommunityPermissions, addGuestPermissions,
75              themeDisplay);
76      }
77  
78      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
79          long categoryId, long threadId, long parentMessageId,
80          java.lang.String subject, java.lang.String body,
81          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
82          boolean anonymous, double priority, java.lang.String[] tagsEntries,
83          javax.portlet.PortletPreferences prefs,
84          java.lang.String[] communityPermissions,
85          java.lang.String[] guestPermissions,
86          com.liferay.portal.theme.ThemeDisplay themeDisplay)
87          throws com.liferay.portal.PortalException,
88              com.liferay.portal.SystemException, java.rmi.RemoteException {
89          return _mbMessageService.addMessage(categoryId, threadId,
90              parentMessageId, subject, body, files, anonymous, priority,
91              tagsEntries, prefs, communityPermissions, guestPermissions,
92              themeDisplay);
93      }
94  
95      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
96          long categoryId, long threadId, long parentMessageId,
97          java.lang.String subject, java.lang.String body,
98          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
99          boolean anonymous, double priority, java.lang.String[] tagsEntries,
100         java.lang.String[] communityPermissions,
101         java.lang.String[] guestPermissions)
102         throws com.liferay.portal.PortalException,
103             com.liferay.portal.SystemException, java.rmi.RemoteException {
104         return _mbMessageService.addMessage(categoryId, threadId,
105             parentMessageId, subject, body, files, anonymous, priority,
106             tagsEntries, communityPermissions, guestPermissions);
107     }
108 
109     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
110         long categoryId, java.lang.String subject, java.lang.String body,
111         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
112         boolean anonymous, double priority, java.lang.String[] tagsEntries,
113         boolean addCommunityPermissions, boolean addGuestPermissions)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException, java.rmi.RemoteException {
116         return _mbMessageService.addMessage(categoryId, subject, body, files,
117             anonymous, priority, tagsEntries, addCommunityPermissions,
118             addGuestPermissions);
119     }
120 
121     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
122         long categoryId, java.lang.String subject, java.lang.String body,
123         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
124         boolean anonymous, double priority, java.lang.String[] tagsEntries,
125         javax.portlet.PortletPreferences prefs,
126         boolean addCommunityPermissions, boolean addGuestPermissions,
127         com.liferay.portal.theme.ThemeDisplay themeDisplay)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException, java.rmi.RemoteException {
130         return _mbMessageService.addMessage(categoryId, subject, body, files,
131             anonymous, priority, tagsEntries, prefs, addCommunityPermissions,
132             addGuestPermissions, themeDisplay);
133     }
134 
135     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
136         long categoryId, java.lang.String subject, java.lang.String body,
137         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
138         boolean anonymous, double priority, java.lang.String[] tagsEntries,
139         javax.portlet.PortletPreferences prefs,
140         java.lang.String[] communityPermissions,
141         java.lang.String[] guestPermissions,
142         com.liferay.portal.theme.ThemeDisplay themeDisplay)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException, java.rmi.RemoteException {
145         return _mbMessageService.addMessage(categoryId, subject, body, files,
146             anonymous, priority, tagsEntries, prefs, communityPermissions,
147             guestPermissions, themeDisplay);
148     }
149 
150     public com.liferay.portlet.messageboards.model.MBMessage addMessage(
151         long categoryId, java.lang.String subject, java.lang.String body,
152         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
153         boolean anonymous, double priority, java.lang.String[] tagsEntries,
154         java.lang.String[] communityPermissions,
155         java.lang.String[] guestPermissions)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException, java.rmi.RemoteException {
158         return _mbMessageService.addMessage(categoryId, subject, body, files,
159             anonymous, priority, tagsEntries, communityPermissions,
160             guestPermissions);
161     }
162 
163     public void deleteDiscussionMessage(long groupId,
164         java.lang.String className, long classPK, long messageId)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException, java.rmi.RemoteException {
167         _mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
168             messageId);
169     }
170 
171     public void deleteMessage(long messageId)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException, java.rmi.RemoteException {
174         _mbMessageService.deleteMessage(messageId);
175     }
176 
177     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
178         long categoryId, int start, int end)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException, java.rmi.RemoteException {
181         return _mbMessageService.getCategoryMessages(categoryId, start, end);
182     }
183 
184     public int getCategoryMessagesCount(long categoryId)
185         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
186         return _mbMessageService.getCategoryMessagesCount(categoryId);
187     }
188 
189     public java.lang.String getCategoryMessagesRSS(long categoryId, int max,
190         java.lang.String type, double version, java.lang.String displayStyle,
191         java.lang.String feedURL, java.lang.String entryURL,
192         com.liferay.portal.theme.ThemeDisplay themeDisplay)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException, java.rmi.RemoteException {
195         return _mbMessageService.getCategoryMessagesRSS(categoryId, max, type,
196             version, displayStyle, feedURL, entryURL, themeDisplay);
197     }
198 
199     public java.lang.String getCompanyMessagesRSS(long companyId, int max,
200         java.lang.String type, double version, java.lang.String displayStyle,
201         java.lang.String feedURL, java.lang.String entryURL,
202         com.liferay.portal.theme.ThemeDisplay themeDisplay)
203         throws com.liferay.portal.PortalException,
204             com.liferay.portal.SystemException, java.rmi.RemoteException {
205         return _mbMessageService.getCompanyMessagesRSS(companyId, max, type,
206             version, displayStyle, feedURL, entryURL, themeDisplay);
207     }
208 
209     public java.lang.String getGroupMessagesRSS(long groupId, int max,
210         java.lang.String type, double version, java.lang.String displayStyle,
211         java.lang.String feedURL, java.lang.String entryURL,
212         com.liferay.portal.theme.ThemeDisplay themeDisplay)
213         throws com.liferay.portal.PortalException,
214             com.liferay.portal.SystemException, java.rmi.RemoteException {
215         return _mbMessageService.getGroupMessagesRSS(groupId, max, type,
216             version, displayStyle, feedURL, entryURL, themeDisplay);
217     }
218 
219     public java.lang.String getGroupMessagesRSS(long groupId, long userId,
220         int max, java.lang.String type, double version,
221         java.lang.String displayStyle, java.lang.String feedURL,
222         java.lang.String entryURL,
223         com.liferay.portal.theme.ThemeDisplay themeDisplay)
224         throws com.liferay.portal.PortalException,
225             com.liferay.portal.SystemException, java.rmi.RemoteException {
226         return _mbMessageService.getGroupMessagesRSS(groupId, userId, max,
227             type, version, displayStyle, feedURL, entryURL, themeDisplay);
228     }
229 
230     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
231         long messageId)
232         throws com.liferay.portal.PortalException,
233             com.liferay.portal.SystemException, java.rmi.RemoteException {
234         return _mbMessageService.getMessage(messageId);
235     }
236 
237     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
238         long messageId)
239         throws com.liferay.portal.PortalException,
240             com.liferay.portal.SystemException, java.rmi.RemoteException {
241         return _mbMessageService.getMessageDisplay(messageId);
242     }
243 
244     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
245         long messageId, java.lang.String threadView)
246         throws com.liferay.portal.PortalException,
247             com.liferay.portal.SystemException, java.rmi.RemoteException {
248         return _mbMessageService.getMessageDisplay(messageId, threadView);
249     }
250 
251     public java.lang.String getThreadMessagesRSS(long threadId, int max,
252         java.lang.String type, double version, java.lang.String displayStyle,
253         java.lang.String feedURL, java.lang.String entryURL,
254         com.liferay.portal.theme.ThemeDisplay themeDisplay)
255         throws com.liferay.portal.PortalException,
256             com.liferay.portal.SystemException, java.rmi.RemoteException {
257         return _mbMessageService.getThreadMessagesRSS(threadId, max, type,
258             version, displayStyle, feedURL, entryURL, themeDisplay);
259     }
260 
261     public void subscribeMessage(long messageId)
262         throws com.liferay.portal.PortalException,
263             com.liferay.portal.SystemException, java.rmi.RemoteException {
264         _mbMessageService.subscribeMessage(messageId);
265     }
266 
267     public void unsubscribeMessage(long messageId)
268         throws com.liferay.portal.PortalException,
269             com.liferay.portal.SystemException, java.rmi.RemoteException {
270         _mbMessageService.unsubscribeMessage(messageId);
271     }
272 
273     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
274         long groupId, java.lang.String className, long classPK, long messageId,
275         java.lang.String subject, java.lang.String body)
276         throws com.liferay.portal.PortalException,
277             com.liferay.portal.SystemException, java.rmi.RemoteException {
278         return _mbMessageService.updateDiscussionMessage(groupId, className,
279             classPK, messageId, subject, body);
280     }
281 
282     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
283         long messageId, java.lang.String subject, java.lang.String body,
284         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
285         java.util.List<String> existingFiles, double priority,
286         java.lang.String[] tagsEntries)
287         throws com.liferay.portal.PortalException,
288             com.liferay.portal.SystemException, java.rmi.RemoteException {
289         return _mbMessageService.updateMessage(messageId, subject, body, files,
290             existingFiles, priority, tagsEntries);
291     }
292 
293     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
294         long messageId, java.lang.String subject, java.lang.String body,
295         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
296         java.util.List<String> existingFiles, double priority,
297         java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
298         com.liferay.portal.theme.ThemeDisplay themeDisplay)
299         throws com.liferay.portal.PortalException,
300             com.liferay.portal.SystemException, java.rmi.RemoteException {
301         return _mbMessageService.updateMessage(messageId, subject, body, files,
302             existingFiles, priority, tagsEntries, prefs, themeDisplay);
303     }
304 
305     public MBMessageService getWrappedMBMessageService() {
306         return _mbMessageService;
307     }
308 
309     private MBMessageService _mbMessageService;
310 }