001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.messageboards.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link MBMessageService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       MBMessageService
026     * @generated
027     */
028    public class MBMessageServiceWrapper implements MBMessageService,
029            ServiceWrapper<MBMessageService> {
030            public MBMessageServiceWrapper(MBMessageService mbMessageService) {
031                    _mbMessageService = mbMessageService;
032            }
033    
034            /**
035            * Returns the Spring bean ID for this bean.
036            *
037            * @return the Spring bean ID for this bean
038            */
039            public java.lang.String getBeanIdentifier() {
040                    return _mbMessageService.getBeanIdentifier();
041            }
042    
043            /**
044            * Sets the Spring bean ID for this bean.
045            *
046            * @param beanIdentifier the Spring bean ID for this bean
047            */
048            public void setBeanIdentifier(java.lang.String beanIdentifier) {
049                    _mbMessageService.setBeanIdentifier(beanIdentifier);
050            }
051    
052            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
053                    long groupId, java.lang.String className, long classPK,
054                    java.lang.String permissionClassName, long permissionClassPK,
055                    long permissionOwnerId, long threadId, long parentMessageId,
056                    java.lang.String subject, java.lang.String body,
057                    com.liferay.portal.service.ServiceContext serviceContext)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    return _mbMessageService.addDiscussionMessage(groupId, className,
061                            classPK, permissionClassName, permissionClassPK, permissionOwnerId,
062                            threadId, parentMessageId, subject, body, serviceContext);
063            }
064    
065            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
066                    long groupId, long categoryId, long threadId, long parentMessageId,
067                    java.lang.String subject, java.lang.String body,
068                    java.lang.String format,
069                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
070                    boolean anonymous, double priority, boolean allowPingbacks,
071                    com.liferay.portal.service.ServiceContext serviceContext)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return _mbMessageService.addMessage(groupId, categoryId, threadId,
075                            parentMessageId, subject, body, format, inputStreamOVPs, anonymous,
076                            priority, allowPingbacks, serviceContext);
077            }
078    
079            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
080                    long groupId, long categoryId, java.lang.String subject,
081                    java.lang.String body, java.lang.String format,
082                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
083                    boolean anonymous, double priority, boolean allowPingbacks,
084                    com.liferay.portal.service.ServiceContext serviceContext)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException {
087                    return _mbMessageService.addMessage(groupId, categoryId, subject, body,
088                            format, inputStreamOVPs, anonymous, priority, allowPingbacks,
089                            serviceContext);
090            }
091    
092            public void deleteDiscussionMessage(long groupId,
093                    java.lang.String className, long classPK,
094                    java.lang.String permissionClassName, long permissionClassPK,
095                    long permissionOwnerId, long messageId)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException {
098                    _mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
099                            permissionClassName, permissionClassPK, permissionOwnerId, messageId);
100            }
101    
102            public void deleteMessage(long messageId)
103                    throws com.liferay.portal.kernel.exception.PortalException,
104                            com.liferay.portal.kernel.exception.SystemException {
105                    _mbMessageService.deleteMessage(messageId);
106            }
107    
108            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
109                    long groupId, long categoryId, int status, int start, int end)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException {
112                    return _mbMessageService.getCategoryMessages(groupId, categoryId,
113                            status, start, end);
114            }
115    
116            public int getCategoryMessagesCount(long groupId, long categoryId,
117                    int status) throws com.liferay.portal.kernel.exception.SystemException {
118                    return _mbMessageService.getCategoryMessagesCount(groupId, categoryId,
119                            status);
120            }
121    
122            public java.lang.String getCategoryMessagesRSS(long groupId,
123                    long categoryId, int status, int max, java.lang.String type,
124                    double version, java.lang.String displayStyle,
125                    java.lang.String feedURL, java.lang.String entryURL,
126                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException {
129                    return _mbMessageService.getCategoryMessagesRSS(groupId, categoryId,
130                            status, max, type, version, displayStyle, feedURL, entryURL,
131                            themeDisplay);
132            }
133    
134            public java.lang.String getCompanyMessagesRSS(long companyId, int status,
135                    int max, java.lang.String type, double version,
136                    java.lang.String displayStyle, java.lang.String feedURL,
137                    java.lang.String entryURL,
138                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
139                    throws com.liferay.portal.kernel.exception.PortalException,
140                            com.liferay.portal.kernel.exception.SystemException {
141                    return _mbMessageService.getCompanyMessagesRSS(companyId, status, max,
142                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
143            }
144    
145            public int getGroupMessagesCount(long groupId, int status)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return _mbMessageService.getGroupMessagesCount(groupId, status);
148            }
149    
150            public java.lang.String getGroupMessagesRSS(long groupId, int status,
151                    int max, java.lang.String type, double version,
152                    java.lang.String displayStyle, java.lang.String feedURL,
153                    java.lang.String entryURL,
154                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
155                    throws com.liferay.portal.kernel.exception.PortalException,
156                            com.liferay.portal.kernel.exception.SystemException {
157                    return _mbMessageService.getGroupMessagesRSS(groupId, status, max,
158                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
159            }
160    
161            public java.lang.String getGroupMessagesRSS(long groupId, long userId,
162                    int status, int max, java.lang.String type, double version,
163                    java.lang.String displayStyle, java.lang.String feedURL,
164                    java.lang.String entryURL,
165                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException {
168                    return _mbMessageService.getGroupMessagesRSS(groupId, userId, status,
169                            max, type, version, displayStyle, feedURL, entryURL, themeDisplay);
170            }
171    
172            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
173                    long messageId)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    return _mbMessageService.getMessage(messageId);
177            }
178    
179            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
180                    long messageId, int status, java.lang.String threadView,
181                    boolean includePrevAndNext)
182                    throws com.liferay.portal.kernel.exception.PortalException,
183                            com.liferay.portal.kernel.exception.SystemException {
184                    return _mbMessageService.getMessageDisplay(messageId, status,
185                            threadView, includePrevAndNext);
186            }
187    
188            public int getThreadAnswersCount(long groupId, long categoryId,
189                    long threadId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return _mbMessageService.getThreadAnswersCount(groupId, categoryId,
192                            threadId);
193            }
194    
195            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
196                    long groupId, long categoryId, long threadId, int status, int start,
197                    int end) throws com.liferay.portal.kernel.exception.SystemException {
198                    return _mbMessageService.getThreadMessages(groupId, categoryId,
199                            threadId, status, start, end);
200            }
201    
202            public int getThreadMessagesCount(long groupId, long categoryId,
203                    long threadId, int status)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _mbMessageService.getThreadMessagesCount(groupId, categoryId,
206                            threadId, status);
207            }
208    
209            public java.lang.String getThreadMessagesRSS(long threadId, int status,
210                    int max, java.lang.String type, double version,
211                    java.lang.String displayStyle, java.lang.String feedURL,
212                    java.lang.String entryURL,
213                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
214                    throws com.liferay.portal.kernel.exception.PortalException,
215                            com.liferay.portal.kernel.exception.SystemException {
216                    return _mbMessageService.getThreadMessagesRSS(threadId, status, max,
217                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
218            }
219    
220            public void subscribeMessage(long messageId)
221                    throws com.liferay.portal.kernel.exception.PortalException,
222                            com.liferay.portal.kernel.exception.SystemException {
223                    _mbMessageService.subscribeMessage(messageId);
224            }
225    
226            public void unsubscribeMessage(long messageId)
227                    throws com.liferay.portal.kernel.exception.PortalException,
228                            com.liferay.portal.kernel.exception.SystemException {
229                    _mbMessageService.unsubscribeMessage(messageId);
230            }
231    
232            public void updateAnswer(long messageId, boolean answer, boolean cascade)
233                    throws com.liferay.portal.kernel.exception.PortalException,
234                            com.liferay.portal.kernel.exception.SystemException {
235                    _mbMessageService.updateAnswer(messageId, answer, cascade);
236            }
237    
238            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
239                    java.lang.String className, long classPK,
240                    java.lang.String permissionClassName, long permissionClassPK,
241                    long permissionOwnerId, long messageId, java.lang.String subject,
242                    java.lang.String body,
243                    com.liferay.portal.service.ServiceContext serviceContext)
244                    throws com.liferay.portal.kernel.exception.PortalException,
245                            com.liferay.portal.kernel.exception.SystemException {
246                    return _mbMessageService.updateDiscussionMessage(className, classPK,
247                            permissionClassName, permissionClassPK, permissionOwnerId,
248                            messageId, subject, body, serviceContext);
249            }
250    
251            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
252                    long messageId, java.lang.String subject, java.lang.String body,
253                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
254                    java.util.List<java.lang.String> existingFiles, double priority,
255                    boolean allowPingbacks,
256                    com.liferay.portal.service.ServiceContext serviceContext)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    return _mbMessageService.updateMessage(messageId, subject, body,
260                            inputStreamOVPs, existingFiles, priority, allowPingbacks,
261                            serviceContext);
262            }
263    
264            /**
265             * @deprecated Renamed to {@link #getWrappedService}
266             */
267            public MBMessageService getWrappedMBMessageService() {
268                    return _mbMessageService;
269            }
270    
271            /**
272             * @deprecated Renamed to {@link #setWrappedService}
273             */
274            public void setWrappedMBMessageService(MBMessageService mbMessageService) {
275                    _mbMessageService = mbMessageService;
276            }
277    
278            public MBMessageService getWrappedService() {
279                    return _mbMessageService;
280            }
281    
282            public void setWrappedService(MBMessageService mbMessageService) {
283                    _mbMessageService = mbMessageService;
284            }
285    
286            private MBMessageService _mbMessageService;
287    }