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