001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * <p>
019     * This class is a wrapper for {@link MBMessageService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       MBMessageService
024     * @generated
025     */
026    public class MBMessageServiceWrapper implements MBMessageService {
027            public MBMessageServiceWrapper(MBMessageService mbMessageService) {
028                    _mbMessageService = mbMessageService;
029            }
030    
031            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
032                    long groupId, java.lang.String className, long classPK,
033                    java.lang.String permissionClassName, long permissionClassPK,
034                    long permissionOwnerId, long threadId, long parentMessageId,
035                    java.lang.String subject, java.lang.String body,
036                    com.liferay.portal.service.ServiceContext serviceContext)
037                    throws com.liferay.portal.kernel.exception.PortalException,
038                            com.liferay.portal.kernel.exception.SystemException {
039                    return _mbMessageService.addDiscussionMessage(groupId, className,
040                            classPK, permissionClassName, permissionClassPK, permissionOwnerId,
041                            threadId, parentMessageId, subject, body, serviceContext);
042            }
043    
044            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
045                    long groupId, long categoryId, long threadId, long parentMessageId,
046                    java.lang.String subject, java.lang.String body,
047                    java.lang.String format,
048                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
049                    boolean anonymous, double priority, boolean allowPingbacks,
050                    com.liferay.portal.service.ServiceContext serviceContext)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException {
053                    return _mbMessageService.addMessage(groupId, categoryId, threadId,
054                            parentMessageId, subject, body, format, inputStreamOVPs, anonymous,
055                            priority, allowPingbacks, serviceContext);
056            }
057    
058            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
059                    long groupId, long categoryId, java.lang.String subject,
060                    java.lang.String body, java.lang.String format,
061                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
062                    boolean anonymous, double priority, boolean allowPingbacks,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return _mbMessageService.addMessage(groupId, categoryId, subject, body,
067                            format, inputStreamOVPs, anonymous, priority, allowPingbacks,
068                            serviceContext);
069            }
070    
071            public void deleteDiscussionMessage(long groupId,
072                    java.lang.String className, long classPK,
073                    java.lang.String permissionClassName, long permissionClassPK,
074                    long permissionOwnerId, long messageId)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    _mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
078                            permissionClassName, permissionClassPK, permissionOwnerId, messageId);
079            }
080    
081            public void deleteMessage(long messageId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    _mbMessageService.deleteMessage(messageId);
085            }
086    
087            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
088                    long groupId, long categoryId, int status, int start, int end)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException {
091                    return _mbMessageService.getCategoryMessages(groupId, categoryId,
092                            status, start, end);
093            }
094    
095            public int getCategoryMessagesCount(long groupId, long categoryId,
096                    int status) throws com.liferay.portal.kernel.exception.SystemException {
097                    return _mbMessageService.getCategoryMessagesCount(groupId, categoryId,
098                            status);
099            }
100    
101            public java.lang.String getCategoryMessagesRSS(long groupId,
102                    long categoryId, int status, int max, java.lang.String type,
103                    double version, java.lang.String displayStyle,
104                    java.lang.String feedURL, java.lang.String entryURL,
105                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
106                    throws com.liferay.portal.kernel.exception.PortalException,
107                            com.liferay.portal.kernel.exception.SystemException {
108                    return _mbMessageService.getCategoryMessagesRSS(groupId, categoryId,
109                            status, max, type, version, displayStyle, feedURL, entryURL,
110                            themeDisplay);
111            }
112    
113            public java.lang.String getCompanyMessagesRSS(long companyId, int status,
114                    int max, java.lang.String type, double version,
115                    java.lang.String displayStyle, java.lang.String feedURL,
116                    java.lang.String entryURL,
117                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
118                    throws com.liferay.portal.kernel.exception.PortalException,
119                            com.liferay.portal.kernel.exception.SystemException {
120                    return _mbMessageService.getCompanyMessagesRSS(companyId, status, max,
121                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
122            }
123    
124            public int getGroupMessagesCount(long groupId, int status)
125                    throws com.liferay.portal.kernel.exception.SystemException {
126                    return _mbMessageService.getGroupMessagesCount(groupId, status);
127            }
128    
129            public java.lang.String getGroupMessagesRSS(long groupId, int status,
130                    int max, java.lang.String type, double version,
131                    java.lang.String displayStyle, java.lang.String feedURL,
132                    java.lang.String entryURL,
133                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
134                    throws com.liferay.portal.kernel.exception.PortalException,
135                            com.liferay.portal.kernel.exception.SystemException {
136                    return _mbMessageService.getGroupMessagesRSS(groupId, status, max,
137                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
138            }
139    
140            public java.lang.String getGroupMessagesRSS(long groupId, long userId,
141                    int status, int max, java.lang.String type, double version,
142                    java.lang.String displayStyle, java.lang.String feedURL,
143                    java.lang.String entryURL,
144                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
145                    throws com.liferay.portal.kernel.exception.PortalException,
146                            com.liferay.portal.kernel.exception.SystemException {
147                    return _mbMessageService.getGroupMessagesRSS(groupId, userId, status,
148                            max, type, version, displayStyle, feedURL, entryURL, themeDisplay);
149            }
150    
151            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
152                    long messageId)
153                    throws com.liferay.portal.kernel.exception.PortalException,
154                            com.liferay.portal.kernel.exception.SystemException {
155                    return _mbMessageService.getMessage(messageId);
156            }
157    
158            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
159                    long messageId, int status, java.lang.String threadView,
160                    boolean includePrevAndNext)
161                    throws com.liferay.portal.kernel.exception.PortalException,
162                            com.liferay.portal.kernel.exception.SystemException {
163                    return _mbMessageService.getMessageDisplay(messageId, status,
164                            threadView, includePrevAndNext);
165            }
166    
167            public int getThreadAnswersCount(long groupId, long categoryId,
168                    long threadId)
169                    throws com.liferay.portal.kernel.exception.SystemException {
170                    return _mbMessageService.getThreadAnswersCount(groupId, categoryId,
171                            threadId);
172            }
173    
174            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
175                    long groupId, long categoryId, long threadId, int status, int start,
176                    int end) throws com.liferay.portal.kernel.exception.SystemException {
177                    return _mbMessageService.getThreadMessages(groupId, categoryId,
178                            threadId, status, start, end);
179            }
180    
181            public int getThreadMessagesCount(long groupId, long categoryId,
182                    long threadId, int status)
183                    throws com.liferay.portal.kernel.exception.SystemException {
184                    return _mbMessageService.getThreadMessagesCount(groupId, categoryId,
185                            threadId, status);
186            }
187    
188            public java.lang.String getThreadMessagesRSS(long threadId, int status,
189                    int max, java.lang.String type, double version,
190                    java.lang.String displayStyle, java.lang.String feedURL,
191                    java.lang.String entryURL,
192                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException {
195                    return _mbMessageService.getThreadMessagesRSS(threadId, status, max,
196                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
197            }
198    
199            public void subscribeMessage(long messageId)
200                    throws com.liferay.portal.kernel.exception.PortalException,
201                            com.liferay.portal.kernel.exception.SystemException {
202                    _mbMessageService.subscribeMessage(messageId);
203            }
204    
205            public void unsubscribeMessage(long messageId)
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException {
208                    _mbMessageService.unsubscribeMessage(messageId);
209            }
210    
211            public void updateAnswer(long messageId, boolean answer, boolean cascade)
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    _mbMessageService.updateAnswer(messageId, answer, cascade);
215            }
216    
217            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
218                    java.lang.String className, long classPK,
219                    java.lang.String permissionClassName, long permissionClassPK,
220                    long permissionOwnerId, long messageId, java.lang.String subject,
221                    java.lang.String body,
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.updateDiscussionMessage(className, classPK,
226                            permissionClassName, permissionClassPK, permissionOwnerId,
227                            messageId, subject, body, serviceContext);
228            }
229    
230            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
231                    long messageId, java.lang.String subject, java.lang.String body,
232                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
233                    java.util.List<java.lang.String> existingFiles, double priority,
234                    boolean allowPingbacks,
235                    com.liferay.portal.service.ServiceContext serviceContext)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return _mbMessageService.updateMessage(messageId, subject, body,
239                            inputStreamOVPs, existingFiles, priority, allowPingbacks,
240                            serviceContext);
241            }
242    
243            public MBMessageService getWrappedMBMessageService() {
244                    return _mbMessageService;
245            }
246    
247            public void setWrappedMBMessageService(MBMessageService mbMessageService) {
248                    _mbMessageService = mbMessageService;
249            }
250    
251            private MBMessageService _mbMessageService;
252    }