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. 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.
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. 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.
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 matching the UUID and group.
183            *
184            * @param uuid the message-boards message's UUID
185            * @param groupId the primary key of the group
186            * @return the matching message-boards message
187            * @throws PortalException if a matching message-boards message 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. 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.
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 com.liferay.portlet.messageboards.model.MBMessage addMessage(
283                    long userId, java.lang.String userName, long categoryId,
284                    java.lang.String subject, java.lang.String body,
285                    com.liferay.portal.service.ServiceContext serviceContext)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException;
288    
289            public void addMessageResources(long messageId,
290                    boolean addGroupPermissions, boolean addGuestPermissions)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException;
293    
294            public void addMessageResources(long messageId,
295                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
296                    throws com.liferay.portal.kernel.exception.PortalException,
297                            com.liferay.portal.kernel.exception.SystemException;
298    
299            public void addMessageResources(
300                    com.liferay.portlet.messageboards.model.MBMessage message,
301                    boolean addGroupPermissions, boolean addGuestPermissions)
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                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
308                    throws com.liferay.portal.kernel.exception.PortalException,
309                            com.liferay.portal.kernel.exception.SystemException;
310    
311            public com.liferay.portlet.messageboards.model.MBMessage deleteDiscussionMessage(
312                    long messageId)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException;
315    
316            public void deleteDiscussionMessages(java.lang.String className,
317                    long classPK)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException;
320    
321            public com.liferay.portlet.messageboards.model.MBMessage deleteMessage(
322                    long messageId)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException;
325    
326            public com.liferay.portlet.messageboards.model.MBMessage deleteMessage(
327                    com.liferay.portlet.messageboards.model.MBMessage message)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException;
330    
331            public void deleteMessageAttachment(long messageId,
332                    java.lang.String fileName)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException;
335    
336            public void deleteMessageAttachments(long messageId)
337                    throws com.liferay.portal.kernel.exception.PortalException,
338                            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                    throws com.liferay.portal.kernel.exception.SystemException;
344    
345            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
346            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
347                    long groupId, long categoryId, int status, int start, int end,
348                    com.liferay.portal.kernel.util.OrderByComparator obc)
349                    throws com.liferay.portal.kernel.exception.SystemException;
350    
351            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352            public int getCategoryMessagesCount(long groupId, long categoryId,
353                    int status) 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                    throws com.liferay.portal.kernel.exception.SystemException;
359    
360            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
362                    long companyId, int status, int start, int end,
363                    com.liferay.portal.kernel.util.OrderByComparator obc)
364                    throws com.liferay.portal.kernel.exception.SystemException;
365    
366            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367            public int getCompanyMessagesCount(long companyId, int status)
368                    throws 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)
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 com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
379                    long userId, long groupId, java.lang.String className, long classPK,
380                    int status, java.lang.String threadView)
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException;
383    
384            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385            public int getDiscussionMessagesCount(long classNameId, long classPK,
386                    int status) throws com.liferay.portal.kernel.exception.SystemException;
387    
388            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
389            public int getDiscussionMessagesCount(java.lang.String className,
390                    long classPK, int status)
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.MBDiscussion> getDiscussions(
395                    java.lang.String className)
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                    throws com.liferay.portal.kernel.exception.SystemException;
402    
403            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
404            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
405                    long groupId, int status, int start, int end,
406                    com.liferay.portal.kernel.util.OrderByComparator obc)
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                    throws com.liferay.portal.kernel.exception.SystemException;
413    
414            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
416                    long groupId, long userId, int status, int start, int end,
417                    com.liferay.portal.kernel.util.OrderByComparator obc)
418                    throws com.liferay.portal.kernel.exception.SystemException;
419    
420            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
421            public int getGroupMessagesCount(long groupId, int status)
422                    throws com.liferay.portal.kernel.exception.SystemException;
423    
424            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425            public int getGroupMessagesCount(long groupId, long userId, int status)
426                    throws com.liferay.portal.kernel.exception.SystemException;
427    
428            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
430                    long messageId)
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, long messageId, int status, java.lang.String threadView,
437                    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 com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
443                    long userId, com.liferay.portlet.messageboards.model.MBMessage message,
444                    int status, java.lang.String threadView, boolean includePrevAndNext)
445                    throws com.liferay.portal.kernel.exception.PortalException,
446                            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> getMessages(
450                    java.lang.String className, long classPK, int status)
451                    throws com.liferay.portal.kernel.exception.SystemException;
452    
453            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
454            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
455                    throws com.liferay.portal.kernel.exception.SystemException;
456    
457            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
458            public int getPositionInThread(long messageId)
459                    throws com.liferay.portal.kernel.exception.PortalException,
460                            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                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
469                    long threadId, int status,
470                    java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
471                    throws com.liferay.portal.kernel.exception.SystemException;
472    
473            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
475                    long threadId, int status, int start, int end)
476                    throws com.liferay.portal.kernel.exception.SystemException;
477    
478            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479            public int getThreadMessagesCount(long threadId, int status)
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> getThreadRepliesMessages(
484                    long threadId, int status, int start, int end)
485                    throws com.liferay.portal.kernel.exception.SystemException;
486    
487            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
488            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
489                    long userId, long classNameId, long classPK, int status, int start,
490                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
491                    throws com.liferay.portal.kernel.exception.SystemException;
492    
493            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
494            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
495                    long userId, long[] classNameIds, int status, int start, int end,
496                    com.liferay.portal.kernel.util.OrderByComparator obc)
497                    throws com.liferay.portal.kernel.exception.SystemException;
498    
499            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
501                    long userId, java.lang.String className, long classPK, int status,
502                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
503                    throws com.liferay.portal.kernel.exception.SystemException;
504    
505            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
506            public int getUserDiscussionMessagesCount(long userId, long classNameId,
507                    long classPK, int status)
508                    throws com.liferay.portal.kernel.exception.SystemException;
509    
510            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
511            public int getUserDiscussionMessagesCount(long userId, long[] classNameIds,
512                    int status) throws com.liferay.portal.kernel.exception.SystemException;
513    
514            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
515            public int getUserDiscussionMessagesCount(long userId,
516                    java.lang.String className, long classPK, int status)
517                    throws com.liferay.portal.kernel.exception.SystemException;
518    
519            public long moveMessageAttachmentToTrash(long userId, long messageId,
520                    java.lang.String fileName)
521                    throws com.liferay.portal.kernel.exception.PortalException,
522                            com.liferay.portal.kernel.exception.SystemException;
523    
524            public void restoreMessageAttachmentFromTrash(long userId, long messageId,
525                    java.lang.String deletedFileName)
526                    throws com.liferay.portal.kernel.exception.PortalException,
527                            com.liferay.portal.kernel.exception.SystemException;
528    
529            public void subscribeMessage(long userId, long messageId)
530                    throws com.liferay.portal.kernel.exception.PortalException,
531                            com.liferay.portal.kernel.exception.SystemException;
532    
533            public void unsubscribeMessage(long userId, long messageId)
534                    throws com.liferay.portal.kernel.exception.PortalException,
535                            com.liferay.portal.kernel.exception.SystemException;
536    
537            public void updateAnswer(long messageId, boolean answer, boolean cascade)
538                    throws com.liferay.portal.kernel.exception.PortalException,
539                            com.liferay.portal.kernel.exception.SystemException;
540    
541            public void updateAnswer(
542                    com.liferay.portlet.messageboards.model.MBMessage message,
543                    boolean answer, boolean cascade)
544                    throws com.liferay.portal.kernel.exception.PortalException,
545                            com.liferay.portal.kernel.exception.SystemException;
546    
547            public void updateAsset(long userId,
548                    com.liferay.portlet.messageboards.model.MBMessage message,
549                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
550                    long[] assetLinkEntryIds)
551                    throws com.liferay.portal.kernel.exception.PortalException,
552                            com.liferay.portal.kernel.exception.SystemException;
553    
554            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
555                    long userId, long messageId, java.lang.String className, long classPK,
556                    java.lang.String subject, java.lang.String body,
557                    com.liferay.portal.service.ServiceContext serviceContext)
558                    throws com.liferay.portal.kernel.exception.PortalException,
559                            com.liferay.portal.kernel.exception.SystemException;
560    
561            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
562                    long userId, long messageId, java.lang.String subject,
563                    java.lang.String body,
564                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
565                    java.util.List<java.lang.String> existingFiles, double priority,
566                    boolean allowPingbacks,
567                    com.liferay.portal.service.ServiceContext serviceContext)
568                    throws com.liferay.portal.kernel.exception.PortalException,
569                            com.liferay.portal.kernel.exception.SystemException;
570    
571            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
572                    long messageId, java.lang.String body)
573                    throws com.liferay.portal.kernel.exception.PortalException,
574                            com.liferay.portal.kernel.exception.SystemException;
575    
576            public com.liferay.portlet.messageboards.model.MBMessage updateStatus(
577                    long userId, long messageId, int status,
578                    com.liferay.portal.service.ServiceContext serviceContext)
579                    throws com.liferay.portal.kernel.exception.PortalException,
580                            com.liferay.portal.kernel.exception.SystemException;
581    
582            public void updateUserName(long userId, java.lang.String userName)
583                    throws com.liferay.portal.kernel.exception.SystemException;
584    }