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,
41          java.lang.String permissionClassName, long permissionClassPK,
42          long threadId, long parentMessageId, java.lang.String subject,
43          java.lang.String body,
44          com.liferay.portal.service.ServiceContext serviceContext)
45          throws com.liferay.portal.kernel.exception.PortalException,
46              com.liferay.portal.kernel.exception.SystemException {
47          return _mbMessageService.addDiscussionMessage(className, classPK,
48              permissionClassName, permissionClassPK, threadId, parentMessageId,
49              subject, body, serviceContext);
50      }
51  
52      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
53          long groupId, long categoryId, java.lang.String subject,
54          java.lang.String body,
55          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
56          boolean anonymous, double priority, boolean allowPingbacks,
57          com.liferay.portal.service.ServiceContext serviceContext)
58          throws com.liferay.portal.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException {
60          return _mbMessageService.addMessage(groupId, categoryId, subject, body,
61              files, anonymous, priority, allowPingbacks, serviceContext);
62      }
63  
64      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
65          long groupId, long categoryId, long threadId, long parentMessageId,
66          java.lang.String subject, java.lang.String body,
67          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
68          boolean anonymous, double priority, boolean allowPingbacks,
69          com.liferay.portal.service.ServiceContext serviceContext)
70          throws com.liferay.portal.kernel.exception.PortalException,
71              com.liferay.portal.kernel.exception.SystemException {
72          return _mbMessageService.addMessage(groupId, categoryId, threadId,
73              parentMessageId, subject, body, files, anonymous, priority,
74              allowPingbacks, serviceContext);
75      }
76  
77      public void deleteDiscussionMessage(long groupId,
78          java.lang.String className, long classPK,
79          java.lang.String permissionClassName, long permissionClassPK,
80          long messageId)
81          throws com.liferay.portal.kernel.exception.PortalException,
82              com.liferay.portal.kernel.exception.SystemException {
83          _mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
84              permissionClassName, permissionClassPK, messageId);
85      }
86  
87      public void deleteMessage(long messageId)
88          throws com.liferay.portal.kernel.exception.PortalException,
89              com.liferay.portal.kernel.exception.SystemException {
90          _mbMessageService.deleteMessage(messageId);
91      }
92  
93      public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
94          long groupId, long categoryId, int status, int start, int end)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return _mbMessageService.getCategoryMessages(groupId, categoryId,
98              status, start, end);
99      }
100 
101     public int getCategoryMessagesCount(long groupId, long categoryId,
102         int status) throws com.liferay.portal.kernel.exception.SystemException {
103         return _mbMessageService.getCategoryMessagesCount(groupId, categoryId,
104             status);
105     }
106 
107     public java.lang.String getCategoryMessagesRSS(long groupId,
108         long categoryId, int status, int max, java.lang.String type,
109         double version, java.lang.String displayStyle,
110         java.lang.String feedURL, java.lang.String entryURL,
111         com.liferay.portal.theme.ThemeDisplay themeDisplay)
112         throws com.liferay.portal.kernel.exception.PortalException,
113             com.liferay.portal.kernel.exception.SystemException {
114         return _mbMessageService.getCategoryMessagesRSS(groupId, categoryId,
115             status, max, type, version, displayStyle, feedURL, entryURL,
116             themeDisplay);
117     }
118 
119     public java.lang.String getCompanyMessagesRSS(long companyId, int status,
120         int max, java.lang.String type, double version,
121         java.lang.String displayStyle, java.lang.String feedURL,
122         java.lang.String entryURL,
123         com.liferay.portal.theme.ThemeDisplay themeDisplay)
124         throws com.liferay.portal.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException {
126         return _mbMessageService.getCompanyMessagesRSS(companyId, status, max,
127             type, version, displayStyle, feedURL, entryURL, themeDisplay);
128     }
129 
130     public java.lang.String getGroupMessagesRSS(long groupId, int status,
131         int max, java.lang.String type, double version,
132         java.lang.String displayStyle, java.lang.String feedURL,
133         java.lang.String entryURL,
134         com.liferay.portal.theme.ThemeDisplay themeDisplay)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException {
137         return _mbMessageService.getGroupMessagesRSS(groupId, status, max,
138             type, version, displayStyle, feedURL, entryURL, themeDisplay);
139     }
140 
141     public java.lang.String getGroupMessagesRSS(long groupId, long userId,
142         int status, int max, java.lang.String type, double version,
143         java.lang.String displayStyle, java.lang.String feedURL,
144         java.lang.String entryURL,
145         com.liferay.portal.theme.ThemeDisplay themeDisplay)
146         throws com.liferay.portal.kernel.exception.PortalException,
147             com.liferay.portal.kernel.exception.SystemException {
148         return _mbMessageService.getGroupMessagesRSS(groupId, userId, status,
149             max, type, version, displayStyle, feedURL, entryURL, themeDisplay);
150     }
151 
152     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
153         long messageId)
154         throws com.liferay.portal.kernel.exception.PortalException,
155             com.liferay.portal.kernel.exception.SystemException {
156         return _mbMessageService.getMessage(messageId);
157     }
158 
159     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
160         long messageId, int status, java.lang.String threadView)
161         throws com.liferay.portal.kernel.exception.PortalException,
162             com.liferay.portal.kernel.exception.SystemException {
163         return _mbMessageService.getMessageDisplay(messageId, status, threadView);
164     }
165 
166     public java.lang.String getThreadMessagesRSS(long threadId, int status,
167         int max, java.lang.String type, double version,
168         java.lang.String displayStyle, java.lang.String feedURL,
169         java.lang.String entryURL,
170         com.liferay.portal.theme.ThemeDisplay themeDisplay)
171         throws com.liferay.portal.kernel.exception.PortalException,
172             com.liferay.portal.kernel.exception.SystemException {
173         return _mbMessageService.getThreadMessagesRSS(threadId, status, max,
174             type, version, displayStyle, feedURL, entryURL, themeDisplay);
175     }
176 
177     public void subscribeMessage(long messageId)
178         throws com.liferay.portal.kernel.exception.PortalException,
179             com.liferay.portal.kernel.exception.SystemException {
180         _mbMessageService.subscribeMessage(messageId);
181     }
182 
183     public void unsubscribeMessage(long messageId)
184         throws com.liferay.portal.kernel.exception.PortalException,
185             com.liferay.portal.kernel.exception.SystemException {
186         _mbMessageService.unsubscribeMessage(messageId);
187     }
188 
189     public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
190         java.lang.String className, long classPK,
191         java.lang.String permissionClassName, long permissionClassPK,
192         long messageId, java.lang.String subject, java.lang.String body,
193         com.liferay.portal.service.ServiceContext serviceContext)
194         throws com.liferay.portal.kernel.exception.PortalException,
195             com.liferay.portal.kernel.exception.SystemException {
196         return _mbMessageService.updateDiscussionMessage(className, classPK,
197             permissionClassName, permissionClassPK, messageId, subject, body,
198             serviceContext);
199     }
200 
201     public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
202         long messageId, java.lang.String subject, java.lang.String body,
203         java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
204         java.util.List<String> existingFiles, double priority,
205         boolean allowPingbacks,
206         com.liferay.portal.service.ServiceContext serviceContext)
207         throws com.liferay.portal.kernel.exception.PortalException,
208             com.liferay.portal.kernel.exception.SystemException {
209         return _mbMessageService.updateMessage(messageId, subject, body, files,
210             existingFiles, priority, allowPingbacks, serviceContext);
211     }
212 
213     public MBMessageService getWrappedMBMessageService() {
214         return _mbMessageService;
215     }
216 
217     private MBMessageService _mbMessageService;
218 }