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,
41          java.lang.String permissionClassName, long permissionClassPK,
42          long threadId, long parentMessageId, java.lang.String subject,
43          java.lang.String body,
44          com.liferay.portal.service.ServiceContext serviceContext)
45          throws com.liferay.portal.kernel.exception.PortalException,
46              com.liferay.portal.kernel.exception.SystemException {
47          return _mbMessageService.addDiscussionMessage(groupId, className,
48              classPK, permissionClassName, permissionClassPK, threadId,
49              parentMessageId, subject, body, serviceContext);
50      }
51  
52      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
53          long groupId, long categoryId, java.lang.String subject,
54          java.lang.String body,
55          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
56          boolean anonymous, double priority, boolean allowPingbacks,
57          com.liferay.portal.service.ServiceContext serviceContext)
58          throws com.liferay.portal.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException {
60          return _mbMessageService.addMessage(groupId, categoryId, subject, body,
61              files, anonymous, priority, allowPingbacks, serviceContext);
62      }
63  
64      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
65          long groupId, long categoryId, long threadId, long parentMessageId,
66          java.lang.String subject, java.lang.String body,
67          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
68          boolean anonymous, double priority, boolean allowPingbacks,
69          com.liferay.portal.service.ServiceContext serviceContext)
70          throws com.liferay.portal.kernel.exception.PortalException,
71              com.liferay.portal.kernel.exception.SystemException {
72          return _mbMessageService.addMessage(groupId, categoryId, threadId,
73              parentMessageId, subject, body, files, anonymous, priority,
74              allowPingbacks, serviceContext);
75      }
76  
77      public void deleteDiscussionMessage(long groupId,
78          java.lang.String className, long classPK,
79          java.lang.String permissionClassName, long permissionClassPK,
80          long messageId)
81          throws com.liferay.portal.kernel.exception.PortalException,
82              com.liferay.portal.kernel.exception.SystemException {
83          _mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
84              permissionClassName, permissionClassPK, messageId);
85      }
86  
87      public void deleteMessage(long messageId)
88          throws com.liferay.portal.kernel.exception.PortalException,
89              com.liferay.portal.kernel.exception.SystemException {
90          _mbMessageService.deleteMessage(messageId);
91      }
92  
93      public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
94          long groupId, long categoryId, int status, int start, int end)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return _mbMessageService.getCategoryMessages(groupId, categoryId,
98              status, start, end);
99      }
100 
101     public int getCategoryMessagesCount(long groupId, long categoryId,
102         int status) throws com.liferay.portal.kernel.exception.SystemException {
103         return _mbMessageService.getCategoryMessagesCount(groupId, categoryId,
104             status);
105     }
106 
107     public java.lang.String getCategoryMessagesRSS(long groupId,
108         long categoryId, int status, int max, java.lang.String type,
109         double version, java.lang.String displayStyle,
110         java.lang.String feedURL, java.lang.String entryURL,
111         com.liferay.portal.theme.ThemeDisplay themeDisplay)
112         throws com.liferay.portal.kernel.exception.PortalException,
113             com.liferay.portal.kernel.exception.SystemException {
114         return _mbMessageService.getCategoryMessagesRSS(groupId, categoryId,
115             status, max, type, version, displayStyle, feedURL, entryURL,
116             themeDisplay);
117     }
118 
119     public java.lang.String getCompanyMessagesRSS(long companyId, int status,
120         int max, java.lang.String type, double version,
121         java.lang.String displayStyle, java.lang.String feedURL,
122         java.lang.String entryURL,
123         com.liferay.portal.theme.ThemeDisplay themeDisplay)
124         throws com.liferay.portal.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException {
126         return _mbMessageService.getCompanyMessagesRSS(companyId, status, max,
127             type, version, displayStyle, feedURL, entryURL, themeDisplay);
128     }
129 
130     public java.lang.String getGroupMessagesRSS(long groupId, int status,
131         int max, java.lang.String type, double version,
132         java.lang.String displayStyle, java.lang.String feedURL,
133         java.lang.String entryURL,
134         com.liferay.portal.theme.ThemeDisplay themeDisplay)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException {
137         return _mbMessageService.getGroupMessagesRSS(groupId, status, max,
138             type, version, displayStyle, feedURL, entryURL, themeDisplay);
139     }
140 
141     public java.lang.String getGroupMessagesRSS(long groupId, long userId,
142         int status, int max, java.lang.String type, double version,
143         java.lang.String displayStyle, java.lang.String feedURL,
144         java.lang.String entryURL,
145         com.liferay.portal.theme.ThemeDisplay themeDisplay)
146         throws com.liferay.portal.kernel.exception.PortalException,
147             com.liferay.portal.kernel.exception.SystemException {
148         return _mbMessageService.getGroupMessagesRSS(groupId, userId, status,
149             max, type, version, displayStyle, feedURL, entryURL, themeDisplay);
150     }
151 
152     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
153         long messageId)
154         throws com.liferay.portal.kernel.exception.PortalException,
155             com.liferay.portal.kernel.exception.SystemException {
156         return _mbMessageService.getMessage(messageId);
157     }
158 
159     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
160         long messageId, int status, java.lang.String threadView,
161         boolean includePrevAndNext)
162         throws com.liferay.portal.kernel.exception.PortalException,
163             com.liferay.portal.kernel.exception.SystemException {
164         return _mbMessageService.getMessageDisplay(messageId, status,
165             threadView, includePrevAndNext);
166     }
167 
168     public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
169         long groupId, long categoryId, long threadId, int status, int start,
170         int end) throws com.liferay.portal.kernel.exception.SystemException {
171         return _mbMessageService.getThreadMessages(groupId, categoryId,
172             threadId, status, start, end);
173     }
174 
175     public int getThreadMessagesCount(long groupId, long categoryId,
176         long threadId, int status)
177         throws com.liferay.portal.kernel.exception.SystemException {
178         return _mbMessageService.getThreadMessagesCount(groupId, categoryId,
179             threadId, status);
180     }
181 
182     public java.lang.String getThreadMessagesRSS(long threadId, int status,
183         int max, java.lang.String type, double version,
184         java.lang.String displayStyle, java.lang.String feedURL,
185         java.lang.String entryURL,
186         com.liferay.portal.theme.ThemeDisplay themeDisplay)
187         throws com.liferay.portal.kernel.exception.PortalException,
188             com.liferay.portal.kernel.exception.SystemException {
189         return _mbMessageService.getThreadMessagesRSS(threadId, status, max,
190             type, version, displayStyle, feedURL, entryURL, themeDisplay);
191     }
192 
193     public void subscribeMessage(long messageId)
194         throws com.liferay.portal.kernel.exception.PortalException,
195             com.liferay.portal.kernel.exception.SystemException {
196         _mbMessageService.subscribeMessage(messageId);
197     }
198 
199     public void unsubscribeMessage(long messageId)
200         throws com.liferay.portal.kernel.exception.PortalException,
201             com.liferay.portal.kernel.exception.SystemException {
202         _mbMessageService.unsubscribeMessage(messageId);
203     }
204 
205     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
206         java.lang.String className, long classPK,
207         java.lang.String permissionClassName, long permissionClassPK,
208         long messageId, java.lang.String subject, java.lang.String body,
209         com.liferay.portal.service.ServiceContext serviceContext)
210         throws com.liferay.portal.kernel.exception.PortalException,
211             com.liferay.portal.kernel.exception.SystemException {
212         return _mbMessageService.updateDiscussionMessage(className, classPK,
213             permissionClassName, permissionClassPK, messageId, subject, body,
214             serviceContext);
215     }
216 
217     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
218         long messageId, java.lang.String subject, java.lang.String body,
219         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
220         java.util.List<java.lang.String> existingFiles, double priority,
221         boolean allowPingbacks,
222         com.liferay.portal.service.ServiceContext serviceContext)
223         throws com.liferay.portal.kernel.exception.PortalException,
224             com.liferay.portal.kernel.exception.SystemException {
225         return _mbMessageService.updateMessage(messageId, subject, body, files,
226             existingFiles, priority, allowPingbacks, serviceContext);
227     }
228 
229     public MBMessageService getWrappedMBMessageService() {
230         return _mbMessageService;
231     }
232 
233     private MBMessageService _mbMessageService;
234 }