001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service;
016    
017    
018    /**
019     * <p>
020     * This class is a wrapper for {@link MBMessageLocalService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       MBMessageLocalService
025     * @generated
026     */
027    public class MBMessageLocalServiceWrapper implements MBMessageLocalService {
028            public MBMessageLocalServiceWrapper(
029                    MBMessageLocalService mbMessageLocalService) {
030                    _mbMessageLocalService = mbMessageLocalService;
031            }
032    
033            public com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
034                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return _mbMessageLocalService.addMBMessage(mbMessage);
037            }
038    
039            public com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
040                    long messageId) {
041                    return _mbMessageLocalService.createMBMessage(messageId);
042            }
043    
044            public void deleteMBMessage(long messageId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    _mbMessageLocalService.deleteMBMessage(messageId);
048            }
049    
050            public void deleteMBMessage(
051                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    _mbMessageLocalService.deleteMBMessage(mbMessage);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return _mbMessageLocalService.dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return _mbMessageLocalService.dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return _mbMessageLocalService.dynamicQuery(dynamicQuery, start, end,
077                            orderByComparator);
078            }
079    
080            public long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return _mbMessageLocalService.dynamicQueryCount(dynamicQuery);
084            }
085    
086            public com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
087                    long messageId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return _mbMessageLocalService.getMBMessage(messageId);
091            }
092    
093            public com.liferay.portlet.messageboards.model.MBMessage getMBMessageByUuidAndGroupId(
094                    java.lang.String uuid, long groupId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return _mbMessageLocalService.getMBMessageByUuidAndGroupId(uuid, groupId);
098            }
099    
100            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
101                    int start, int end)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return _mbMessageLocalService.getMBMessages(start, end);
104            }
105    
106            public int getMBMessagesCount()
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return _mbMessageLocalService.getMBMessagesCount();
109            }
110    
111            public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
112                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return _mbMessageLocalService.updateMBMessage(mbMessage);
115            }
116    
117            public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
118                    com.liferay.portlet.messageboards.model.MBMessage mbMessage,
119                    boolean merge)
120                    throws com.liferay.portal.kernel.exception.SystemException {
121                    return _mbMessageLocalService.updateMBMessage(mbMessage, merge);
122            }
123    
124            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
125                    long userId, java.lang.String userName, long groupId,
126                    java.lang.String className, long classPK, int workflowAction)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException {
129                    return _mbMessageLocalService.addDiscussionMessage(userId, userName,
130                            groupId, className, classPK, workflowAction);
131            }
132    
133            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
134                    long userId, java.lang.String userName, long groupId,
135                    java.lang.String className, long classPK, long threadId,
136                    long parentMessageId, java.lang.String subject, java.lang.String body,
137                    com.liferay.portal.service.ServiceContext serviceContext)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException {
140                    return _mbMessageLocalService.addDiscussionMessage(userId, userName,
141                            groupId, className, classPK, threadId, parentMessageId, subject,
142                            body, serviceContext);
143            }
144    
145            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
146                    long userId, java.lang.String userName, long groupId, long categoryId,
147                    long threadId, long parentMessageId, java.lang.String subject,
148                    java.lang.String body,
149                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
150                    boolean anonymous, double priority, boolean allowPingbacks,
151                    com.liferay.portal.service.ServiceContext serviceContext)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException {
154                    return _mbMessageLocalService.addMessage(userId, userName, groupId,
155                            categoryId, threadId, parentMessageId, subject, body, files,
156                            anonymous, priority, allowPingbacks, serviceContext);
157            }
158    
159            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
160                    long userId, java.lang.String userName, long groupId, long categoryId,
161                    java.lang.String subject, java.lang.String body,
162                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
163                    boolean anonymous, double priority, boolean allowPingbacks,
164                    com.liferay.portal.service.ServiceContext serviceContext)
165                    throws com.liferay.portal.kernel.exception.PortalException,
166                            com.liferay.portal.kernel.exception.SystemException {
167                    return _mbMessageLocalService.addMessage(userId, userName, groupId,
168                            categoryId, subject, body, files, anonymous, priority,
169                            allowPingbacks, serviceContext);
170            }
171    
172            public void addMessageResources(long messageId,
173                    boolean addCommunityPermissions, boolean addGuestPermissions)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    _mbMessageLocalService.addMessageResources(messageId,
177                            addCommunityPermissions, addGuestPermissions);
178            }
179    
180            public void addMessageResources(long messageId,
181                    java.lang.String[] communityPermissions,
182                    java.lang.String[] guestPermissions)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    _mbMessageLocalService.addMessageResources(messageId,
186                            communityPermissions, guestPermissions);
187            }
188    
189            public void addMessageResources(
190                    com.liferay.portlet.messageboards.model.MBMessage message,
191                    boolean addCommunityPermissions, boolean addGuestPermissions)
192                    throws com.liferay.portal.kernel.exception.PortalException,
193                            com.liferay.portal.kernel.exception.SystemException {
194                    _mbMessageLocalService.addMessageResources(message,
195                            addCommunityPermissions, addGuestPermissions);
196            }
197    
198            public void addMessageResources(
199                    com.liferay.portlet.messageboards.model.MBMessage message,
200                    java.lang.String[] communityPermissions,
201                    java.lang.String[] guestPermissions)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    _mbMessageLocalService.addMessageResources(message,
205                            communityPermissions, guestPermissions);
206            }
207    
208            public void deleteDiscussionMessage(long messageId)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException {
211                    _mbMessageLocalService.deleteDiscussionMessage(messageId);
212            }
213    
214            public void deleteDiscussionMessages(java.lang.String className,
215                    long classPK)
216                    throws com.liferay.portal.kernel.exception.PortalException,
217                            com.liferay.portal.kernel.exception.SystemException {
218                    _mbMessageLocalService.deleteDiscussionMessages(className, classPK);
219            }
220    
221            public void deleteMessage(long messageId)
222                    throws com.liferay.portal.kernel.exception.PortalException,
223                            com.liferay.portal.kernel.exception.SystemException {
224                    _mbMessageLocalService.deleteMessage(messageId);
225            }
226    
227            public void deleteMessage(
228                    com.liferay.portlet.messageboards.model.MBMessage message)
229                    throws com.liferay.portal.kernel.exception.PortalException,
230                            com.liferay.portal.kernel.exception.SystemException {
231                    _mbMessageLocalService.deleteMessage(message);
232            }
233    
234            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
235                    long groupId, long categoryId, int status, int start, int end)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return _mbMessageLocalService.getCategoryMessages(groupId, categoryId,
238                            status, start, end);
239            }
240    
241            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
242                    long groupId, long categoryId, int status, int start, int end,
243                    com.liferay.portal.kernel.util.OrderByComparator obc)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _mbMessageLocalService.getCategoryMessages(groupId, categoryId,
246                            status, start, end, obc);
247            }
248    
249            public int getCategoryMessagesCount(long groupId, long categoryId,
250                    int status) throws com.liferay.portal.kernel.exception.SystemException {
251                    return _mbMessageLocalService.getCategoryMessagesCount(groupId,
252                            categoryId, status);
253            }
254    
255            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
256                    long companyId, int status, int start, int end)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    return _mbMessageLocalService.getCompanyMessages(companyId, status,
259                            start, end);
260            }
261    
262            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
263                    long companyId, int status, int start, int end,
264                    com.liferay.portal.kernel.util.OrderByComparator obc)
265                    throws com.liferay.portal.kernel.exception.SystemException {
266                    return _mbMessageLocalService.getCompanyMessages(companyId, status,
267                            start, end, obc);
268            }
269    
270            public int getCompanyMessagesCount(long companyId, int status)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    return _mbMessageLocalService.getCompanyMessagesCount(companyId, status);
273            }
274    
275            public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
276                    long userId, long groupId, java.lang.String className, long classPK,
277                    int status)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    return _mbMessageLocalService.getDiscussionMessageDisplay(userId,
281                            groupId, className, classPK, status);
282            }
283    
284            public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
285                    long userId, long groupId, java.lang.String className, long classPK,
286                    int status, java.lang.String threadView)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    return _mbMessageLocalService.getDiscussionMessageDisplay(userId,
290                            groupId, className, classPK, status, threadView);
291            }
292    
293            public int getDiscussionMessagesCount(long classNameId, long classPK,
294                    int status) throws com.liferay.portal.kernel.exception.SystemException {
295                    return _mbMessageLocalService.getDiscussionMessagesCount(classNameId,
296                            classPK, status);
297            }
298    
299            public int getDiscussionMessagesCount(java.lang.String className,
300                    long classPK, int status)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return _mbMessageLocalService.getDiscussionMessagesCount(className,
303                            classPK, status);
304            }
305    
306            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
307                    java.lang.String className)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    return _mbMessageLocalService.getDiscussions(className);
310            }
311    
312            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
313                    long groupId, int status, int start, int end)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return _mbMessageLocalService.getGroupMessages(groupId, status, start,
316                            end);
317            }
318    
319            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
320                    long groupId, int status, int start, int end,
321                    com.liferay.portal.kernel.util.OrderByComparator obc)
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    return _mbMessageLocalService.getGroupMessages(groupId, status, start,
324                            end, obc);
325            }
326    
327            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
328                    long groupId, long userId, int status, int start, int end)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return _mbMessageLocalService.getGroupMessages(groupId, userId, status,
331                            start, end);
332            }
333    
334            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
335                    long groupId, long userId, int status, int start, int end,
336                    com.liferay.portal.kernel.util.OrderByComparator obc)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return _mbMessageLocalService.getGroupMessages(groupId, userId, status,
339                            start, end, obc);
340            }
341    
342            public int getGroupMessagesCount(long groupId, int status)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _mbMessageLocalService.getGroupMessagesCount(groupId, status);
345            }
346    
347            public int getGroupMessagesCount(long groupId, long userId, int status)
348                    throws com.liferay.portal.kernel.exception.SystemException {
349                    return _mbMessageLocalService.getGroupMessagesCount(groupId, userId,
350                            status);
351            }
352    
353            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
354                    long messageId)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    return _mbMessageLocalService.getMessage(messageId);
358            }
359    
360            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
361                    long messageId, int status, java.lang.String threadView,
362                    boolean includePrevAndNext)
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException {
365                    return _mbMessageLocalService.getMessageDisplay(messageId, status,
366                            threadView, includePrevAndNext);
367            }
368    
369            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
370                    com.liferay.portlet.messageboards.model.MBMessage message, int status,
371                    java.lang.String threadView, boolean includePrevAndNext)
372                    throws com.liferay.portal.kernel.exception.PortalException,
373                            com.liferay.portal.kernel.exception.SystemException {
374                    return _mbMessageLocalService.getMessageDisplay(message, status,
375                            threadView, includePrevAndNext);
376            }
377    
378            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
379                    java.lang.String className, long classPK, int status)
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    return _mbMessageLocalService.getMessages(className, classPK, status);
382            }
383    
384            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _mbMessageLocalService.getNoAssetMessages();
387            }
388    
389            public int getPositionInThread(long messageId)
390                    throws com.liferay.portal.kernel.exception.PortalException,
391                            com.liferay.portal.kernel.exception.SystemException {
392                    return _mbMessageLocalService.getPositionInThread(messageId);
393            }
394    
395            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
396                    long threadId, int status)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return _mbMessageLocalService.getThreadMessages(threadId, status);
399            }
400    
401            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
402                    long threadId, int status,
403                    java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return _mbMessageLocalService.getThreadMessages(threadId, status,
406                            comparator);
407            }
408    
409            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
410                    long threadId, int status, int start, int end)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    return _mbMessageLocalService.getThreadMessages(threadId, status,
413                            start, end);
414            }
415    
416            public int getThreadMessagesCount(long threadId, int status)
417                    throws com.liferay.portal.kernel.exception.SystemException {
418                    return _mbMessageLocalService.getThreadMessagesCount(threadId, status);
419            }
420    
421            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
422                    long threadId, int status, int start, int end)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    return _mbMessageLocalService.getThreadRepliesMessages(threadId,
425                            status, start, end);
426            }
427    
428            public void subscribeMessage(long userId, long messageId)
429                    throws com.liferay.portal.kernel.exception.PortalException,
430                            com.liferay.portal.kernel.exception.SystemException {
431                    _mbMessageLocalService.subscribeMessage(userId, messageId);
432            }
433    
434            public void unsubscribeMessage(long userId, long messageId)
435                    throws com.liferay.portal.kernel.exception.PortalException,
436                            com.liferay.portal.kernel.exception.SystemException {
437                    _mbMessageLocalService.unsubscribeMessage(userId, messageId);
438            }
439    
440            public void updateAsset(long userId,
441                    com.liferay.portlet.messageboards.model.MBMessage message,
442                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
443                    throws com.liferay.portal.kernel.exception.PortalException,
444                            com.liferay.portal.kernel.exception.SystemException {
445                    _mbMessageLocalService.updateAsset(userId, message, assetCategoryIds,
446                            assetTagNames);
447            }
448    
449            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
450                    long userId, long messageId, java.lang.String subject,
451                    java.lang.String body, int workflowAction)
452                    throws com.liferay.portal.kernel.exception.PortalException,
453                            com.liferay.portal.kernel.exception.SystemException {
454                    return _mbMessageLocalService.updateDiscussionMessage(userId,
455                            messageId, subject, body, workflowAction);
456            }
457    
458            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
459                    long userId, long messageId, java.lang.String subject,
460                    java.lang.String body,
461                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
462                    java.util.List<java.lang.String> existingFiles, double priority,
463                    boolean allowPingbacks,
464                    com.liferay.portal.service.ServiceContext serviceContext)
465                    throws com.liferay.portal.kernel.exception.PortalException,
466                            com.liferay.portal.kernel.exception.SystemException {
467                    return _mbMessageLocalService.updateMessage(userId, messageId, subject,
468                            body, files, existingFiles, priority, allowPingbacks, serviceContext);
469            }
470    
471            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
472                    long messageId, java.lang.String body)
473                    throws com.liferay.portal.kernel.exception.PortalException,
474                            com.liferay.portal.kernel.exception.SystemException {
475                    return _mbMessageLocalService.updateMessage(messageId, body);
476            }
477    
478            public com.liferay.portlet.messageboards.model.MBMessage updateStatus(
479                    long userId, long messageId, int status,
480                    com.liferay.portal.service.ServiceContext serviceContext)
481                    throws com.liferay.portal.kernel.exception.PortalException,
482                            com.liferay.portal.kernel.exception.SystemException {
483                    return _mbMessageLocalService.updateStatus(userId, messageId, status,
484                            serviceContext);
485            }
486    
487            public void updateUserName(long userId, java.lang.String userName)
488                    throws com.liferay.portal.kernel.exception.SystemException {
489                    _mbMessageLocalService.updateUserName(userId, userName);
490            }
491    
492            public MBMessageLocalService getWrappedMBMessageLocalService() {
493                    return _mbMessageLocalService;
494            }
495    
496            private MBMessageLocalService _mbMessageLocalService;
497    }