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