001
014
015 package com.liferay.portlet.messageboards.service;
016
017 import com.liferay.portal.service.ServiceWrapper;
018
019
028 public class MBMessageServiceWrapper implements MBMessageService,
029 ServiceWrapper<MBMessageService> {
030 public MBMessageServiceWrapper(MBMessageService mbMessageService) {
031 _mbMessageService = mbMessageService;
032 }
033
034
039 public java.lang.String getBeanIdentifier() {
040 return _mbMessageService.getBeanIdentifier();
041 }
042
043
048 public void setBeanIdentifier(java.lang.String beanIdentifier) {
049 _mbMessageService.setBeanIdentifier(beanIdentifier);
050 }
051
052 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
053 long groupId, java.lang.String className, long classPK,
054 java.lang.String permissionClassName, long permissionClassPK,
055 long permissionOwnerId, long threadId, long parentMessageId,
056 java.lang.String subject, java.lang.String body,
057 com.liferay.portal.service.ServiceContext serviceContext)
058 throws com.liferay.portal.kernel.exception.PortalException,
059 com.liferay.portal.kernel.exception.SystemException {
060 return _mbMessageService.addDiscussionMessage(groupId, className,
061 classPK, permissionClassName, permissionClassPK, permissionOwnerId,
062 threadId, parentMessageId, subject, body, serviceContext);
063 }
064
065
070 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
071 long groupId, long categoryId, long threadId, long parentMessageId,
072 java.lang.String subject, java.lang.String body,
073 java.lang.String format,
074 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
075 boolean anonymous, double priority, boolean allowPingbacks,
076 com.liferay.portal.service.ServiceContext serviceContext)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException {
079 return _mbMessageService.addMessage(groupId, categoryId, threadId,
080 parentMessageId, subject, body, format, inputStreamOVPs, anonymous,
081 priority, allowPingbacks, serviceContext);
082 }
083
084 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
085 long groupId, long categoryId, java.lang.String subject,
086 java.lang.String body, java.lang.String format,
087 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
088 boolean anonymous, double priority, boolean allowPingbacks,
089 com.liferay.portal.service.ServiceContext serviceContext)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException {
092 return _mbMessageService.addMessage(groupId, categoryId, subject, body,
093 format, inputStreamOVPs, anonymous, priority, allowPingbacks,
094 serviceContext);
095 }
096
097 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
098 long parentMessageId, java.lang.String subject, java.lang.String body,
099 java.lang.String format,
100 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
101 boolean anonymous, double priority, boolean allowPingbacks,
102 com.liferay.portal.service.ServiceContext serviceContext)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException {
105 return _mbMessageService.addMessage(parentMessageId, subject, body,
106 format, inputStreamOVPs, anonymous, priority, allowPingbacks,
107 serviceContext);
108 }
109
110 public void deleteDiscussionMessage(long groupId,
111 java.lang.String className, long classPK,
112 java.lang.String permissionClassName, long permissionClassPK,
113 long permissionOwnerId, long messageId)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException {
116 _mbMessageService.deleteDiscussionMessage(groupId, className, classPK,
117 permissionClassName, permissionClassPK, permissionOwnerId, messageId);
118 }
119
120 public void deleteMessage(long messageId)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 _mbMessageService.deleteMessage(messageId);
124 }
125
126 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
127 long groupId, long categoryId, int status, int start, int end)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException {
130 return _mbMessageService.getCategoryMessages(groupId, categoryId,
131 status, start, end);
132 }
133
134 public int getCategoryMessagesCount(long groupId, long categoryId,
135 int status) throws com.liferay.portal.kernel.exception.SystemException {
136 return _mbMessageService.getCategoryMessagesCount(groupId, categoryId,
137 status);
138 }
139
140 public java.lang.String getCategoryMessagesRSS(long groupId,
141 long categoryId, int status, int max, java.lang.String type,
142 double version, java.lang.String displayStyle,
143 java.lang.String feedURL, java.lang.String entryURL,
144 com.liferay.portal.theme.ThemeDisplay themeDisplay)
145 throws com.liferay.portal.kernel.exception.PortalException,
146 com.liferay.portal.kernel.exception.SystemException {
147 return _mbMessageService.getCategoryMessagesRSS(groupId, categoryId,
148 status, max, type, version, displayStyle, feedURL, entryURL,
149 themeDisplay);
150 }
151
152 public java.lang.String getCompanyMessagesRSS(long companyId, int status,
153 int max, java.lang.String type, double version,
154 java.lang.String displayStyle, java.lang.String feedURL,
155 java.lang.String entryURL,
156 com.liferay.portal.theme.ThemeDisplay themeDisplay)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException {
159 return _mbMessageService.getCompanyMessagesRSS(companyId, status, max,
160 type, version, displayStyle, feedURL, entryURL, themeDisplay);
161 }
162
163 public int getGroupMessagesCount(long groupId, int status)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return _mbMessageService.getGroupMessagesCount(groupId, status);
166 }
167
168 public java.lang.String getGroupMessagesRSS(long groupId, int status,
169 int max, java.lang.String type, double version,
170 java.lang.String displayStyle, java.lang.String feedURL,
171 java.lang.String entryURL,
172 com.liferay.portal.theme.ThemeDisplay themeDisplay)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException {
175 return _mbMessageService.getGroupMessagesRSS(groupId, status, max,
176 type, version, displayStyle, feedURL, entryURL, themeDisplay);
177 }
178
179 public java.lang.String getGroupMessagesRSS(long groupId, long userId,
180 int status, int max, java.lang.String type, double version,
181 java.lang.String displayStyle, java.lang.String feedURL,
182 java.lang.String entryURL,
183 com.liferay.portal.theme.ThemeDisplay themeDisplay)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException {
186 return _mbMessageService.getGroupMessagesRSS(groupId, userId, status,
187 max, type, version, displayStyle, feedURL, entryURL, themeDisplay);
188 }
189
190 public com.liferay.portlet.messageboards.model.MBMessage getMessage(
191 long messageId)
192 throws com.liferay.portal.kernel.exception.PortalException,
193 com.liferay.portal.kernel.exception.SystemException {
194 return _mbMessageService.getMessage(messageId);
195 }
196
197 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
198 long messageId, int status, java.lang.String threadView,
199 boolean includePrevAndNext)
200 throws com.liferay.portal.kernel.exception.PortalException,
201 com.liferay.portal.kernel.exception.SystemException {
202 return _mbMessageService.getMessageDisplay(messageId, status,
203 threadView, includePrevAndNext);
204 }
205
206 public int getThreadAnswersCount(long groupId, long categoryId,
207 long threadId)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return _mbMessageService.getThreadAnswersCount(groupId, categoryId,
210 threadId);
211 }
212
213 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
214 long groupId, long categoryId, long threadId, int status, int start,
215 int end) throws com.liferay.portal.kernel.exception.SystemException {
216 return _mbMessageService.getThreadMessages(groupId, categoryId,
217 threadId, status, start, end);
218 }
219
220 public int getThreadMessagesCount(long groupId, long categoryId,
221 long threadId, int status)
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return _mbMessageService.getThreadMessagesCount(groupId, categoryId,
224 threadId, status);
225 }
226
227 public java.lang.String getThreadMessagesRSS(long threadId, int status,
228 int max, java.lang.String type, double version,
229 java.lang.String displayStyle, java.lang.String feedURL,
230 java.lang.String entryURL,
231 com.liferay.portal.theme.ThemeDisplay themeDisplay)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException {
234 return _mbMessageService.getThreadMessagesRSS(threadId, status, max,
235 type, version, displayStyle, feedURL, entryURL, themeDisplay);
236 }
237
238 public void subscribeMessage(long messageId)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException {
241 _mbMessageService.subscribeMessage(messageId);
242 }
243
244 public void unsubscribeMessage(long messageId)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException {
247 _mbMessageService.unsubscribeMessage(messageId);
248 }
249
250 public void updateAnswer(long messageId, boolean answer, boolean cascade)
251 throws com.liferay.portal.kernel.exception.PortalException,
252 com.liferay.portal.kernel.exception.SystemException {
253 _mbMessageService.updateAnswer(messageId, answer, cascade);
254 }
255
256 public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
257 java.lang.String className, long classPK,
258 java.lang.String permissionClassName, long permissionClassPK,
259 long permissionOwnerId, long messageId, java.lang.String subject,
260 java.lang.String body,
261 com.liferay.portal.service.ServiceContext serviceContext)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException {
264 return _mbMessageService.updateDiscussionMessage(className, classPK,
265 permissionClassName, permissionClassPK, permissionOwnerId,
266 messageId, subject, body, serviceContext);
267 }
268
269 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
270 long messageId, java.lang.String subject, java.lang.String body,
271 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
272 java.util.List<java.lang.String> existingFiles, double priority,
273 boolean allowPingbacks,
274 com.liferay.portal.service.ServiceContext serviceContext)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException {
277 return _mbMessageService.updateMessage(messageId, subject, body,
278 inputStreamOVPs, existingFiles, priority, allowPingbacks,
279 serviceContext);
280 }
281
282
285 public MBMessageService getWrappedMBMessageService() {
286 return _mbMessageService;
287 }
288
289
292 public void setWrappedMBMessageService(MBMessageService mbMessageService) {
293 _mbMessageService = mbMessageService;
294 }
295
296 public MBMessageService getWrappedService() {
297 return _mbMessageService;
298 }
299
300 public void setWrappedService(MBMessageService mbMessageService) {
301 _mbMessageService = mbMessageService;
302 }
303
304 private MBMessageService _mbMessageService;
305 }