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