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