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            /**
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            /**
066            * @deprecated {@link #addMessage(long, String, String, String,
067            java.util.List, boolean, double, boolean,
068            com.liferay.portal.service.ServiceContext)}
069            */
070            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
071                    long groupId, long categoryId, long threadId, long parentMessageId,
072                    java.lang.String subject, java.lang.String body,
073                    java.lang.String format,
074                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
075                    boolean anonymous, double priority, boolean allowPingbacks,
076                    com.liferay.portal.service.ServiceContext serviceContext)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    return _mbMessageService.addMessage(groupId, categoryId, threadId,
080                            parentMessageId, subject, body, format, inputStreamOVPs, anonymous,
081                            priority, allowPingbacks, serviceContext);
082            }
083    
084            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
085                    long groupId, long categoryId, java.lang.String subject,
086                    java.lang.String body, java.lang.String format,
087                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
088                    boolean anonymous, double priority, boolean allowPingbacks,
089                    com.liferay.portal.service.ServiceContext serviceContext)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException {
092                    return _mbMessageService.addMessage(groupId, categoryId, subject, body,
093                            format, inputStreamOVPs, anonymous, priority, allowPingbacks,
094                            serviceContext);
095            }
096    
097            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
098                    long categoryId, java.lang.String subject, java.lang.String body,
099                    com.liferay.portal.service.ServiceContext serviceContext)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException {
102                    return _mbMessageService.addMessage(categoryId, subject, body,
103                            serviceContext);
104            }
105    
106            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
107                    long parentMessageId, java.lang.String subject, java.lang.String body,
108                    java.lang.String format,
109                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
110                    boolean anonymous, double priority, boolean allowPingbacks,
111                    com.liferay.portal.service.ServiceContext serviceContext)
112                    throws com.liferay.portal.kernel.exception.PortalException,
113                            com.liferay.portal.kernel.exception.SystemException {
114                    return _mbMessageService.addMessage(parentMessageId, subject, body,
115                            format, inputStreamOVPs, anonymous, priority, allowPingbacks,
116                            serviceContext);
117            }
118    
119            public void deleteDiscussionMessage(long groupId,
120                    java.lang.String className, long classPK,
121                    java.lang.String permissionClassName, long permissionClassPK,
122                    long permissionOwnerId, long messageId)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException {
125                    _mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
126                            permissionClassName, permissionClassPK, permissionOwnerId, messageId);
127            }
128    
129            public void deleteMessage(long messageId)
130                    throws com.liferay.portal.kernel.exception.PortalException,
131                            com.liferay.portal.kernel.exception.SystemException {
132                    _mbMessageService.deleteMessage(messageId);
133            }
134    
135            public void deleteMessageAttachments(long messageId)
136                    throws com.liferay.portal.kernel.exception.PortalException,
137                            com.liferay.portal.kernel.exception.SystemException {
138                    _mbMessageService.deleteMessageAttachments(messageId);
139            }
140    
141            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
142                    long groupId, long categoryId, int status, int start, int end)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException {
145                    return _mbMessageService.getCategoryMessages(groupId, categoryId,
146                            status, start, end);
147            }
148    
149            public int getCategoryMessagesCount(long groupId, long categoryId,
150                    int status) throws com.liferay.portal.kernel.exception.SystemException {
151                    return _mbMessageService.getCategoryMessagesCount(groupId, categoryId,
152                            status);
153            }
154    
155            public java.lang.String getCategoryMessagesRSS(long groupId,
156                    long categoryId, int status, int max, java.lang.String type,
157                    double version, java.lang.String displayStyle,
158                    java.lang.String feedURL, java.lang.String entryURL,
159                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
160                    throws com.liferay.portal.kernel.exception.PortalException,
161                            com.liferay.portal.kernel.exception.SystemException {
162                    return _mbMessageService.getCategoryMessagesRSS(groupId, categoryId,
163                            status, max, type, version, displayStyle, feedURL, entryURL,
164                            themeDisplay);
165            }
166    
167            public java.lang.String getCompanyMessagesRSS(long companyId, int status,
168                    int max, java.lang.String type, double version,
169                    java.lang.String displayStyle, java.lang.String feedURL,
170                    java.lang.String entryURL,
171                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _mbMessageService.getCompanyMessagesRSS(companyId, status, max,
175                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
176            }
177    
178            public int getGroupMessagesCount(long groupId, int status)
179                    throws com.liferay.portal.kernel.exception.SystemException {
180                    return _mbMessageService.getGroupMessagesCount(groupId, status);
181            }
182    
183            public java.lang.String getGroupMessagesRSS(long groupId, int status,
184                    int max, java.lang.String type, double version,
185                    java.lang.String displayStyle, java.lang.String feedURL,
186                    java.lang.String entryURL,
187                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
188                    throws com.liferay.portal.kernel.exception.PortalException,
189                            com.liferay.portal.kernel.exception.SystemException {
190                    return _mbMessageService.getGroupMessagesRSS(groupId, status, max,
191                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
192            }
193    
194            public java.lang.String getGroupMessagesRSS(long groupId, long userId,
195                    int status, int max, java.lang.String type, double version,
196                    java.lang.String displayStyle, java.lang.String feedURL,
197                    java.lang.String entryURL,
198                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
199                    throws com.liferay.portal.kernel.exception.PortalException,
200                            com.liferay.portal.kernel.exception.SystemException {
201                    return _mbMessageService.getGroupMessagesRSS(groupId, userId, status,
202                            max, type, version, displayStyle, feedURL, entryURL, themeDisplay);
203            }
204    
205            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
206                    long messageId)
207                    throws com.liferay.portal.kernel.exception.PortalException,
208                            com.liferay.portal.kernel.exception.SystemException {
209                    return _mbMessageService.getMessage(messageId);
210            }
211    
212            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
213                    long messageId, int status, java.lang.String threadView,
214                    boolean includePrevAndNext)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException {
217                    return _mbMessageService.getMessageDisplay(messageId, status,
218                            threadView, includePrevAndNext);
219            }
220    
221            public int getThreadAnswersCount(long groupId, long categoryId,
222                    long threadId)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _mbMessageService.getThreadAnswersCount(groupId, categoryId,
225                            threadId);
226            }
227    
228            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
229                    long groupId, long categoryId, long threadId, int status, int start,
230                    int end) throws com.liferay.portal.kernel.exception.SystemException {
231                    return _mbMessageService.getThreadMessages(groupId, categoryId,
232                            threadId, status, start, end);
233            }
234    
235            public int getThreadMessagesCount(long groupId, long categoryId,
236                    long threadId, int status)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return _mbMessageService.getThreadMessagesCount(groupId, categoryId,
239                            threadId, status);
240            }
241    
242            public java.lang.String getThreadMessagesRSS(long threadId, int status,
243                    int max, java.lang.String type, double version,
244                    java.lang.String displayStyle, java.lang.String feedURL,
245                    java.lang.String entryURL,
246                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
247                    throws com.liferay.portal.kernel.exception.PortalException,
248                            com.liferay.portal.kernel.exception.SystemException {
249                    return _mbMessageService.getThreadMessagesRSS(threadId, status, max,
250                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
251            }
252    
253            public void restoreMessageAttachmentFromTrash(long messageId,
254                    java.lang.String fileName)
255                    throws com.liferay.portal.kernel.exception.PortalException,
256                            com.liferay.portal.kernel.exception.SystemException {
257                    _mbMessageService.restoreMessageAttachmentFromTrash(messageId, fileName);
258            }
259    
260            public void subscribeMessage(long messageId)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    _mbMessageService.subscribeMessage(messageId);
264            }
265    
266            public void unsubscribeMessage(long messageId)
267                    throws com.liferay.portal.kernel.exception.PortalException,
268                            com.liferay.portal.kernel.exception.SystemException {
269                    _mbMessageService.unsubscribeMessage(messageId);
270            }
271    
272            public void updateAnswer(long messageId, boolean answer, boolean cascade)
273                    throws com.liferay.portal.kernel.exception.PortalException,
274                            com.liferay.portal.kernel.exception.SystemException {
275                    _mbMessageService.updateAnswer(messageId, answer, cascade);
276            }
277    
278            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
279                    java.lang.String className, long classPK,
280                    java.lang.String permissionClassName, long permissionClassPK,
281                    long permissionOwnerId, long messageId, java.lang.String subject,
282                    java.lang.String body,
283                    com.liferay.portal.service.ServiceContext serviceContext)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    return _mbMessageService.updateDiscussionMessage(className, classPK,
287                            permissionClassName, permissionClassPK, permissionOwnerId,
288                            messageId, subject, body, serviceContext);
289            }
290    
291            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
292                    long messageId, java.lang.String subject, java.lang.String body,
293                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
294                    java.util.List<java.lang.String> existingFiles, double priority,
295                    boolean allowPingbacks,
296                    com.liferay.portal.service.ServiceContext serviceContext)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    return _mbMessageService.updateMessage(messageId, subject, body,
300                            inputStreamOVPs, existingFiles, priority, allowPingbacks,
301                            serviceContext);
302            }
303    
304            /**
305             * @deprecated Renamed to {@link #getWrappedService}
306             */
307            public MBMessageService getWrappedMBMessageService() {
308                    return _mbMessageService;
309            }
310    
311            /**
312             * @deprecated Renamed to {@link #setWrappedService}
313             */
314            public void setWrappedMBMessageService(MBMessageService mbMessageService) {
315                    _mbMessageService = mbMessageService;
316            }
317    
318            public MBMessageService getWrappedService() {
319                    return _mbMessageService;
320            }
321    
322            public void setWrappedService(MBMessageService mbMessageService) {
323                    _mbMessageService = mbMessageService;
324            }
325    
326            private MBMessageService _mbMessageService;
327    }