001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service;
016    
017    import com.liferay.portal.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            * Returns the Spring bean ID for this bean.
236            *
237            * @return the Spring bean ID for this bean
238            */
239            public java.lang.String getBeanIdentifier();
240    
241            /**
242            * Sets the Spring bean ID for this bean.
243            *
244            * @param beanIdentifier the Spring bean ID for this bean
245            */
246            public void setBeanIdentifier(java.lang.String beanIdentifier);
247    
248            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
249                    long userId, java.lang.String userName, long groupId,
250                    java.lang.String className, long classPK, int workflowAction)
251                    throws com.liferay.portal.kernel.exception.PortalException,
252                            com.liferay.portal.kernel.exception.SystemException;
253    
254            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
255                    long userId, java.lang.String userName, long groupId,
256                    java.lang.String className, long classPK, long threadId,
257                    long parentMessageId, java.lang.String subject, java.lang.String body,
258                    com.liferay.portal.service.ServiceContext serviceContext)
259                    throws com.liferay.portal.kernel.exception.PortalException,
260                            com.liferay.portal.kernel.exception.SystemException;
261    
262            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
263                    long userId, java.lang.String userName, long groupId, long categoryId,
264                    long threadId, long parentMessageId, java.lang.String subject,
265                    java.lang.String body, java.lang.String format,
266                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
267                    boolean anonymous, double priority, boolean allowPingbacks,
268                    com.liferay.portal.service.ServiceContext serviceContext)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException;
271    
272            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
273                    long userId, java.lang.String userName, long groupId, long categoryId,
274                    java.lang.String subject, java.lang.String body,
275                    java.lang.String format,
276                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
277                    boolean anonymous, double priority, boolean allowPingbacks,
278                    com.liferay.portal.service.ServiceContext serviceContext)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException;
281    
282            public void addMessageResources(long messageId,
283                    boolean addGroupPermissions, boolean addGuestPermissions)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException;
286    
287            public void addMessageResources(long messageId,
288                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException;
291    
292            public void addMessageResources(
293                    com.liferay.portlet.messageboards.model.MBMessage message,
294                    boolean addGroupPermissions, boolean addGuestPermissions)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException;
297    
298            public void addMessageResources(
299                    com.liferay.portlet.messageboards.model.MBMessage message,
300                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException;
303    
304            public com.liferay.portlet.messageboards.model.MBMessage deleteDiscussionMessage(
305                    long messageId)
306                    throws com.liferay.portal.kernel.exception.PortalException,
307                            com.liferay.portal.kernel.exception.SystemException;
308    
309            public void deleteDiscussionMessages(java.lang.String className,
310                    long classPK)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException;
313    
314            public com.liferay.portlet.messageboards.model.MBMessage deleteMessage(
315                    long messageId)
316                    throws com.liferay.portal.kernel.exception.PortalException,
317                            com.liferay.portal.kernel.exception.SystemException;
318    
319            public com.liferay.portlet.messageboards.model.MBMessage deleteMessage(
320                    com.liferay.portlet.messageboards.model.MBMessage message)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException;
323    
324            public void deleteMessageAttachment(long messageId,
325                    java.lang.String fileName)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException;
328    
329            public void deleteMessageAttachments(long messageId)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException;
332    
333            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
335                    long groupId, long categoryId, int status, int start, int end)
336                    throws com.liferay.portal.kernel.exception.SystemException;
337    
338            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
340                    long groupId, long categoryId, int status, int start, int end,
341                    com.liferay.portal.kernel.util.OrderByComparator obc)
342                    throws com.liferay.portal.kernel.exception.SystemException;
343    
344            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345            public int getCategoryMessagesCount(long groupId, long categoryId,
346                    int status) throws com.liferay.portal.kernel.exception.SystemException;
347    
348            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
349            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
350                    long companyId, int status, int start, int end)
351                    throws com.liferay.portal.kernel.exception.SystemException;
352    
353            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
355                    long companyId, int status, int start, int end,
356                    com.liferay.portal.kernel.util.OrderByComparator obc)
357                    throws com.liferay.portal.kernel.exception.SystemException;
358    
359            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360            public int getCompanyMessagesCount(long companyId, int status)
361                    throws com.liferay.portal.kernel.exception.SystemException;
362    
363            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364            public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
365                    long userId, long groupId, java.lang.String className, long classPK,
366                    int status)
367                    throws com.liferay.portal.kernel.exception.PortalException,
368                            com.liferay.portal.kernel.exception.SystemException;
369    
370            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
371            public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
372                    long userId, long groupId, java.lang.String className, long classPK,
373                    int status, java.lang.String threadView)
374                    throws com.liferay.portal.kernel.exception.PortalException,
375                            com.liferay.portal.kernel.exception.SystemException;
376    
377            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378            public int getDiscussionMessagesCount(long classNameId, long classPK,
379                    int status) throws com.liferay.portal.kernel.exception.SystemException;
380    
381            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
382            public int getDiscussionMessagesCount(java.lang.String className,
383                    long classPK, int status)
384                    throws com.liferay.portal.kernel.exception.SystemException;
385    
386            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387            public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
388                    java.lang.String className)
389                    throws com.liferay.portal.kernel.exception.SystemException;
390    
391            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
393                    long groupId, int status, int start, int end)
394                    throws com.liferay.portal.kernel.exception.SystemException;
395    
396            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
397            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
398                    long groupId, int status, int start, int end,
399                    com.liferay.portal.kernel.util.OrderByComparator obc)
400                    throws com.liferay.portal.kernel.exception.SystemException;
401    
402            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
403            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
404                    long groupId, long userId, int status, int start, int end)
405                    throws com.liferay.portal.kernel.exception.SystemException;
406    
407            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
409                    long groupId, long userId, int status, int start, int end,
410                    com.liferay.portal.kernel.util.OrderByComparator obc)
411                    throws com.liferay.portal.kernel.exception.SystemException;
412    
413            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414            public int getGroupMessagesCount(long groupId, int status)
415                    throws com.liferay.portal.kernel.exception.SystemException;
416    
417            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
418            public int getGroupMessagesCount(long groupId, long userId, int status)
419                    throws com.liferay.portal.kernel.exception.SystemException;
420    
421            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
423                    long messageId)
424                    throws com.liferay.portal.kernel.exception.PortalException,
425                            com.liferay.portal.kernel.exception.SystemException;
426    
427            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
429                    long userId, long messageId, int status, java.lang.String threadView,
430                    boolean includePrevAndNext)
431                    throws com.liferay.portal.kernel.exception.PortalException,
432                            com.liferay.portal.kernel.exception.SystemException;
433    
434            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
435            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
436                    long userId, com.liferay.portlet.messageboards.model.MBMessage message,
437                    int status, java.lang.String threadView, boolean includePrevAndNext)
438                    throws com.liferay.portal.kernel.exception.PortalException,
439                            com.liferay.portal.kernel.exception.SystemException;
440    
441            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
442            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
443                    java.lang.String className, long classPK, int status)
444                    throws com.liferay.portal.kernel.exception.SystemException;
445    
446            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
447            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
448                    throws com.liferay.portal.kernel.exception.SystemException;
449    
450            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
451            public int getPositionInThread(long messageId)
452                    throws com.liferay.portal.kernel.exception.PortalException,
453                            com.liferay.portal.kernel.exception.SystemException;
454    
455            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
457                    long threadId, int status)
458                    throws com.liferay.portal.kernel.exception.SystemException;
459    
460            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
462                    long threadId, int status,
463                    java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
464                    throws com.liferay.portal.kernel.exception.SystemException;
465    
466            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
467            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
468                    long threadId, int status, int start, int end)
469                    throws com.liferay.portal.kernel.exception.SystemException;
470    
471            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
472            public int getThreadMessagesCount(long threadId, int status)
473                    throws com.liferay.portal.kernel.exception.SystemException;
474    
475            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
476            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
477                    long threadId, int status, int start, int end)
478                    throws com.liferay.portal.kernel.exception.SystemException;
479    
480            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
481            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
482                    long userId, long classNameId, long classPK, int status, int start,
483                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
484                    throws com.liferay.portal.kernel.exception.SystemException;
485    
486            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
488                    long userId, long[] classNameIds, int status, int start, int end,
489                    com.liferay.portal.kernel.util.OrderByComparator obc)
490                    throws com.liferay.portal.kernel.exception.SystemException;
491    
492            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
493            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
494                    long userId, java.lang.String className, long classPK, int status,
495                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
496                    throws com.liferay.portal.kernel.exception.SystemException;
497    
498            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
499            public int getUserDiscussionMessagesCount(long userId, long classNameId,
500                    long classPK, int status)
501                    throws com.liferay.portal.kernel.exception.SystemException;
502    
503            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
504            public int getUserDiscussionMessagesCount(long userId, long[] classNameIds,
505                    int status) throws com.liferay.portal.kernel.exception.SystemException;
506    
507            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
508            public int getUserDiscussionMessagesCount(long userId,
509                    java.lang.String className, long classPK, int status)
510                    throws com.liferay.portal.kernel.exception.SystemException;
511    
512            public void moveMessageAttachmentFromTrash(long messageId,
513                    java.lang.String deletedFileName)
514                    throws com.liferay.portal.kernel.exception.PortalException,
515                            com.liferay.portal.kernel.exception.SystemException;
516    
517            public java.lang.String moveMessageAttachmentToTrash(long messageId,
518                    java.lang.String fileName)
519                    throws com.liferay.portal.kernel.exception.PortalException,
520                            com.liferay.portal.kernel.exception.SystemException;
521    
522            public void subscribeMessage(long userId, long messageId)
523                    throws com.liferay.portal.kernel.exception.PortalException,
524                            com.liferay.portal.kernel.exception.SystemException;
525    
526            public void unsubscribeMessage(long userId, long messageId)
527                    throws com.liferay.portal.kernel.exception.PortalException,
528                            com.liferay.portal.kernel.exception.SystemException;
529    
530            public void updateAnswer(long messageId, boolean answer, boolean cascade)
531                    throws com.liferay.portal.kernel.exception.PortalException,
532                            com.liferay.portal.kernel.exception.SystemException;
533    
534            public void updateAnswer(
535                    com.liferay.portlet.messageboards.model.MBMessage message,
536                    boolean answer, boolean cascade)
537                    throws com.liferay.portal.kernel.exception.PortalException,
538                            com.liferay.portal.kernel.exception.SystemException;
539    
540            public void updateAsset(long userId,
541                    com.liferay.portlet.messageboards.model.MBMessage message,
542                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
543                    long[] assetLinkEntryIds)
544                    throws com.liferay.portal.kernel.exception.PortalException,
545                            com.liferay.portal.kernel.exception.SystemException;
546    
547            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
548                    long userId, long messageId, java.lang.String className, long classPK,
549                    java.lang.String subject, java.lang.String body,
550                    com.liferay.portal.service.ServiceContext serviceContext)
551                    throws com.liferay.portal.kernel.exception.PortalException,
552                            com.liferay.portal.kernel.exception.SystemException;
553    
554            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
555                    long userId, long messageId, java.lang.String subject,
556                    java.lang.String body,
557                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
558                    java.util.List<java.lang.String> existingFiles, double priority,
559                    boolean allowPingbacks,
560                    com.liferay.portal.service.ServiceContext serviceContext)
561                    throws com.liferay.portal.kernel.exception.PortalException,
562                            com.liferay.portal.kernel.exception.SystemException;
563    
564            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
565                    long messageId, java.lang.String body)
566                    throws com.liferay.portal.kernel.exception.PortalException,
567                            com.liferay.portal.kernel.exception.SystemException;
568    
569            public com.liferay.portlet.messageboards.model.MBMessage updateStatus(
570                    long userId, long messageId, int status,
571                    com.liferay.portal.service.ServiceContext serviceContext)
572                    throws com.liferay.portal.kernel.exception.PortalException,
573                            com.liferay.portal.kernel.exception.SystemException;
574    
575            public void updateUserName(long userId, java.lang.String userName)
576                    throws com.liferay.portal.kernel.exception.SystemException;
577    }