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