001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
035                    long groupId, java.lang.String className, long classPK,
036                    java.lang.String permissionClassName, long permissionClassPK,
037                    long permissionOwnerId, long threadId, long parentMessageId,
038                    java.lang.String subject, java.lang.String body,
039                    com.liferay.portal.service.ServiceContext serviceContext)
040                    throws com.liferay.portal.kernel.exception.PortalException,
041                            com.liferay.portal.kernel.exception.SystemException {
042                    return _mbMessageService.addDiscussionMessage(groupId, className,
043                            classPK, permissionClassName, permissionClassPK, permissionOwnerId,
044                            threadId, parentMessageId, subject, body, serviceContext);
045            }
046    
047            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
048                    long groupId, long categoryId, long threadId, long parentMessageId,
049                    java.lang.String subject, java.lang.String body,
050                    java.lang.String format,
051                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
052                    boolean anonymous, double priority, boolean allowPingbacks,
053                    com.liferay.portal.service.ServiceContext serviceContext)
054                    throws com.liferay.portal.kernel.exception.PortalException,
055                            com.liferay.portal.kernel.exception.SystemException {
056                    return _mbMessageService.addMessage(groupId, categoryId, threadId,
057                            parentMessageId, subject, body, format, inputStreamOVPs, anonymous,
058                            priority, allowPingbacks, serviceContext);
059            }
060    
061            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
062                    long groupId, long categoryId, java.lang.String subject,
063                    java.lang.String body, java.lang.String format,
064                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
065                    boolean anonymous, double priority, boolean allowPingbacks,
066                    com.liferay.portal.service.ServiceContext serviceContext)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return _mbMessageService.addMessage(groupId, categoryId, subject, body,
070                            format, inputStreamOVPs, anonymous, priority, allowPingbacks,
071                            serviceContext);
072            }
073    
074            public void deleteDiscussionMessage(long groupId,
075                    java.lang.String className, long classPK,
076                    java.lang.String permissionClassName, long permissionClassPK,
077                    long permissionOwnerId, long messageId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    _mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
081                            permissionClassName, permissionClassPK, permissionOwnerId, messageId);
082            }
083    
084            public void deleteMessage(long messageId)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException {
087                    _mbMessageService.deleteMessage(messageId);
088            }
089    
090            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
091                    long groupId, long categoryId, int status, int start, int end)
092                    throws com.liferay.portal.kernel.exception.PortalException,
093                            com.liferay.portal.kernel.exception.SystemException {
094                    return _mbMessageService.getCategoryMessages(groupId, categoryId,
095                            status, start, end);
096            }
097    
098            public int getCategoryMessagesCount(long groupId, long categoryId,
099                    int status) throws com.liferay.portal.kernel.exception.SystemException {
100                    return _mbMessageService.getCategoryMessagesCount(groupId, categoryId,
101                            status);
102            }
103    
104            public java.lang.String getCategoryMessagesRSS(long groupId,
105                    long categoryId, int status, int max, java.lang.String type,
106                    double version, java.lang.String displayStyle,
107                    java.lang.String feedURL, java.lang.String entryURL,
108                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException {
111                    return _mbMessageService.getCategoryMessagesRSS(groupId, categoryId,
112                            status, max, type, version, displayStyle, feedURL, entryURL,
113                            themeDisplay);
114            }
115    
116            public java.lang.String getCompanyMessagesRSS(long companyId, int status,
117                    int max, java.lang.String type, double version,
118                    java.lang.String displayStyle, java.lang.String feedURL,
119                    java.lang.String entryURL,
120                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException {
123                    return _mbMessageService.getCompanyMessagesRSS(companyId, status, max,
124                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
125            }
126    
127            public int getGroupMessagesCount(long groupId, int status)
128                    throws com.liferay.portal.kernel.exception.SystemException {
129                    return _mbMessageService.getGroupMessagesCount(groupId, status);
130            }
131    
132            public java.lang.String getGroupMessagesRSS(long groupId, int status,
133                    int max, java.lang.String type, double version,
134                    java.lang.String displayStyle, java.lang.String feedURL,
135                    java.lang.String entryURL,
136                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException {
139                    return _mbMessageService.getGroupMessagesRSS(groupId, status, max,
140                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
141            }
142    
143            public java.lang.String getGroupMessagesRSS(long groupId, long userId,
144                    int status, int max, java.lang.String type, double version,
145                    java.lang.String displayStyle, java.lang.String feedURL,
146                    java.lang.String entryURL,
147                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
148                    throws com.liferay.portal.kernel.exception.PortalException,
149                            com.liferay.portal.kernel.exception.SystemException {
150                    return _mbMessageService.getGroupMessagesRSS(groupId, userId, status,
151                            max, type, version, displayStyle, feedURL, entryURL, themeDisplay);
152            }
153    
154            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
155                    long messageId)
156                    throws com.liferay.portal.kernel.exception.PortalException,
157                            com.liferay.portal.kernel.exception.SystemException {
158                    return _mbMessageService.getMessage(messageId);
159            }
160    
161            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
162                    long messageId, int status, java.lang.String threadView,
163                    boolean includePrevAndNext)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException {
166                    return _mbMessageService.getMessageDisplay(messageId, status,
167                            threadView, includePrevAndNext);
168            }
169    
170            public int getThreadAnswersCount(long groupId, long categoryId,
171                    long threadId)
172                    throws com.liferay.portal.kernel.exception.SystemException {
173                    return _mbMessageService.getThreadAnswersCount(groupId, categoryId,
174                            threadId);
175            }
176    
177            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
178                    long groupId, long categoryId, long threadId, int status, int start,
179                    int end) throws com.liferay.portal.kernel.exception.SystemException {
180                    return _mbMessageService.getThreadMessages(groupId, categoryId,
181                            threadId, status, start, end);
182            }
183    
184            public int getThreadMessagesCount(long groupId, long categoryId,
185                    long threadId, int status)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    return _mbMessageService.getThreadMessagesCount(groupId, categoryId,
188                            threadId, status);
189            }
190    
191            public java.lang.String getThreadMessagesRSS(long threadId, int status,
192                    int max, java.lang.String type, double version,
193                    java.lang.String displayStyle, java.lang.String feedURL,
194                    java.lang.String entryURL,
195                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
196                    throws com.liferay.portal.kernel.exception.PortalException,
197                            com.liferay.portal.kernel.exception.SystemException {
198                    return _mbMessageService.getThreadMessagesRSS(threadId, status, max,
199                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
200            }
201    
202            public void subscribeMessage(long messageId)
203                    throws com.liferay.portal.kernel.exception.PortalException,
204                            com.liferay.portal.kernel.exception.SystemException {
205                    _mbMessageService.subscribeMessage(messageId);
206            }
207    
208            public void unsubscribeMessage(long messageId)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException {
211                    _mbMessageService.unsubscribeMessage(messageId);
212            }
213    
214            public void updateAnswer(long messageId, boolean answer, boolean cascade)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException {
217                    _mbMessageService.updateAnswer(messageId, answer, cascade);
218            }
219    
220            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
221                    java.lang.String className, long classPK,
222                    java.lang.String permissionClassName, long permissionClassPK,
223                    long permissionOwnerId, long messageId, java.lang.String subject,
224                    java.lang.String body,
225                    com.liferay.portal.service.ServiceContext serviceContext)
226                    throws com.liferay.portal.kernel.exception.PortalException,
227                            com.liferay.portal.kernel.exception.SystemException {
228                    return _mbMessageService.updateDiscussionMessage(className, classPK,
229                            permissionClassName, permissionClassPK, permissionOwnerId,
230                            messageId, subject, body, serviceContext);
231            }
232    
233            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
234                    long messageId, java.lang.String subject, java.lang.String body,
235                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
236                    java.util.List<java.lang.String> existingFiles, double priority,
237                    boolean allowPingbacks,
238                    com.liferay.portal.service.ServiceContext serviceContext)
239                    throws com.liferay.portal.kernel.exception.PortalException,
240                            com.liferay.portal.kernel.exception.SystemException {
241                    return _mbMessageService.updateMessage(messageId, subject, body,
242                            inputStreamOVPs, existingFiles, priority, allowPingbacks,
243                            serviceContext);
244            }
245    
246            /**
247             * @deprecated Renamed to {@link #getWrappedService}
248             */
249            public MBMessageService getWrappedMBMessageService() {
250                    return _mbMessageService;
251            }
252    
253            /**
254             * @deprecated Renamed to {@link #setWrappedService}
255             */
256            public void setWrappedMBMessageService(MBMessageService mbMessageService) {
257                    _mbMessageService = mbMessageService;
258            }
259    
260            public MBMessageService getWrappedService() {
261                    return _mbMessageService;
262            }
263    
264            public void setWrappedService(MBMessageService mbMessageService) {
265                    _mbMessageService = mbMessageService;
266            }
267    
268            private MBMessageService _mbMessageService;
269    }