1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.messageboards.service;
24  
25  
26  /**
27   * <a href="MBMessageServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link MBMessageService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       MBMessageService
40   * @generated
41   */
42  public class MBMessageServiceWrapper implements MBMessageService {
43      public MBMessageServiceWrapper(MBMessageService mbMessageService) {
44          _mbMessageService = mbMessageService;
45      }
46  
47      public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
48          java.lang.String className, long classPK, long threadId,
49          long parentMessageId, java.lang.String subject, java.lang.String body,
50          com.liferay.portal.service.ServiceContext serviceContext)
51          throws com.liferay.portal.PortalException,
52              com.liferay.portal.SystemException {
53          return _mbMessageService.addDiscussionMessage(className, classPK,
54              threadId, parentMessageId, subject, body, serviceContext);
55      }
56  
57      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
58          long categoryId, long threadId, long parentMessageId,
59          java.lang.String subject, java.lang.String body,
60          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
61          boolean anonymous, double priority,
62          com.liferay.portal.service.ServiceContext serviceContext)
63          throws com.liferay.portal.PortalException,
64              com.liferay.portal.SystemException {
65          return _mbMessageService.addMessage(categoryId, threadId,
66              parentMessageId, subject, body, files, anonymous, priority,
67              serviceContext);
68      }
69  
70      public com.liferay.portlet.messageboards.model.MBMessage addMessage(
71          long categoryId, java.lang.String subject, java.lang.String body,
72          java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
73          boolean anonymous, double priority,
74          com.liferay.portal.service.ServiceContext serviceContext)
75          throws com.liferay.portal.PortalException,
76              com.liferay.portal.SystemException {
77          return _mbMessageService.addMessage(categoryId, subject, body, files,
78              anonymous, priority, serviceContext);
79      }
80  
81      public void deleteDiscussionMessage(long groupId,
82          java.lang.String className, long classPK, long messageId)
83          throws com.liferay.portal.PortalException,
84              com.liferay.portal.SystemException {
85          _mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
86              messageId);
87      }
88  
89      public void deleteMessage(long messageId)
90          throws com.liferay.portal.PortalException,
91              com.liferay.portal.SystemException {
92          _mbMessageService.deleteMessage(messageId);
93      }
94  
95      public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
96          long categoryId, int start, int end)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException {
99          return _mbMessageService.getCategoryMessages(categoryId, start, end);
100     }
101 
102     public int getCategoryMessagesCount(long categoryId)
103         throws com.liferay.portal.SystemException {
104         return _mbMessageService.getCategoryMessagesCount(categoryId);
105     }
106 
107     public java.lang.String getCategoryMessagesRSS(long categoryId, int max,
108         java.lang.String type, double version, java.lang.String displayStyle,
109         java.lang.String feedURL, java.lang.String entryURL,
110         com.liferay.portal.theme.ThemeDisplay themeDisplay)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException {
113         return _mbMessageService.getCategoryMessagesRSS(categoryId, max, type,
114             version, displayStyle, feedURL, entryURL, themeDisplay);
115     }
116 
117     public java.lang.String getCompanyMessagesRSS(long companyId, int max,
118         java.lang.String type, double version, java.lang.String displayStyle,
119         java.lang.String feedURL, java.lang.String entryURL,
120         com.liferay.portal.theme.ThemeDisplay themeDisplay)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException {
123         return _mbMessageService.getCompanyMessagesRSS(companyId, max, type,
124             version, displayStyle, feedURL, entryURL, themeDisplay);
125     }
126 
127     public java.lang.String getGroupMessagesRSS(long groupId, int max,
128         java.lang.String type, double version, java.lang.String displayStyle,
129         java.lang.String feedURL, java.lang.String entryURL,
130         com.liferay.portal.theme.ThemeDisplay themeDisplay)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         return _mbMessageService.getGroupMessagesRSS(groupId, max, type,
134             version, displayStyle, feedURL, entryURL, themeDisplay);
135     }
136 
137     public java.lang.String getGroupMessagesRSS(long groupId, long userId,
138         int max, java.lang.String type, double version,
139         java.lang.String displayStyle, java.lang.String feedURL,
140         java.lang.String entryURL,
141         com.liferay.portal.theme.ThemeDisplay themeDisplay)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException {
144         return _mbMessageService.getGroupMessagesRSS(groupId, userId, max,
145             type, version, displayStyle, feedURL, entryURL, themeDisplay);
146     }
147 
148     public com.liferay.portlet.messageboards.model.MBMessage getMessage(
149         long messageId)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException {
152         return _mbMessageService.getMessage(messageId);
153     }
154 
155     public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
156         long messageId, java.lang.String threadView)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException {
159         return _mbMessageService.getMessageDisplay(messageId, threadView);
160     }
161 
162     public java.lang.String getThreadMessagesRSS(long threadId, int max,
163         java.lang.String type, double version, java.lang.String displayStyle,
164         java.lang.String feedURL, java.lang.String entryURL,
165         com.liferay.portal.theme.ThemeDisplay themeDisplay)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException {
168         return _mbMessageService.getThreadMessagesRSS(threadId, max, type,
169             version, displayStyle, feedURL, entryURL, themeDisplay);
170     }
171 
172     public void subscribeMessage(long messageId)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException {
175         _mbMessageService.subscribeMessage(messageId);
176     }
177 
178     public void unsubscribeMessage(long messageId)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.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.PortalException,
189             com.liferay.portal.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         com.liferay.portal.service.ServiceContext serviceContext)
199         throws com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException {
201         return _mbMessageService.updateMessage(messageId, subject, body, files,
202             existingFiles, priority, serviceContext);
203     }
204 
205     public MBMessageService getWrappedMBMessageService() {
206         return _mbMessageService;
207     }
208 
209     private MBMessageService _mbMessageService;
210 }