001    /**
002     * Copyright (c) 2000-2013 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link MBMessageService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see MBMessageService
026     * @generated
027     */
028    @ProviderType
029    public class MBMessageServiceWrapper implements MBMessageService,
030            ServiceWrapper<MBMessageService> {
031            public MBMessageServiceWrapper(MBMessageService mbMessageService) {
032                    _mbMessageService = mbMessageService;
033            }
034    
035            /**
036            * Returns the Spring bean ID for this bean.
037            *
038            * @return the Spring bean ID for this bean
039            */
040            @Override
041            public java.lang.String getBeanIdentifier() {
042                    return _mbMessageService.getBeanIdentifier();
043            }
044    
045            /**
046            * Sets the Spring bean ID for this bean.
047            *
048            * @param beanIdentifier the Spring bean ID for this bean
049            */
050            @Override
051            public void setBeanIdentifier(java.lang.String beanIdentifier) {
052                    _mbMessageService.setBeanIdentifier(beanIdentifier);
053            }
054    
055            @Override
056            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
057                    long groupId, java.lang.String className, long classPK,
058                    java.lang.String permissionClassName, long permissionClassPK,
059                    long permissionOwnerId, long threadId, long parentMessageId,
060                    java.lang.String subject, java.lang.String body,
061                    com.liferay.portal.service.ServiceContext serviceContext)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    return _mbMessageService.addDiscussionMessage(groupId, className,
065                            classPK, permissionClassName, permissionClassPK, permissionOwnerId,
066                            threadId, parentMessageId, subject, body, serviceContext);
067            }
068    
069            /**
070            * @deprecated As of 6.2.0, replaced by {@link #addMessage(long, String,
071            String, String, java.util.List, boolean, double, boolean,
072            com.liferay.portal.service.ServiceContext)}
073            */
074            @Override
075            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
076                    long groupId, long categoryId, long threadId, long parentMessageId,
077                    java.lang.String subject, java.lang.String body,
078                    java.lang.String format,
079                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
080                    boolean anonymous, double priority, boolean allowPingbacks,
081                    com.liferay.portal.service.ServiceContext serviceContext)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    return _mbMessageService.addMessage(groupId, categoryId, threadId,
085                            parentMessageId, subject, body, format, inputStreamOVPs, anonymous,
086                            priority, allowPingbacks, serviceContext);
087            }
088    
089            @Override
090            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
091                    long groupId, long categoryId, java.lang.String subject,
092                    java.lang.String body, java.lang.String format,
093                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
094                    boolean anonymous, double priority, boolean allowPingbacks,
095                    com.liferay.portal.service.ServiceContext serviceContext)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException {
098                    return _mbMessageService.addMessage(groupId, categoryId, subject, body,
099                            format, inputStreamOVPs, anonymous, priority, allowPingbacks,
100                            serviceContext);
101            }
102    
103            @Override
104            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
105                    long categoryId, java.lang.String subject, java.lang.String body,
106                    com.liferay.portal.service.ServiceContext serviceContext)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException {
109                    return _mbMessageService.addMessage(categoryId, subject, body,
110                            serviceContext);
111            }
112    
113            @Override
114            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
115                    long parentMessageId, java.lang.String subject, java.lang.String body,
116                    java.lang.String format,
117                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
118                    boolean anonymous, double priority, boolean allowPingbacks,
119                    com.liferay.portal.service.ServiceContext serviceContext)
120                    throws com.liferay.portal.kernel.exception.PortalException,
121                            com.liferay.portal.kernel.exception.SystemException {
122                    return _mbMessageService.addMessage(parentMessageId, subject, body,
123                            format, inputStreamOVPs, anonymous, priority, allowPingbacks,
124                            serviceContext);
125            }
126    
127            @Override
128            public void deleteDiscussionMessage(long groupId,
129                    java.lang.String className, long classPK,
130                    java.lang.String permissionClassName, long permissionClassPK,
131                    long permissionOwnerId, long messageId)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException {
134                    _mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
135                            permissionClassName, permissionClassPK, permissionOwnerId, messageId);
136            }
137    
138            @Override
139            public void deleteMessage(long messageId)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException {
142                    _mbMessageService.deleteMessage(messageId);
143            }
144    
145            @Override
146            public void deleteMessageAttachments(long messageId)
147                    throws com.liferay.portal.kernel.exception.PortalException,
148                            com.liferay.portal.kernel.exception.SystemException {
149                    _mbMessageService.deleteMessageAttachments(messageId);
150            }
151    
152            @Override
153            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
154                    long groupId, long categoryId, int status, int start, int end)
155                    throws com.liferay.portal.kernel.exception.PortalException,
156                            com.liferay.portal.kernel.exception.SystemException {
157                    return _mbMessageService.getCategoryMessages(groupId, categoryId,
158                            status, start, end);
159            }
160    
161            @Override
162            public int getCategoryMessagesCount(long groupId, long categoryId,
163                    int status) throws com.liferay.portal.kernel.exception.SystemException {
164                    return _mbMessageService.getCategoryMessagesCount(groupId, categoryId,
165                            status);
166            }
167    
168            @Override
169            public java.lang.String getCategoryMessagesRSS(long groupId,
170                    long categoryId, int status, int max, java.lang.String type,
171                    double version, java.lang.String displayStyle,
172                    java.lang.String feedURL, java.lang.String entryURL,
173                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    return _mbMessageService.getCategoryMessagesRSS(groupId, categoryId,
177                            status, max, type, version, displayStyle, feedURL, entryURL,
178                            themeDisplay);
179            }
180    
181            @Override
182            public java.lang.String getCompanyMessagesRSS(long companyId, int status,
183                    int max, java.lang.String type, double version,
184                    java.lang.String displayStyle, java.lang.String feedURL,
185                    java.lang.String entryURL,
186                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
187                    throws com.liferay.portal.kernel.exception.PortalException,
188                            com.liferay.portal.kernel.exception.SystemException {
189                    return _mbMessageService.getCompanyMessagesRSS(companyId, status, max,
190                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
191            }
192    
193            @Override
194            public int getGroupMessagesCount(long groupId, int status)
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return _mbMessageService.getGroupMessagesCount(groupId, status);
197            }
198    
199            @Override
200            public java.lang.String getGroupMessagesRSS(long groupId, int status,
201                    int max, java.lang.String type, double version,
202                    java.lang.String displayStyle, java.lang.String feedURL,
203                    java.lang.String entryURL,
204                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException {
207                    return _mbMessageService.getGroupMessagesRSS(groupId, status, max,
208                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
209            }
210    
211            @Override
212            public java.lang.String getGroupMessagesRSS(long groupId, long userId,
213                    int status, int max, java.lang.String type, double version,
214                    java.lang.String displayStyle, java.lang.String feedURL,
215                    java.lang.String entryURL,
216                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException {
219                    return _mbMessageService.getGroupMessagesRSS(groupId, userId, status,
220                            max, type, version, displayStyle, feedURL, entryURL, themeDisplay);
221            }
222    
223            @Override
224            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
225                    long messageId)
226                    throws com.liferay.portal.kernel.exception.PortalException,
227                            com.liferay.portal.kernel.exception.SystemException {
228                    return _mbMessageService.getMessage(messageId);
229            }
230    
231            @Override
232            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
233                    long messageId, int status, java.lang.String threadView,
234                    boolean includePrevAndNext)
235                    throws com.liferay.portal.kernel.exception.PortalException,
236                            com.liferay.portal.kernel.exception.SystemException {
237                    return _mbMessageService.getMessageDisplay(messageId, status,
238                            threadView, includePrevAndNext);
239            }
240    
241            @Override
242            public int getThreadAnswersCount(long groupId, long categoryId,
243                    long threadId)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _mbMessageService.getThreadAnswersCount(groupId, categoryId,
246                            threadId);
247            }
248    
249            @Override
250            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
251                    long groupId, long categoryId, long threadId, int status, int start,
252                    int end) throws com.liferay.portal.kernel.exception.SystemException {
253                    return _mbMessageService.getThreadMessages(groupId, categoryId,
254                            threadId, status, start, end);
255            }
256    
257            @Override
258            public int getThreadMessagesCount(long groupId, long categoryId,
259                    long threadId, int status)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return _mbMessageService.getThreadMessagesCount(groupId, categoryId,
262                            threadId, status);
263            }
264    
265            @Override
266            public java.lang.String getThreadMessagesRSS(long threadId, int status,
267                    int max, java.lang.String type, double version,
268                    java.lang.String displayStyle, java.lang.String feedURL,
269                    java.lang.String entryURL,
270                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    return _mbMessageService.getThreadMessagesRSS(threadId, status, max,
274                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
275            }
276    
277            @Override
278            public void restoreMessageAttachmentFromTrash(long messageId,
279                    java.lang.String fileName)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    _mbMessageService.restoreMessageAttachmentFromTrash(messageId, fileName);
283            }
284    
285            @Override
286            public void subscribeMessage(long messageId)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _mbMessageService.subscribeMessage(messageId);
290            }
291    
292            @Override
293            public void unsubscribeMessage(long messageId)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    _mbMessageService.unsubscribeMessage(messageId);
297            }
298    
299            @Override
300            public void updateAnswer(long messageId, boolean answer, boolean cascade)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _mbMessageService.updateAnswer(messageId, answer, cascade);
304            }
305    
306            @Override
307            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
308                    java.lang.String className, long classPK,
309                    java.lang.String permissionClassName, long permissionClassPK,
310                    long permissionOwnerId, long messageId, java.lang.String subject,
311                    java.lang.String body,
312                    com.liferay.portal.service.ServiceContext serviceContext)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    return _mbMessageService.updateDiscussionMessage(className, classPK,
316                            permissionClassName, permissionClassPK, permissionOwnerId,
317                            messageId, subject, body, serviceContext);
318            }
319    
320            @Override
321            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
322                    long messageId, java.lang.String subject, java.lang.String body,
323                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
324                    java.util.List<java.lang.String> existingFiles, double priority,
325                    boolean allowPingbacks,
326                    com.liferay.portal.service.ServiceContext serviceContext)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    return _mbMessageService.updateMessage(messageId, subject, body,
330                            inputStreamOVPs, existingFiles, priority, allowPingbacks,
331                            serviceContext);
332            }
333    
334            /**
335             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
336             */
337            public MBMessageService getWrappedMBMessageService() {
338                    return _mbMessageService;
339            }
340    
341            /**
342             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
343             */
344            public void setWrappedMBMessageService(MBMessageService mbMessageService) {
345                    _mbMessageService = mbMessageService;
346            }
347    
348            @Override
349            public MBMessageService getWrappedService() {
350                    return _mbMessageService;
351            }
352    
353            @Override
354            public void setWrappedService(MBMessageService mbMessageService) {
355                    _mbMessageService = mbMessageService;
356            }
357    
358            private MBMessageService _mbMessageService;
359    }