1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service;
16  
17  
18  /**
19   * <a href="MBMessageServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link MBMessageService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       MBMessageService
32   * @generated
33   */
34  public class MBMessageServiceWrapper implements MBMessageService {
35      public MBMessageServiceWrapper(MBMessageService mbMessageService) {
36          _mbMessageService = mbMessageService;
37      }
38  
39      public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
40          java.lang.String className, long classPK, long threadId,
41          long parentMessageId, java.lang.String subject, java.lang.String body,
42          com.liferay.portal.service.ServiceContext serviceContext)
43          throws com.liferay.portal.kernel.exception.PortalException,
44              com.liferay.portal.kernel.exception.SystemException {
45          return _mbMessageService.addDiscussionMessage(className, classPK,
46              threadId, parentMessageId, subject, body, serviceContext);
47      }
48  
49      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
50          long groupId, long categoryId, java.lang.String subject,
51          java.lang.String body,
52          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
53          boolean anonymous, double priority, boolean allowPingbacks,
54          com.liferay.portal.service.ServiceContext serviceContext)
55          throws com.liferay.portal.kernel.exception.PortalException,
56              com.liferay.portal.kernel.exception.SystemException {
57          return _mbMessageService.addMessage(groupId, categoryId, subject, body,
58              files, anonymous, priority, allowPingbacks, serviceContext);
59      }
60  
61      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
62          long groupId, long categoryId, long threadId, long parentMessageId,
63          java.lang.String subject, java.lang.String body,
64          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
65          boolean anonymous, double priority, boolean allowPingbacks,
66          com.liferay.portal.service.ServiceContext serviceContext)
67          throws com.liferay.portal.kernel.exception.PortalException,
68              com.liferay.portal.kernel.exception.SystemException {
69          return _mbMessageService.addMessage(groupId, categoryId, threadId,
70              parentMessageId, subject, body, files, anonymous, priority,
71              allowPingbacks, serviceContext);
72      }
73  
74      public void deleteDiscussionMessage(long groupId,
75          java.lang.String className, long classPK, long messageId)
76          throws com.liferay.portal.kernel.exception.PortalException,
77              com.liferay.portal.kernel.exception.SystemException {
78          _mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
79              messageId);
80      }
81  
82      public void deleteMessage(long messageId)
83          throws com.liferay.portal.kernel.exception.PortalException,
84              com.liferay.portal.kernel.exception.SystemException {
85          _mbMessageService.deleteMessage(messageId);
86      }
87  
88      public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
89          long groupId, long categoryId, int status, int start, int end)
90          throws com.liferay.portal.kernel.exception.PortalException,
91              com.liferay.portal.kernel.exception.SystemException {
92          return _mbMessageService.getCategoryMessages(groupId, categoryId,
93              status, start, end);
94      }
95  
96      public int getCategoryMessagesCount(long groupId, long categoryId,
97          int status) throws com.liferay.portal.kernel.exception.SystemException {
98          return _mbMessageService.getCategoryMessagesCount(groupId, categoryId,
99              status);
100     }
101 
102     public java.lang.String getCategoryMessagesRSS(long groupId,
103         long categoryId, int status, int max, java.lang.String type,
104         double version, java.lang.String displayStyle,
105         java.lang.String feedURL, java.lang.String entryURL,
106         com.liferay.portal.theme.ThemeDisplay themeDisplay)
107         throws com.liferay.portal.kernel.exception.PortalException,
108             com.liferay.portal.kernel.exception.SystemException {
109         return _mbMessageService.getCategoryMessagesRSS(groupId, categoryId,
110             status, max, type, version, displayStyle, feedURL, entryURL,
111             themeDisplay);
112     }
113 
114     public java.lang.String getCompanyMessagesRSS(long companyId, int status,
115         int max, java.lang.String type, double version,
116         java.lang.String displayStyle, java.lang.String feedURL,
117         java.lang.String entryURL,
118         com.liferay.portal.theme.ThemeDisplay themeDisplay)
119         throws com.liferay.portal.kernel.exception.PortalException,
120             com.liferay.portal.kernel.exception.SystemException {
121         return _mbMessageService.getCompanyMessagesRSS(companyId, status, max,
122             type, version, displayStyle, feedURL, entryURL, themeDisplay);
123     }
124 
125     public java.lang.String getGroupMessagesRSS(long groupId, int status,
126         int max, java.lang.String type, double version,
127         java.lang.String displayStyle, java.lang.String feedURL,
128         java.lang.String entryURL,
129         com.liferay.portal.theme.ThemeDisplay themeDisplay)
130         throws com.liferay.portal.kernel.exception.PortalException,
131             com.liferay.portal.kernel.exception.SystemException {
132         return _mbMessageService.getGroupMessagesRSS(groupId, status, max,
133             type, version, displayStyle, feedURL, entryURL, themeDisplay);
134     }
135 
136     public java.lang.String getGroupMessagesRSS(long groupId, long userId,
137         int status, int max, java.lang.String type, double version,
138         java.lang.String displayStyle, java.lang.String feedURL,
139         java.lang.String entryURL,
140         com.liferay.portal.theme.ThemeDisplay themeDisplay)
141         throws com.liferay.portal.kernel.exception.PortalException,
142             com.liferay.portal.kernel.exception.SystemException {
143         return _mbMessageService.getGroupMessagesRSS(groupId, userId, status,
144             max, type, version, displayStyle, feedURL, entryURL, themeDisplay);
145     }
146 
147     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
148         long messageId)
149         throws com.liferay.portal.kernel.exception.PortalException,
150             com.liferay.portal.kernel.exception.SystemException {
151         return _mbMessageService.getMessage(messageId);
152     }
153 
154     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
155         long messageId, int status, java.lang.String threadView)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException {
158         return _mbMessageService.getMessageDisplay(messageId, status, threadView);
159     }
160 
161     public java.lang.String getThreadMessagesRSS(long threadId, int status,
162         int max, java.lang.String type, double version,
163         java.lang.String displayStyle, java.lang.String feedURL,
164         java.lang.String entryURL,
165         com.liferay.portal.theme.ThemeDisplay themeDisplay)
166         throws com.liferay.portal.kernel.exception.PortalException,
167             com.liferay.portal.kernel.exception.SystemException {
168         return _mbMessageService.getThreadMessagesRSS(threadId, status, max,
169             type, version, displayStyle, feedURL, entryURL, themeDisplay);
170     }
171 
172     public void subscribeMessage(long messageId)
173         throws com.liferay.portal.kernel.exception.PortalException,
174             com.liferay.portal.kernel.exception.SystemException {
175         _mbMessageService.subscribeMessage(messageId);
176     }
177 
178     public void unsubscribeMessage(long messageId)
179         throws com.liferay.portal.kernel.exception.PortalException,
180             com.liferay.portal.kernel.exception.SystemException {
181         _mbMessageService.unsubscribeMessage(messageId);
182     }
183 
184     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
185         java.lang.String className, long classPK, long messageId,
186         java.lang.String subject, java.lang.String body,
187         com.liferay.portal.service.ServiceContext serviceContext)
188         throws com.liferay.portal.kernel.exception.PortalException,
189             com.liferay.portal.kernel.exception.SystemException {
190         return _mbMessageService.updateDiscussionMessage(className, classPK,
191             messageId, subject, body, serviceContext);
192     }
193 
194     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
195         long messageId, java.lang.String subject, java.lang.String body,
196         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
197         java.util.List<String> existingFiles, double priority,
198         boolean allowPingbacks,
199         com.liferay.portal.service.ServiceContext serviceContext)
200         throws com.liferay.portal.kernel.exception.PortalException,
201             com.liferay.portal.kernel.exception.SystemException {
202         return _mbMessageService.updateMessage(messageId, subject, body, files,
203             existingFiles, priority, allowPingbacks, serviceContext);
204     }
205 
206     public MBMessageService getWrappedMBMessageService() {
207         return _mbMessageService;
208     }
209 
210     private MBMessageService _mbMessageService;
211 }