001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.transaction.Isolation;
020    import com.liferay.portal.kernel.transaction.Propagation;
021    import com.liferay.portal.kernel.transaction.Transactional;
022    import com.liferay.portal.service.BaseLocalService;
023    import com.liferay.portal.service.PersistedModelLocalService;
024    
025    /**
026     * The interface for the message-boards message local service.
027     *
028     * <p>
029     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see MBMessageLocalServiceUtil
034     * @see com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl
035     * @see com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl
036     * @generated
037     */
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface MBMessageLocalService extends BaseLocalService,
041            PersistedModelLocalService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * Never modify or reference this interface directly. Always use {@link MBMessageLocalServiceUtil} to access the message-boards message local service. Add custom service methods to {@link com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
046             */
047    
048            /**
049            * Adds the message-boards message to the database. Also notifies the appropriate model listeners.
050            *
051            * @param mbMessage the message-boards message
052            * @return the message-boards message that was added
053            * @throws SystemException if a system exception occurred
054            */
055            public com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
056                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            /**
060            * Creates a new message-boards message with the primary key. Does not add the message-boards message to the database.
061            *
062            * @param messageId the primary key for the new message-boards message
063            * @return the new message-boards message
064            */
065            public com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
066                    long messageId);
067    
068            /**
069            * Deletes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners.
070            *
071            * @param messageId the primary key of the message-boards message
072            * @return the message-boards message that was removed
073            * @throws PortalException if a message-boards message with the primary key could not be found
074            * @throws SystemException if a system exception occurred
075            */
076            public com.liferay.portlet.messageboards.model.MBMessage deleteMBMessage(
077                    long messageId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Deletes the message-boards message from the database. Also notifies the appropriate model listeners.
083            *
084            * @param mbMessage the message-boards message
085            * @return the message-boards message that was removed
086            * @throws SystemException if a system exception occurred
087            */
088            public com.liferay.portlet.messageboards.model.MBMessage deleteMBMessage(
089                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
093    
094            /**
095            * Performs a dynamic query on the database and returns the matching rows.
096            *
097            * @param dynamicQuery the dynamic query
098            * @return the matching rows
099            * @throws SystemException if a system exception occurred
100            */
101            @SuppressWarnings("rawtypes")
102            public java.util.List dynamicQuery(
103                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            /**
107            * Performs a dynamic query on the database and returns a range of the matching rows.
108            *
109            * <p>
110            * 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.
111            * </p>
112            *
113            * @param dynamicQuery the dynamic query
114            * @param start the lower bound of the range of model instances
115            * @param end the upper bound of the range of model instances (not inclusive)
116            * @return the range of matching rows
117            * @throws SystemException if a system exception occurred
118            */
119            @SuppressWarnings("rawtypes")
120            public java.util.List dynamicQuery(
121                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122                    int end) throws com.liferay.portal.kernel.exception.SystemException;
123    
124            /**
125            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
126            *
127            * <p>
128            * 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.
129            * </p>
130            *
131            * @param dynamicQuery the dynamic query
132            * @param start the lower bound of the range of model instances
133            * @param end the upper bound of the range of model instances (not inclusive)
134            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
135            * @return the ordered range of matching rows
136            * @throws SystemException if a system exception occurred
137            */
138            @SuppressWarnings("rawtypes")
139            public java.util.List dynamicQuery(
140                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141                    int end,
142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            /**
146            * Returns the number of rows that match the dynamic query.
147            *
148            * @param dynamicQuery the dynamic query
149            * @return the number of rows that match the dynamic query
150            * @throws SystemException if a system exception occurred
151            */
152            public long dynamicQueryCount(
153                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157            public com.liferay.portlet.messageboards.model.MBMessage fetchMBMessage(
158                    long messageId)
159                    throws com.liferay.portal.kernel.exception.SystemException;
160    
161            /**
162            * Returns the message-boards message with the primary key.
163            *
164            * @param messageId the primary key of the message-boards message
165            * @return the message-boards message
166            * @throws PortalException if a message-boards message with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170            public com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
171                    long messageId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException;
174    
175            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176            public com.liferay.portal.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns the message-boards message with the UUID in the group.
183            *
184            * @param uuid the UUID of message-boards message
185            * @param groupId the group id of the message-boards message
186            * @return the message-boards message
187            * @throws PortalException if a message-boards message with the UUID in the group could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191            public com.liferay.portlet.messageboards.model.MBMessage getMBMessageByUuidAndGroupId(
192                    java.lang.String uuid, long groupId)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException;
195    
196            /**
197            * Returns a range of all the message-boards messages.
198            *
199            * <p>
200            * 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.
201            * </p>
202            *
203            * @param start the lower bound of the range of message-boards messages
204            * @param end the upper bound of the range of message-boards messages (not inclusive)
205            * @return the range of message-boards messages
206            * @throws SystemException if a system exception occurred
207            */
208            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
210                    int start, int end)
211                    throws com.liferay.portal.kernel.exception.SystemException;
212    
213            /**
214            * Returns the number of message-boards messages.
215            *
216            * @return the number of message-boards messages
217            * @throws SystemException if a system exception occurred
218            */
219            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220            public int getMBMessagesCount()
221                    throws com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
225            *
226            * @param mbMessage the message-boards message
227            * @return the message-boards message that was updated
228            * @throws SystemException if a system exception occurred
229            */
230            public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
231                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            /**
235            * Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
236            *
237            * @param mbMessage the message-boards message
238            * @param merge whether to merge the message-boards message with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
239            * @return the message-boards message that was updated
240            * @throws SystemException if a system exception occurred
241            */
242            public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
243                    com.liferay.portlet.messageboards.model.MBMessage mbMessage,
244                    boolean merge)
245                    throws com.liferay.portal.kernel.exception.SystemException;
246    
247            /**
248            * Returns the Spring bean ID for this bean.
249            *
250            * @return the Spring bean ID for this bean
251            */
252            public java.lang.String getBeanIdentifier();
253    
254            /**
255            * Sets the Spring bean ID for this bean.
256            *
257            * @param beanIdentifier the Spring bean ID for this bean
258            */
259            public void setBeanIdentifier(java.lang.String beanIdentifier);
260    
261            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
262                    long userId, java.lang.String userName, long groupId,
263                    java.lang.String className, long classPK, int workflowAction)
264                    throws com.liferay.portal.kernel.exception.PortalException,
265                            com.liferay.portal.kernel.exception.SystemException;
266    
267            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
268                    long userId, java.lang.String userName, long groupId,
269                    java.lang.String className, long classPK, long threadId,
270                    long parentMessageId, java.lang.String subject, java.lang.String body,
271                    com.liferay.portal.service.ServiceContext serviceContext)
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException;
274    
275            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
276                    long userId, java.lang.String userName, long groupId, long categoryId,
277                    long threadId, long parentMessageId, java.lang.String subject,
278                    java.lang.String body, java.lang.String format,
279                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
280                    boolean anonymous, double priority, boolean allowPingbacks,
281                    com.liferay.portal.service.ServiceContext serviceContext)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException;
284    
285            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
286                    long userId, java.lang.String userName, long groupId, long categoryId,
287                    java.lang.String subject, java.lang.String body,
288                    java.lang.String format,
289                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
290                    boolean anonymous, double priority, boolean allowPingbacks,
291                    com.liferay.portal.service.ServiceContext serviceContext)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException;
294    
295            public void addMessageResources(long messageId,
296                    boolean addGroupPermissions, boolean addGuestPermissions)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException;
299    
300            public void addMessageResources(long messageId,
301                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException;
304    
305            public void addMessageResources(
306                    com.liferay.portlet.messageboards.model.MBMessage message,
307                    boolean addGroupPermissions, boolean addGuestPermissions)
308                    throws com.liferay.portal.kernel.exception.PortalException,
309                            com.liferay.portal.kernel.exception.SystemException;
310    
311            public void addMessageResources(
312                    com.liferay.portlet.messageboards.model.MBMessage message,
313                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
314                    throws com.liferay.portal.kernel.exception.PortalException,
315                            com.liferay.portal.kernel.exception.SystemException;
316    
317            public void deleteDiscussionMessage(long messageId)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException;
320    
321            public void deleteDiscussionMessages(java.lang.String className,
322                    long classPK)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException;
325    
326            public void deleteMessage(long messageId)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException;
329    
330            public void deleteMessage(
331                    com.liferay.portlet.messageboards.model.MBMessage message)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException;
334    
335            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
337                    long groupId, long categoryId, int status, int start, int end)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
342                    long groupId, long categoryId, int status, int start, int end,
343                    com.liferay.portal.kernel.util.OrderByComparator obc)
344                    throws com.liferay.portal.kernel.exception.SystemException;
345    
346            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347            public int getCategoryMessagesCount(long groupId, long categoryId,
348                    int status) throws com.liferay.portal.kernel.exception.SystemException;
349    
350            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
352                    long companyId, int status, int start, int end)
353                    throws com.liferay.portal.kernel.exception.SystemException;
354    
355            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
357                    long companyId, int status, int start, int end,
358                    com.liferay.portal.kernel.util.OrderByComparator obc)
359                    throws com.liferay.portal.kernel.exception.SystemException;
360    
361            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362            public int getCompanyMessagesCount(long companyId, int status)
363                    throws com.liferay.portal.kernel.exception.SystemException;
364    
365            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366            public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
367                    long userId, long groupId, java.lang.String className, long classPK,
368                    int status)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException;
371    
372            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373            public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
374                    long userId, long groupId, java.lang.String className, long classPK,
375                    int status, java.lang.String threadView)
376                    throws com.liferay.portal.kernel.exception.PortalException,
377                            com.liferay.portal.kernel.exception.SystemException;
378    
379            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380            public int getDiscussionMessagesCount(long classNameId, long classPK,
381                    int status) throws com.liferay.portal.kernel.exception.SystemException;
382    
383            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384            public int getDiscussionMessagesCount(java.lang.String className,
385                    long classPK, int status)
386                    throws com.liferay.portal.kernel.exception.SystemException;
387    
388            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
389            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
390                    java.lang.String className)
391                    throws com.liferay.portal.kernel.exception.SystemException;
392    
393            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
395                    long groupId, int status, int start, int end)
396                    throws com.liferay.portal.kernel.exception.SystemException;
397    
398            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
399            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
400                    long groupId, int status, int start, int end,
401                    com.liferay.portal.kernel.util.OrderByComparator obc)
402                    throws com.liferay.portal.kernel.exception.SystemException;
403    
404            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
406                    long groupId, long userId, int status, int start, int end)
407                    throws com.liferay.portal.kernel.exception.SystemException;
408    
409            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
410            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
411                    long groupId, long userId, int status, int start, int end,
412                    com.liferay.portal.kernel.util.OrderByComparator obc)
413                    throws com.liferay.portal.kernel.exception.SystemException;
414    
415            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
416            public int getGroupMessagesCount(long groupId, int status)
417                    throws com.liferay.portal.kernel.exception.SystemException;
418    
419            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
420            public int getGroupMessagesCount(long groupId, long userId, int status)
421                    throws com.liferay.portal.kernel.exception.SystemException;
422    
423            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
424            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
425                    long messageId)
426                    throws com.liferay.portal.kernel.exception.PortalException,
427                            com.liferay.portal.kernel.exception.SystemException;
428    
429            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
431                    long userId, long messageId, int status, java.lang.String threadView,
432                    boolean includePrevAndNext)
433                    throws com.liferay.portal.kernel.exception.PortalException,
434                            com.liferay.portal.kernel.exception.SystemException;
435    
436            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
438                    long userId, com.liferay.portlet.messageboards.model.MBMessage message,
439                    int status, java.lang.String threadView, boolean includePrevAndNext)
440                    throws com.liferay.portal.kernel.exception.PortalException,
441                            com.liferay.portal.kernel.exception.SystemException;
442    
443            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
444            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
445                    java.lang.String className, long classPK, int status)
446                    throws com.liferay.portal.kernel.exception.SystemException;
447    
448            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
450                    throws com.liferay.portal.kernel.exception.SystemException;
451    
452            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
453            public int getPositionInThread(long messageId)
454                    throws com.liferay.portal.kernel.exception.PortalException,
455                            com.liferay.portal.kernel.exception.SystemException;
456    
457            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
458            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
459                    long threadId, int status)
460                    throws com.liferay.portal.kernel.exception.SystemException;
461    
462            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
463            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
464                    long threadId, int status,
465                    java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
470                    long threadId, int status, int start, int end)
471                    throws com.liferay.portal.kernel.exception.SystemException;
472    
473            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474            public int getThreadMessagesCount(long threadId, int status)
475                    throws com.liferay.portal.kernel.exception.SystemException;
476    
477            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
478            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
479                    long threadId, int status, int start, int end)
480                    throws com.liferay.portal.kernel.exception.SystemException;
481    
482            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
483            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
484                    long userId, long classNameId, long classPK, int status, int start,
485                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
486                    throws com.liferay.portal.kernel.exception.SystemException;
487    
488            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
489            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
490                    long userId, long[] classNameIds, int status, int start, int end,
491                    com.liferay.portal.kernel.util.OrderByComparator obc)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
496                    long userId, java.lang.String className, long classPK, int status,
497                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
498                    throws com.liferay.portal.kernel.exception.SystemException;
499    
500            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
501            public int getUserDiscussionMessagesCount(long userId, long classNameId,
502                    long classPK, int status)
503                    throws com.liferay.portal.kernel.exception.SystemException;
504    
505            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
506            public int getUserDiscussionMessagesCount(long userId, long[] classNameIds,
507                    int status) throws com.liferay.portal.kernel.exception.SystemException;
508    
509            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
510            public int getUserDiscussionMessagesCount(long userId,
511                    java.lang.String className, long classPK, int status)
512                    throws com.liferay.portal.kernel.exception.SystemException;
513    
514            public void subscribeMessage(long userId, long messageId)
515                    throws com.liferay.portal.kernel.exception.PortalException,
516                            com.liferay.portal.kernel.exception.SystemException;
517    
518            public void unsubscribeMessage(long userId, long messageId)
519                    throws com.liferay.portal.kernel.exception.PortalException,
520                            com.liferay.portal.kernel.exception.SystemException;
521    
522            public void updateAnswer(long messageId, boolean answer, boolean cascade)
523                    throws com.liferay.portal.kernel.exception.PortalException,
524                            com.liferay.portal.kernel.exception.SystemException;
525    
526            public void updateAnswer(
527                    com.liferay.portlet.messageboards.model.MBMessage message,
528                    boolean answer, boolean cascade)
529                    throws com.liferay.portal.kernel.exception.PortalException,
530                            com.liferay.portal.kernel.exception.SystemException;
531    
532            public void updateAsset(long userId,
533                    com.liferay.portlet.messageboards.model.MBMessage message,
534                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
535                    long[] assetLinkEntryIds)
536                    throws com.liferay.portal.kernel.exception.PortalException,
537                            com.liferay.portal.kernel.exception.SystemException;
538    
539            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
540                    long userId, long messageId, java.lang.String className, long classPK,
541                    java.lang.String subject, java.lang.String body,
542                    com.liferay.portal.service.ServiceContext serviceContext)
543                    throws com.liferay.portal.kernel.exception.PortalException,
544                            com.liferay.portal.kernel.exception.SystemException;
545    
546            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
547                    long userId, long messageId, java.lang.String subject,
548                    java.lang.String body,
549                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
550                    java.util.List<java.lang.String> existingFiles, double priority,
551                    boolean allowPingbacks,
552                    com.liferay.portal.service.ServiceContext serviceContext)
553                    throws com.liferay.portal.kernel.exception.PortalException,
554                            com.liferay.portal.kernel.exception.SystemException;
555    
556            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
557                    long messageId, java.lang.String body)
558                    throws com.liferay.portal.kernel.exception.PortalException,
559                            com.liferay.portal.kernel.exception.SystemException;
560    
561            public com.liferay.portlet.messageboards.model.MBMessage updateStatus(
562                    long userId, long messageId, int status,
563                    com.liferay.portal.service.ServiceContext serviceContext)
564                    throws com.liferay.portal.kernel.exception.PortalException,
565                            com.liferay.portal.kernel.exception.SystemException;
566    
567            public void updateUserName(long userId, java.lang.String userName)
568                    throws com.liferay.portal.kernel.exception.SystemException;
569    }