001    /**
002     * Copyright (c) 2000-2012 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    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link MBMessageLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       MBMessageLocalService
026     * @generated
027     */
028    public class MBMessageLocalServiceWrapper implements MBMessageLocalService,
029            ServiceWrapper<MBMessageLocalService> {
030            public MBMessageLocalServiceWrapper(
031                    MBMessageLocalService mbMessageLocalService) {
032                    _mbMessageLocalService = mbMessageLocalService;
033            }
034    
035            /**
036            * Adds the message-boards message to the database. Also notifies the appropriate model listeners.
037            *
038            * @param mbMessage the message-boards message
039            * @return the message-boards message that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
043                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _mbMessageLocalService.addMBMessage(mbMessage);
046            }
047    
048            /**
049            * Creates a new message-boards message with the primary key. Does not add the message-boards message to the database.
050            *
051            * @param messageId the primary key for the new message-boards message
052            * @return the new message-boards message
053            */
054            public com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
055                    long messageId) {
056                    return _mbMessageLocalService.createMBMessage(messageId);
057            }
058    
059            /**
060            * Deletes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param messageId the primary key of the message-boards message
063            * @return the message-boards message that was removed
064            * @throws PortalException if a message-boards message with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.messageboards.model.MBMessage deleteMBMessage(
068                    long messageId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _mbMessageLocalService.deleteMBMessage(messageId);
072            }
073    
074            /**
075            * Deletes the message-boards message from the database. Also notifies the appropriate model listeners.
076            *
077            * @param mbMessage the message-boards message
078            * @return the message-boards message that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.messageboards.model.MBMessage deleteMBMessage(
082                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _mbMessageLocalService.deleteMBMessage(mbMessage);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _mbMessageLocalService.dynamicQuery();
089            }
090    
091            /**
092            * Performs a dynamic query on the database and returns the matching rows.
093            *
094            * @param dynamicQuery the dynamic query
095            * @return the matching rows
096            * @throws SystemException if a system exception occurred
097            */
098            @SuppressWarnings("rawtypes")
099            public java.util.List dynamicQuery(
100                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _mbMessageLocalService.dynamicQuery(dynamicQuery);
103            }
104    
105            /**
106            * Performs a dynamic query on the database and returns a range of the matching rows.
107            *
108            * <p>
109            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
110            * </p>
111            *
112            * @param dynamicQuery the dynamic query
113            * @param start the lower bound of the range of model instances
114            * @param end the upper bound of the range of model instances (not inclusive)
115            * @return the range of matching rows
116            * @throws SystemException if a system exception occurred
117            */
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _mbMessageLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _mbMessageLocalService.dynamicQuery(dynamicQuery, start, end,
146                            orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _mbMessageLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portlet.messageboards.model.MBMessage fetchMBMessage(
163                    long messageId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _mbMessageLocalService.fetchMBMessage(messageId);
166            }
167    
168            /**
169            * Returns the message-boards message with the primary key.
170            *
171            * @param messageId the primary key of the message-boards message
172            * @return the message-boards message
173            * @throws PortalException if a message-boards message with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
177                    long messageId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _mbMessageLocalService.getMBMessage(messageId);
181            }
182    
183            public com.liferay.portal.model.PersistedModel getPersistedModel(
184                    java.io.Serializable primaryKeyObj)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _mbMessageLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns the message-boards message with the UUID in the group.
192            *
193            * @param uuid the UUID of message-boards message
194            * @param groupId the group id of the message-boards message
195            * @return the message-boards message
196            * @throws PortalException if a message-boards message with the UUID in the group could not be found
197            * @throws SystemException if a system exception occurred
198            */
199            public com.liferay.portlet.messageboards.model.MBMessage getMBMessageByUuidAndGroupId(
200                    java.lang.String uuid, long groupId)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException {
203                    return _mbMessageLocalService.getMBMessageByUuidAndGroupId(uuid, groupId);
204            }
205    
206            /**
207            * Returns a range of all the message-boards messages.
208            *
209            * <p>
210            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
211            * </p>
212            *
213            * @param start the lower bound of the range of message-boards messages
214            * @param end the upper bound of the range of message-boards messages (not inclusive)
215            * @return the range of message-boards messages
216            * @throws SystemException if a system exception occurred
217            */
218            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
219                    int start, int end)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _mbMessageLocalService.getMBMessages(start, end);
222            }
223    
224            /**
225            * Returns the number of message-boards messages.
226            *
227            * @return the number of message-boards messages
228            * @throws SystemException if a system exception occurred
229            */
230            public int getMBMessagesCount()
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return _mbMessageLocalService.getMBMessagesCount();
233            }
234    
235            /**
236            * Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
237            *
238            * @param mbMessage the message-boards message
239            * @return the message-boards message that was updated
240            * @throws SystemException if a system exception occurred
241            */
242            public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
243                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _mbMessageLocalService.updateMBMessage(mbMessage);
246            }
247    
248            /**
249            * Returns the Spring bean ID for this bean.
250            *
251            * @return the Spring bean ID for this bean
252            */
253            public java.lang.String getBeanIdentifier() {
254                    return _mbMessageLocalService.getBeanIdentifier();
255            }
256    
257            /**
258            * Sets the Spring bean ID for this bean.
259            *
260            * @param beanIdentifier the Spring bean ID for this bean
261            */
262            public void setBeanIdentifier(java.lang.String beanIdentifier) {
263                    _mbMessageLocalService.setBeanIdentifier(beanIdentifier);
264            }
265    
266            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
267                    long userId, java.lang.String userName, long groupId,
268                    java.lang.String className, long classPK, int workflowAction)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    return _mbMessageLocalService.addDiscussionMessage(userId, userName,
272                            groupId, className, classPK, workflowAction);
273            }
274    
275            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
276                    long userId, java.lang.String userName, long groupId,
277                    java.lang.String className, long classPK, long threadId,
278                    long parentMessageId, java.lang.String subject, java.lang.String body,
279                    com.liferay.portal.service.ServiceContext serviceContext)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    return _mbMessageLocalService.addDiscussionMessage(userId, userName,
283                            groupId, className, classPK, threadId, parentMessageId, subject,
284                            body, serviceContext);
285            }
286    
287            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
288                    long userId, java.lang.String userName, long groupId, long categoryId,
289                    long threadId, long parentMessageId, java.lang.String subject,
290                    java.lang.String body, java.lang.String format,
291                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
292                    boolean anonymous, double priority, boolean allowPingbacks,
293                    com.liferay.portal.service.ServiceContext serviceContext)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    return _mbMessageLocalService.addMessage(userId, userName, groupId,
297                            categoryId, threadId, parentMessageId, subject, body, format,
298                            inputStreamOVPs, anonymous, priority, allowPingbacks, serviceContext);
299            }
300    
301            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
302                    long userId, java.lang.String userName, long groupId, long categoryId,
303                    java.lang.String subject, java.lang.String body,
304                    java.lang.String format,
305                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
306                    boolean anonymous, double priority, boolean allowPingbacks,
307                    com.liferay.portal.service.ServiceContext serviceContext)
308                    throws com.liferay.portal.kernel.exception.PortalException,
309                            com.liferay.portal.kernel.exception.SystemException {
310                    return _mbMessageLocalService.addMessage(userId, userName, groupId,
311                            categoryId, subject, body, format, inputStreamOVPs, anonymous,
312                            priority, allowPingbacks, serviceContext);
313            }
314    
315            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
316                    long userId, java.lang.String userName, long categoryId,
317                    java.lang.String subject, java.lang.String body,
318                    com.liferay.portal.service.ServiceContext serviceContext)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    return _mbMessageLocalService.addMessage(userId, userName, categoryId,
322                            subject, body, serviceContext);
323            }
324    
325            public void addMessageResources(long messageId,
326                    boolean addGroupPermissions, boolean addGuestPermissions)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    _mbMessageLocalService.addMessageResources(messageId,
330                            addGroupPermissions, addGuestPermissions);
331            }
332    
333            public void addMessageResources(long messageId,
334                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
335                    throws com.liferay.portal.kernel.exception.PortalException,
336                            com.liferay.portal.kernel.exception.SystemException {
337                    _mbMessageLocalService.addMessageResources(messageId, groupPermissions,
338                            guestPermissions);
339            }
340    
341            public void addMessageResources(
342                    com.liferay.portlet.messageboards.model.MBMessage message,
343                    boolean addGroupPermissions, boolean addGuestPermissions)
344                    throws com.liferay.portal.kernel.exception.PortalException,
345                            com.liferay.portal.kernel.exception.SystemException {
346                    _mbMessageLocalService.addMessageResources(message,
347                            addGroupPermissions, addGuestPermissions);
348            }
349    
350            public void addMessageResources(
351                    com.liferay.portlet.messageboards.model.MBMessage message,
352                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    _mbMessageLocalService.addMessageResources(message, groupPermissions,
356                            guestPermissions);
357            }
358    
359            public com.liferay.portlet.messageboards.model.MBMessage deleteDiscussionMessage(
360                    long messageId)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    return _mbMessageLocalService.deleteDiscussionMessage(messageId);
364            }
365    
366            public void deleteDiscussionMessages(java.lang.String className,
367                    long classPK)
368                    throws com.liferay.portal.kernel.exception.PortalException,
369                            com.liferay.portal.kernel.exception.SystemException {
370                    _mbMessageLocalService.deleteDiscussionMessages(className, classPK);
371            }
372    
373            public com.liferay.portlet.messageboards.model.MBMessage deleteMessage(
374                    long messageId)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    return _mbMessageLocalService.deleteMessage(messageId);
378            }
379    
380            public com.liferay.portlet.messageboards.model.MBMessage deleteMessage(
381                    com.liferay.portlet.messageboards.model.MBMessage message)
382                    throws com.liferay.portal.kernel.exception.PortalException,
383                            com.liferay.portal.kernel.exception.SystemException {
384                    return _mbMessageLocalService.deleteMessage(message);
385            }
386    
387            public void deleteMessageAttachment(long messageId,
388                    java.lang.String fileName)
389                    throws com.liferay.portal.kernel.exception.PortalException,
390                            com.liferay.portal.kernel.exception.SystemException {
391                    _mbMessageLocalService.deleteMessageAttachment(messageId, fileName);
392            }
393    
394            public void deleteMessageAttachments(long messageId)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException {
397                    _mbMessageLocalService.deleteMessageAttachments(messageId);
398            }
399    
400            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
401                    long groupId, long categoryId, int status, int start, int end)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return _mbMessageLocalService.getCategoryMessages(groupId, categoryId,
404                            status, start, end);
405            }
406    
407            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
408                    long groupId, long categoryId, int status, int start, int end,
409                    com.liferay.portal.kernel.util.OrderByComparator obc)
410                    throws com.liferay.portal.kernel.exception.SystemException {
411                    return _mbMessageLocalService.getCategoryMessages(groupId, categoryId,
412                            status, start, end, obc);
413            }
414    
415            public int getCategoryMessagesCount(long groupId, long categoryId,
416                    int status) throws com.liferay.portal.kernel.exception.SystemException {
417                    return _mbMessageLocalService.getCategoryMessagesCount(groupId,
418                            categoryId, status);
419            }
420    
421            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
422                    long companyId, int status, int start, int end)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    return _mbMessageLocalService.getCompanyMessages(companyId, status,
425                            start, end);
426            }
427    
428            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
429                    long companyId, int status, int start, int end,
430                    com.liferay.portal.kernel.util.OrderByComparator obc)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    return _mbMessageLocalService.getCompanyMessages(companyId, status,
433                            start, end, obc);
434            }
435    
436            public int getCompanyMessagesCount(long companyId, int status)
437                    throws com.liferay.portal.kernel.exception.SystemException {
438                    return _mbMessageLocalService.getCompanyMessagesCount(companyId, status);
439            }
440    
441            public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
442                    long userId, long groupId, java.lang.String className, long classPK,
443                    int status)
444                    throws com.liferay.portal.kernel.exception.PortalException,
445                            com.liferay.portal.kernel.exception.SystemException {
446                    return _mbMessageLocalService.getDiscussionMessageDisplay(userId,
447                            groupId, className, classPK, status);
448            }
449    
450            public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
451                    long userId, long groupId, java.lang.String className, long classPK,
452                    int status, java.lang.String threadView)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException {
455                    return _mbMessageLocalService.getDiscussionMessageDisplay(userId,
456                            groupId, className, classPK, status, threadView);
457            }
458    
459            public int getDiscussionMessagesCount(long classNameId, long classPK,
460                    int status) throws com.liferay.portal.kernel.exception.SystemException {
461                    return _mbMessageLocalService.getDiscussionMessagesCount(classNameId,
462                            classPK, status);
463            }
464    
465            public int getDiscussionMessagesCount(java.lang.String className,
466                    long classPK, int status)
467                    throws com.liferay.portal.kernel.exception.SystemException {
468                    return _mbMessageLocalService.getDiscussionMessagesCount(className,
469                            classPK, status);
470            }
471    
472            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
473                    java.lang.String className)
474                    throws com.liferay.portal.kernel.exception.SystemException {
475                    return _mbMessageLocalService.getDiscussions(className);
476            }
477    
478            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
479                    long groupId, int status, int start, int end)
480                    throws com.liferay.portal.kernel.exception.SystemException {
481                    return _mbMessageLocalService.getGroupMessages(groupId, status, start,
482                            end);
483            }
484    
485            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
486                    long groupId, int status, int start, int end,
487                    com.liferay.portal.kernel.util.OrderByComparator obc)
488                    throws com.liferay.portal.kernel.exception.SystemException {
489                    return _mbMessageLocalService.getGroupMessages(groupId, status, start,
490                            end, obc);
491            }
492    
493            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
494                    long groupId, long userId, int status, int start, int end)
495                    throws com.liferay.portal.kernel.exception.SystemException {
496                    return _mbMessageLocalService.getGroupMessages(groupId, userId, status,
497                            start, end);
498            }
499    
500            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
501                    long groupId, long userId, int status, int start, int end,
502                    com.liferay.portal.kernel.util.OrderByComparator obc)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    return _mbMessageLocalService.getGroupMessages(groupId, userId, status,
505                            start, end, obc);
506            }
507    
508            public int getGroupMessagesCount(long groupId, int status)
509                    throws com.liferay.portal.kernel.exception.SystemException {
510                    return _mbMessageLocalService.getGroupMessagesCount(groupId, status);
511            }
512    
513            public int getGroupMessagesCount(long groupId, long userId, int status)
514                    throws com.liferay.portal.kernel.exception.SystemException {
515                    return _mbMessageLocalService.getGroupMessagesCount(groupId, userId,
516                            status);
517            }
518    
519            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
520                    long messageId)
521                    throws com.liferay.portal.kernel.exception.PortalException,
522                            com.liferay.portal.kernel.exception.SystemException {
523                    return _mbMessageLocalService.getMessage(messageId);
524            }
525    
526            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
527                    long userId, long messageId, int status, java.lang.String threadView,
528                    boolean includePrevAndNext)
529                    throws com.liferay.portal.kernel.exception.PortalException,
530                            com.liferay.portal.kernel.exception.SystemException {
531                    return _mbMessageLocalService.getMessageDisplay(userId, messageId,
532                            status, threadView, includePrevAndNext);
533            }
534    
535            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
536                    long userId, com.liferay.portlet.messageboards.model.MBMessage message,
537                    int status, java.lang.String threadView, boolean includePrevAndNext)
538                    throws com.liferay.portal.kernel.exception.PortalException,
539                            com.liferay.portal.kernel.exception.SystemException {
540                    return _mbMessageLocalService.getMessageDisplay(userId, message,
541                            status, threadView, includePrevAndNext);
542            }
543    
544            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
545                    java.lang.String className, long classPK, int status)
546                    throws com.liferay.portal.kernel.exception.SystemException {
547                    return _mbMessageLocalService.getMessages(className, classPK, status);
548            }
549    
550            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
551                    throws com.liferay.portal.kernel.exception.SystemException {
552                    return _mbMessageLocalService.getNoAssetMessages();
553            }
554    
555            public int getPositionInThread(long messageId)
556                    throws com.liferay.portal.kernel.exception.PortalException,
557                            com.liferay.portal.kernel.exception.SystemException {
558                    return _mbMessageLocalService.getPositionInThread(messageId);
559            }
560    
561            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
562                    long threadId, int status)
563                    throws com.liferay.portal.kernel.exception.SystemException {
564                    return _mbMessageLocalService.getThreadMessages(threadId, status);
565            }
566    
567            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
568                    long threadId, int status,
569                    java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
570                    throws com.liferay.portal.kernel.exception.SystemException {
571                    return _mbMessageLocalService.getThreadMessages(threadId, status,
572                            comparator);
573            }
574    
575            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
576                    long threadId, int status, int start, int end)
577                    throws com.liferay.portal.kernel.exception.SystemException {
578                    return _mbMessageLocalService.getThreadMessages(threadId, status,
579                            start, end);
580            }
581    
582            public int getThreadMessagesCount(long threadId, int status)
583                    throws com.liferay.portal.kernel.exception.SystemException {
584                    return _mbMessageLocalService.getThreadMessagesCount(threadId, status);
585            }
586    
587            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
588                    long threadId, int status, int start, int end)
589                    throws com.liferay.portal.kernel.exception.SystemException {
590                    return _mbMessageLocalService.getThreadRepliesMessages(threadId,
591                            status, start, end);
592            }
593    
594            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
595                    long userId, long classNameId, long classPK, int status, int start,
596                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
597                    throws com.liferay.portal.kernel.exception.SystemException {
598                    return _mbMessageLocalService.getUserDiscussionMessages(userId,
599                            classNameId, classPK, status, start, end, obc);
600            }
601    
602            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
603                    long userId, long[] classNameIds, int status, int start, int end,
604                    com.liferay.portal.kernel.util.OrderByComparator obc)
605                    throws com.liferay.portal.kernel.exception.SystemException {
606                    return _mbMessageLocalService.getUserDiscussionMessages(userId,
607                            classNameIds, status, start, end, obc);
608            }
609    
610            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
611                    long userId, java.lang.String className, long classPK, int status,
612                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
613                    throws com.liferay.portal.kernel.exception.SystemException {
614                    return _mbMessageLocalService.getUserDiscussionMessages(userId,
615                            className, classPK, status, start, end, obc);
616            }
617    
618            public int getUserDiscussionMessagesCount(long userId, long classNameId,
619                    long classPK, int status)
620                    throws com.liferay.portal.kernel.exception.SystemException {
621                    return _mbMessageLocalService.getUserDiscussionMessagesCount(userId,
622                            classNameId, classPK, status);
623            }
624    
625            public int getUserDiscussionMessagesCount(long userId, long[] classNameIds,
626                    int status) throws com.liferay.portal.kernel.exception.SystemException {
627                    return _mbMessageLocalService.getUserDiscussionMessagesCount(userId,
628                            classNameIds, status);
629            }
630    
631            public int getUserDiscussionMessagesCount(long userId,
632                    java.lang.String className, long classPK, int status)
633                    throws com.liferay.portal.kernel.exception.SystemException {
634                    return _mbMessageLocalService.getUserDiscussionMessagesCount(userId,
635                            className, classPK, status);
636            }
637    
638            public long moveMessageAttachmentToTrash(long userId, long messageId,
639                    java.lang.String fileName)
640                    throws com.liferay.portal.kernel.exception.PortalException,
641                            com.liferay.portal.kernel.exception.SystemException {
642                    return _mbMessageLocalService.moveMessageAttachmentToTrash(userId,
643                            messageId, fileName);
644            }
645    
646            public void restoreMessageAttachmentFromTrash(long userId, long messageId,
647                    java.lang.String deletedFileName)
648                    throws com.liferay.portal.kernel.exception.PortalException,
649                            com.liferay.portal.kernel.exception.SystemException {
650                    _mbMessageLocalService.restoreMessageAttachmentFromTrash(userId,
651                            messageId, deletedFileName);
652            }
653    
654            public void subscribeMessage(long userId, long messageId)
655                    throws com.liferay.portal.kernel.exception.PortalException,
656                            com.liferay.portal.kernel.exception.SystemException {
657                    _mbMessageLocalService.subscribeMessage(userId, messageId);
658            }
659    
660            public void unsubscribeMessage(long userId, long messageId)
661                    throws com.liferay.portal.kernel.exception.PortalException,
662                            com.liferay.portal.kernel.exception.SystemException {
663                    _mbMessageLocalService.unsubscribeMessage(userId, messageId);
664            }
665    
666            public void updateAnswer(long messageId, boolean answer, boolean cascade)
667                    throws com.liferay.portal.kernel.exception.PortalException,
668                            com.liferay.portal.kernel.exception.SystemException {
669                    _mbMessageLocalService.updateAnswer(messageId, answer, cascade);
670            }
671    
672            public void updateAnswer(
673                    com.liferay.portlet.messageboards.model.MBMessage message,
674                    boolean answer, boolean cascade)
675                    throws com.liferay.portal.kernel.exception.PortalException,
676                            com.liferay.portal.kernel.exception.SystemException {
677                    _mbMessageLocalService.updateAnswer(message, answer, cascade);
678            }
679    
680            public void updateAsset(long userId,
681                    com.liferay.portlet.messageboards.model.MBMessage message,
682                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
683                    long[] assetLinkEntryIds)
684                    throws com.liferay.portal.kernel.exception.PortalException,
685                            com.liferay.portal.kernel.exception.SystemException {
686                    _mbMessageLocalService.updateAsset(userId, message, assetCategoryIds,
687                            assetTagNames, assetLinkEntryIds);
688            }
689    
690            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
691                    long userId, long messageId, java.lang.String className, long classPK,
692                    java.lang.String subject, java.lang.String body,
693                    com.liferay.portal.service.ServiceContext serviceContext)
694                    throws com.liferay.portal.kernel.exception.PortalException,
695                            com.liferay.portal.kernel.exception.SystemException {
696                    return _mbMessageLocalService.updateDiscussionMessage(userId,
697                            messageId, className, classPK, subject, body, serviceContext);
698            }
699    
700            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
701                    long userId, long messageId, java.lang.String subject,
702                    java.lang.String body,
703                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
704                    java.util.List<java.lang.String> existingFiles, double priority,
705                    boolean allowPingbacks,
706                    com.liferay.portal.service.ServiceContext serviceContext)
707                    throws com.liferay.portal.kernel.exception.PortalException,
708                            com.liferay.portal.kernel.exception.SystemException {
709                    return _mbMessageLocalService.updateMessage(userId, messageId, subject,
710                            body, inputStreamOVPs, existingFiles, priority, allowPingbacks,
711                            serviceContext);
712            }
713    
714            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
715                    long messageId, java.lang.String body)
716                    throws com.liferay.portal.kernel.exception.PortalException,
717                            com.liferay.portal.kernel.exception.SystemException {
718                    return _mbMessageLocalService.updateMessage(messageId, body);
719            }
720    
721            public com.liferay.portlet.messageboards.model.MBMessage updateStatus(
722                    long userId, long messageId, int status,
723                    com.liferay.portal.service.ServiceContext serviceContext)
724                    throws com.liferay.portal.kernel.exception.PortalException,
725                            com.liferay.portal.kernel.exception.SystemException {
726                    return _mbMessageLocalService.updateStatus(userId, messageId, status,
727                            serviceContext);
728            }
729    
730            public void updateUserName(long userId, java.lang.String userName)
731                    throws com.liferay.portal.kernel.exception.SystemException {
732                    _mbMessageLocalService.updateUserName(userId, userName);
733            }
734    
735            /**
736             * @deprecated Renamed to {@link #getWrappedService}
737             */
738            public MBMessageLocalService getWrappedMBMessageLocalService() {
739                    return _mbMessageLocalService;
740            }
741    
742            /**
743             * @deprecated Renamed to {@link #setWrappedService}
744             */
745            public void setWrappedMBMessageLocalService(
746                    MBMessageLocalService mbMessageLocalService) {
747                    _mbMessageLocalService = mbMessageLocalService;
748            }
749    
750            public MBMessageLocalService getWrappedService() {
751                    return _mbMessageLocalService;
752            }
753    
754            public void setWrappedService(MBMessageLocalService mbMessageLocalService) {
755                    _mbMessageLocalService = mbMessageLocalService;
756            }
757    
758            private MBMessageLocalService _mbMessageLocalService;
759    }