001    /**
002     * Copyright (c) 2000-2011 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    /**
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.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
048                    boolean anonymous, double priority, boolean allowPingbacks,
049                    com.liferay.portal.service.ServiceContext serviceContext)
050                    throws com.liferay.portal.kernel.exception.PortalException,
051                            com.liferay.portal.kernel.exception.SystemException {
052                    return _mbMessageService.addMessage(groupId, categoryId, threadId,
053                            parentMessageId, subject, body, files, anonymous, priority,
054                            allowPingbacks, serviceContext);
055            }
056    
057            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
058                    long groupId, long categoryId, java.lang.String subject,
059                    java.lang.String body,
060                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
061                    boolean anonymous, double priority, boolean allowPingbacks,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    return _mbMessageService.addMessage(groupId, categoryId, subject, body,
066                            files, anonymous, priority, allowPingbacks, serviceContext);
067            }
068    
069            public void deleteDiscussionMessage(long groupId,
070                    java.lang.String className, long classPK,
071                    java.lang.String permissionClassName, long permissionClassPK,
072                    long permissionOwnerId, long messageId)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    _mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
076                            permissionClassName, permissionClassPK, permissionOwnerId, messageId);
077            }
078    
079            public void deleteMessage(long messageId)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException {
082                    _mbMessageService.deleteMessage(messageId);
083            }
084    
085            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
086                    long groupId, long categoryId, int status, int start, int end)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    return _mbMessageService.getCategoryMessages(groupId, categoryId,
090                            status, start, end);
091            }
092    
093            public int getCategoryMessagesCount(long groupId, long categoryId,
094                    int status) throws com.liferay.portal.kernel.exception.SystemException {
095                    return _mbMessageService.getCategoryMessagesCount(groupId, categoryId,
096                            status);
097            }
098    
099            public java.lang.String getCategoryMessagesRSS(long groupId,
100                    long categoryId, int status, int max, java.lang.String type,
101                    double version, java.lang.String displayStyle,
102                    java.lang.String feedURL, java.lang.String entryURL,
103                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException {
106                    return _mbMessageService.getCategoryMessagesRSS(groupId, categoryId,
107                            status, max, type, version, displayStyle, feedURL, entryURL,
108                            themeDisplay);
109            }
110    
111            public java.lang.String getCompanyMessagesRSS(long companyId, int status,
112                    int max, java.lang.String type, double version,
113                    java.lang.String displayStyle, java.lang.String feedURL,
114                    java.lang.String entryURL,
115                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
116                    throws com.liferay.portal.kernel.exception.PortalException,
117                            com.liferay.portal.kernel.exception.SystemException {
118                    return _mbMessageService.getCompanyMessagesRSS(companyId, status, max,
119                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
120            }
121    
122            public int getGroupMessagesCount(long groupId, int status)
123                    throws com.liferay.portal.kernel.exception.SystemException {
124                    return _mbMessageService.getGroupMessagesCount(groupId, status);
125            }
126    
127            public java.lang.String getGroupMessagesRSS(long groupId, int status,
128                    int max, java.lang.String type, double version,
129                    java.lang.String displayStyle, java.lang.String feedURL,
130                    java.lang.String entryURL,
131                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException {
134                    return _mbMessageService.getGroupMessagesRSS(groupId, status, max,
135                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
136            }
137    
138            public java.lang.String getGroupMessagesRSS(long groupId, long userId,
139                    int status, int max, java.lang.String type, double version,
140                    java.lang.String displayStyle, java.lang.String feedURL,
141                    java.lang.String entryURL,
142                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException {
145                    return _mbMessageService.getGroupMessagesRSS(groupId, userId, status,
146                            max, type, version, displayStyle, feedURL, entryURL, themeDisplay);
147            }
148    
149            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
150                    long messageId)
151                    throws com.liferay.portal.kernel.exception.PortalException,
152                            com.liferay.portal.kernel.exception.SystemException {
153                    return _mbMessageService.getMessage(messageId);
154            }
155    
156            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
157                    long messageId, int status, java.lang.String threadView,
158                    boolean includePrevAndNext)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException {
161                    return _mbMessageService.getMessageDisplay(messageId, status,
162                            threadView, includePrevAndNext);
163            }
164    
165            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
166                    long groupId, long categoryId, long threadId, int status, int start,
167                    int end) throws com.liferay.portal.kernel.exception.SystemException {
168                    return _mbMessageService.getThreadMessages(groupId, categoryId,
169                            threadId, status, start, end);
170            }
171    
172            public int getThreadMessagesCount(long groupId, long categoryId,
173                    long threadId, int status)
174                    throws com.liferay.portal.kernel.exception.SystemException {
175                    return _mbMessageService.getThreadMessagesCount(groupId, categoryId,
176                            threadId, status);
177            }
178    
179            public java.lang.String getThreadMessagesRSS(long threadId, int status,
180                    int max, java.lang.String type, double version,
181                    java.lang.String displayStyle, java.lang.String feedURL,
182                    java.lang.String entryURL,
183                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
184                    throws com.liferay.portal.kernel.exception.PortalException,
185                            com.liferay.portal.kernel.exception.SystemException {
186                    return _mbMessageService.getThreadMessagesRSS(threadId, status, max,
187                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
188            }
189    
190            public void subscribeMessage(long messageId)
191                    throws com.liferay.portal.kernel.exception.PortalException,
192                            com.liferay.portal.kernel.exception.SystemException {
193                    _mbMessageService.subscribeMessage(messageId);
194            }
195    
196            public void unsubscribeMessage(long messageId)
197                    throws com.liferay.portal.kernel.exception.PortalException,
198                            com.liferay.portal.kernel.exception.SystemException {
199                    _mbMessageService.unsubscribeMessage(messageId);
200            }
201    
202            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
203                    java.lang.String className, long classPK,
204                    java.lang.String permissionClassName, long permissionClassPK,
205                    long permissionOwnerId, long messageId, java.lang.String subject,
206                    java.lang.String body,
207                    com.liferay.portal.service.ServiceContext serviceContext)
208                    throws com.liferay.portal.kernel.exception.PortalException,
209                            com.liferay.portal.kernel.exception.SystemException {
210                    return _mbMessageService.updateDiscussionMessage(className, classPK,
211                            permissionClassName, permissionClassPK, permissionOwnerId,
212                            messageId, subject, body, serviceContext);
213            }
214    
215            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
216                    long messageId, java.lang.String subject, java.lang.String body,
217                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
218                    java.util.List<java.lang.String> existingFiles, double priority,
219                    boolean allowPingbacks,
220                    com.liferay.portal.service.ServiceContext serviceContext)
221                    throws com.liferay.portal.kernel.exception.PortalException,
222                            com.liferay.portal.kernel.exception.SystemException {
223                    return _mbMessageService.updateMessage(messageId, subject, body, files,
224                            existingFiles, priority, allowPingbacks, serviceContext);
225            }
226    
227            public MBMessageService getWrappedMBMessageService() {
228                    return _mbMessageService;
229            }
230    
231            public void setWrappedMBMessageService(MBMessageService mbMessageService) {
232                    _mbMessageService = mbMessageService;
233            }
234    
235            private MBMessageService _mbMessageService;
236    }