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