001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.messageboards.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.search.IndexableType;
022    import com.liferay.portal.kernel.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Propagation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.service.BaseLocalService;
026    import com.liferay.portal.service.PersistedModelLocalService;
027    
028    /**
029     * Provides the local service interface for MBMessage. Methods of this
030     * service will not have security checks based on the propagated JAAS
031     * credentials because this service can only be accessed from within the same
032     * VM.
033     *
034     * @author Brian Wing Shun Chan
035     * @see MBMessageLocalServiceUtil
036     * @see com.liferay.portlet.messageboards.service.base.MBMessageLocalServiceBaseImpl
037     * @see com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl
038     * @generated
039     */
040    @ProviderType
041    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
042            PortalException.class, SystemException.class})
043    public interface MBMessageLocalService extends BaseLocalService,
044            PersistedModelLocalService {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * 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.
049             */
050    
051            /**
052            * Adds the message-boards message to the database. Also notifies the appropriate model listeners.
053            *
054            * @param mbMessage the message-boards message
055            * @return the message-boards message that was added
056            * @throws SystemException if a system exception occurred
057            */
058            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059            public com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
060                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            /**
064            * Creates a new message-boards message with the primary key. Does not add the message-boards message to the database.
065            *
066            * @param messageId the primary key for the new message-boards message
067            * @return the new message-boards message
068            */
069            public com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
070                    long messageId);
071    
072            /**
073            * Deletes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners.
074            *
075            * @param messageId the primary key of the message-boards message
076            * @return the message-boards message that was removed
077            * @throws PortalException if a message-boards message with the primary key could not be found
078            * @throws SystemException if a system exception occurred
079            */
080            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
081            public com.liferay.portlet.messageboards.model.MBMessage deleteMBMessage(
082                    long messageId)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException;
085    
086            /**
087            * Deletes the message-boards message from the database. Also notifies the appropriate model listeners.
088            *
089            * @param mbMessage the message-boards message
090            * @return the message-boards message that was removed
091            * @throws SystemException if a system exception occurred
092            */
093            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
094            public com.liferay.portlet.messageboards.model.MBMessage deleteMBMessage(
095                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
099    
100            /**
101            * Performs a dynamic query on the database and returns the matching rows.
102            *
103            * @param dynamicQuery the dynamic query
104            * @return the matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            /**
113            * Performs a dynamic query on the database and returns a range of the matching rows.
114            *
115            * <p>
116            * 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.
117            * </p>
118            *
119            * @param dynamicQuery the dynamic query
120            * @param start the lower bound of the range of model instances
121            * @param end the upper bound of the range of model instances (not inclusive)
122            * @return the range of matching rows
123            * @throws SystemException if a system exception occurred
124            */
125            @SuppressWarnings("rawtypes")
126            public java.util.List dynamicQuery(
127                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
128                    int end) throws com.liferay.portal.kernel.exception.SystemException;
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * 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.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @SuppressWarnings("rawtypes")
145            public java.util.List dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147                    int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            /**
152            * Returns the number of rows that match the dynamic query.
153            *
154            * @param dynamicQuery the dynamic query
155            * @return the number of rows that match the dynamic query
156            * @throws SystemException if a system exception occurred
157            */
158            public long dynamicQueryCount(
159                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            /**
163            * Returns the number of rows that match the dynamic query.
164            *
165            * @param dynamicQuery the dynamic query
166            * @param projection the projection to apply to the query
167            * @return the number of rows that match the dynamic query
168            * @throws SystemException if a system exception occurred
169            */
170            public long dynamicQueryCount(
171                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
172                    com.liferay.portal.kernel.dao.orm.Projection projection)
173                    throws com.liferay.portal.kernel.exception.SystemException;
174    
175            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176            public com.liferay.portlet.messageboards.model.MBMessage fetchMBMessage(
177                    long messageId)
178                    throws com.liferay.portal.kernel.exception.SystemException;
179    
180            /**
181            * Returns the message-boards message with the matching UUID and company.
182            *
183            * @param uuid the message-boards message's UUID
184            * @param companyId the primary key of the company
185            * @return the matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189            public com.liferay.portlet.messageboards.model.MBMessage fetchMBMessageByUuidAndCompanyId(
190                    java.lang.String uuid, long companyId)
191                    throws com.liferay.portal.kernel.exception.SystemException;
192    
193            /**
194            * Returns the message-boards message matching the UUID and group.
195            *
196            * @param uuid the message-boards message's UUID
197            * @param groupId the primary key of the group
198            * @return the matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202            public com.liferay.portlet.messageboards.model.MBMessage fetchMBMessageByUuidAndGroupId(
203                    java.lang.String uuid, long groupId)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Returns the message-boards message with the primary key.
208            *
209            * @param messageId the primary key of the message-boards message
210            * @return the message-boards message
211            * @throws PortalException if a message-boards message with the primary key could not be found
212            * @throws SystemException if a system exception occurred
213            */
214            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215            public com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
216                    long messageId)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException;
219    
220            @Override
221            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222            public com.liferay.portal.model.PersistedModel getPersistedModel(
223                    java.io.Serializable primaryKeyObj)
224                    throws com.liferay.portal.kernel.exception.PortalException,
225                            com.liferay.portal.kernel.exception.SystemException;
226    
227            /**
228            * Returns the message-boards message with the matching UUID and company.
229            *
230            * @param uuid the message-boards message's UUID
231            * @param companyId the primary key of the company
232            * @return the matching message-boards message
233            * @throws PortalException if a matching message-boards message could not be found
234            * @throws SystemException if a system exception occurred
235            */
236            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237            public com.liferay.portlet.messageboards.model.MBMessage getMBMessageByUuidAndCompanyId(
238                    java.lang.String uuid, long companyId)
239                    throws com.liferay.portal.kernel.exception.PortalException,
240                            com.liferay.portal.kernel.exception.SystemException;
241    
242            /**
243            * Returns the message-boards message matching the UUID and group.
244            *
245            * @param uuid the message-boards message's UUID
246            * @param groupId the primary key of the group
247            * @return the matching message-boards message
248            * @throws PortalException if a matching message-boards message could not be found
249            * @throws SystemException if a system exception occurred
250            */
251            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252            public com.liferay.portlet.messageboards.model.MBMessage getMBMessageByUuidAndGroupId(
253                    java.lang.String uuid, long groupId)
254                    throws com.liferay.portal.kernel.exception.PortalException,
255                            com.liferay.portal.kernel.exception.SystemException;
256    
257            /**
258            * Returns a range of all the message-boards messages.
259            *
260            * <p>
261            * 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.
262            * </p>
263            *
264            * @param start the lower bound of the range of message-boards messages
265            * @param end the upper bound of the range of message-boards messages (not inclusive)
266            * @return the range of message-boards messages
267            * @throws SystemException if a system exception occurred
268            */
269            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
271                    int start, int end)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * Returns the number of message-boards messages.
276            *
277            * @return the number of message-boards messages
278            * @throws SystemException if a system exception occurred
279            */
280            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281            public int getMBMessagesCount()
282                    throws com.liferay.portal.kernel.exception.SystemException;
283    
284            /**
285            * Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
286            *
287            * @param mbMessage the message-boards message
288            * @return the message-boards message that was updated
289            * @throws SystemException if a system exception occurred
290            */
291            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
292            public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
293                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
294                    throws com.liferay.portal.kernel.exception.SystemException;
295    
296            /**
297            * Returns the Spring bean ID for this bean.
298            *
299            * @return the Spring bean ID for this bean
300            */
301            public java.lang.String getBeanIdentifier();
302    
303            /**
304            * Sets the Spring bean ID for this bean.
305            *
306            * @param beanIdentifier the Spring bean ID for this bean
307            */
308            public void setBeanIdentifier(java.lang.String beanIdentifier);
309    
310            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
311                    long userId, java.lang.String userName, long groupId,
312                    java.lang.String className, long classPK, int workflowAction)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException;
315    
316            public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
317                    long userId, java.lang.String userName, long groupId,
318                    java.lang.String className, long classPK, long threadId,
319                    long parentMessageId, java.lang.String subject, java.lang.String body,
320                    com.liferay.portal.service.ServiceContext serviceContext)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException;
323    
324            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
325                    long userId, java.lang.String userName, long groupId, long categoryId,
326                    long threadId, long parentMessageId, java.lang.String subject,
327                    java.lang.String body, java.lang.String format,
328                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
329                    boolean anonymous, double priority, boolean allowPingbacks,
330                    com.liferay.portal.service.ServiceContext serviceContext)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException;
333    
334            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
335                    long userId, java.lang.String userName, long groupId, long categoryId,
336                    java.lang.String subject, java.lang.String body,
337                    java.lang.String fileName, java.io.File file,
338                    com.liferay.portal.service.ServiceContext serviceContext)
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException,
341                            java.io.FileNotFoundException;
342    
343            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
344                    long userId, java.lang.String userName, long groupId, long categoryId,
345                    java.lang.String subject, java.lang.String body,
346                    java.lang.String format,
347                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
348                    boolean anonymous, double priority, boolean allowPingbacks,
349                    com.liferay.portal.service.ServiceContext serviceContext)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException;
352    
353            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
354                    long userId, java.lang.String userName, long groupId, long categoryId,
355                    java.lang.String subject, java.lang.String body,
356                    java.lang.String format, java.lang.String fileName, java.io.File file,
357                    boolean anonymous, double priority, boolean allowPingbacks,
358                    com.liferay.portal.service.ServiceContext serviceContext)
359                    throws com.liferay.portal.kernel.exception.PortalException,
360                            com.liferay.portal.kernel.exception.SystemException,
361                            java.io.FileNotFoundException;
362    
363            public com.liferay.portlet.messageboards.model.MBMessage addMessage(
364                    long userId, java.lang.String userName, long categoryId,
365                    java.lang.String subject, java.lang.String body,
366                    com.liferay.portal.service.ServiceContext serviceContext)
367                    throws com.liferay.portal.kernel.exception.PortalException,
368                            com.liferay.portal.kernel.exception.SystemException;
369    
370            public void addMessageResources(long messageId,
371                    boolean addGroupPermissions, boolean addGuestPermissions)
372                    throws com.liferay.portal.kernel.exception.PortalException,
373                            com.liferay.portal.kernel.exception.SystemException;
374    
375            public void addMessageResources(long messageId,
376                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
377                    throws com.liferay.portal.kernel.exception.PortalException,
378                            com.liferay.portal.kernel.exception.SystemException;
379    
380            public void addMessageResources(
381                    com.liferay.portlet.messageboards.model.MBMessage message,
382                    boolean addGroupPermissions, boolean addGuestPermissions)
383                    throws com.liferay.portal.kernel.exception.PortalException,
384                            com.liferay.portal.kernel.exception.SystemException;
385    
386            public void addMessageResources(
387                    com.liferay.portlet.messageboards.model.MBMessage message,
388                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
389                    throws com.liferay.portal.kernel.exception.PortalException,
390                            com.liferay.portal.kernel.exception.SystemException;
391    
392            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
393            public com.liferay.portlet.messageboards.model.MBMessage deleteDiscussionMessage(
394                    long messageId)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException;
397    
398            public void deleteDiscussionMessages(java.lang.String className,
399                    long classPK)
400                    throws com.liferay.portal.kernel.exception.PortalException,
401                            com.liferay.portal.kernel.exception.SystemException;
402    
403            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
404            public com.liferay.portlet.messageboards.model.MBMessage deleteMessage(
405                    long messageId)
406                    throws com.liferay.portal.kernel.exception.PortalException,
407                            com.liferay.portal.kernel.exception.SystemException;
408    
409            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
410            public com.liferay.portlet.messageboards.model.MBMessage deleteMessage(
411                    com.liferay.portlet.messageboards.model.MBMessage message)
412                    throws com.liferay.portal.kernel.exception.PortalException,
413                            com.liferay.portal.kernel.exception.SystemException;
414    
415            public void deleteMessageAttachment(long messageId,
416                    java.lang.String fileName)
417                    throws com.liferay.portal.kernel.exception.PortalException,
418                            com.liferay.portal.kernel.exception.SystemException;
419    
420            public void deleteMessageAttachments(long messageId)
421                    throws com.liferay.portal.kernel.exception.PortalException,
422                            com.liferay.portal.kernel.exception.SystemException;
423    
424            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
426                    long groupId, long categoryId, int status, int start, int end)
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
431                    long groupId, long categoryId, int status, int start, int end,
432                    com.liferay.portal.kernel.util.OrderByComparator obc)
433                    throws com.liferay.portal.kernel.exception.SystemException;
434    
435            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436            public int getCategoryMessagesCount(long groupId, long categoryId,
437                    int status) throws com.liferay.portal.kernel.exception.SystemException;
438    
439            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
441                    long companyId, int status, int start, int end)
442                    throws com.liferay.portal.kernel.exception.SystemException;
443    
444            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
445            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
446                    long companyId, int status, int start, int end,
447                    com.liferay.portal.kernel.util.OrderByComparator obc)
448                    throws com.liferay.portal.kernel.exception.SystemException;
449    
450            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
451            public int getCompanyMessagesCount(long companyId, int status)
452                    throws com.liferay.portal.kernel.exception.SystemException;
453    
454            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
455            public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
456                    long userId, long groupId, java.lang.String className, long classPK,
457                    int status)
458                    throws com.liferay.portal.kernel.exception.PortalException,
459                            com.liferay.portal.kernel.exception.SystemException;
460    
461            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
462            public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
463                    long userId, long groupId, java.lang.String className, long classPK,
464                    int status, java.lang.String threadView)
465                    throws com.liferay.portal.kernel.exception.PortalException,
466                            com.liferay.portal.kernel.exception.SystemException;
467    
468            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469            public int getDiscussionMessagesCount(long classNameId, long classPK,
470                    int status) throws com.liferay.portal.kernel.exception.SystemException;
471    
472            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
473            public int getDiscussionMessagesCount(java.lang.String className,
474                    long classPK, 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.MBDiscussion> getDiscussions(
479                    java.lang.String className)
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> getGroupMessages(
484                    long groupId, 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> getGroupMessages(
489                    long groupId, int status, int start, int end,
490                    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> getGroupMessages(
495                    long groupId, long userId, int status, int start, int end)
496                    throws com.liferay.portal.kernel.exception.SystemException;
497    
498            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
499            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
500                    long groupId, long userId, int status, int start, int end,
501                    com.liferay.portal.kernel.util.OrderByComparator obc)
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
505            public int getGroupMessagesCount(long groupId, int status)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
509            public int getGroupMessagesCount(long groupId, long userId, int status)
510                    throws com.liferay.portal.kernel.exception.SystemException;
511    
512            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
513            public com.liferay.portlet.messageboards.model.MBMessage getMessage(
514                    long messageId)
515                    throws com.liferay.portal.kernel.exception.PortalException,
516                            com.liferay.portal.kernel.exception.SystemException;
517    
518            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
519            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
520                    long userId, long messageId, int status, java.lang.String threadView,
521                    boolean includePrevAndNext)
522                    throws com.liferay.portal.kernel.exception.PortalException,
523                            com.liferay.portal.kernel.exception.SystemException;
524    
525            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
526            public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
527                    long userId, com.liferay.portlet.messageboards.model.MBMessage message,
528                    int status, java.lang.String threadView, boolean includePrevAndNext)
529                    throws com.liferay.portal.kernel.exception.PortalException,
530                            com.liferay.portal.kernel.exception.SystemException;
531    
532            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
533            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
534                    java.lang.String className, long classPK, int status)
535                    throws com.liferay.portal.kernel.exception.SystemException;
536    
537            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
538            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
539                    throws com.liferay.portal.kernel.exception.SystemException;
540    
541            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
542            public int getPositionInThread(long messageId)
543                    throws com.liferay.portal.kernel.exception.PortalException,
544                            com.liferay.portal.kernel.exception.SystemException;
545    
546            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
547            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
548                    long threadId, int status)
549                    throws com.liferay.portal.kernel.exception.SystemException;
550    
551            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
552            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
553                    long threadId, int status,
554                    java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
558            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
559                    long threadId, int status, int start, int end)
560                    throws com.liferay.portal.kernel.exception.SystemException;
561    
562            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
563            public int getThreadMessagesCount(long threadId, int status)
564                    throws com.liferay.portal.kernel.exception.SystemException;
565    
566            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
567            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
568                    long threadId, int status, int start, int end)
569                    throws com.liferay.portal.kernel.exception.SystemException;
570    
571            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
572            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
573                    long userId, long classNameId, long classPK, int status, int start,
574                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
575                    throws com.liferay.portal.kernel.exception.SystemException;
576    
577            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
578            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
579                    long userId, long[] classNameIds, int status, int start, int end,
580                    com.liferay.portal.kernel.util.OrderByComparator obc)
581                    throws com.liferay.portal.kernel.exception.SystemException;
582    
583            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
584            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
585                    long userId, java.lang.String className, long classPK, int status,
586                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
587                    throws com.liferay.portal.kernel.exception.SystemException;
588    
589            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
590            public int getUserDiscussionMessagesCount(long userId, long classNameId,
591                    long classPK, int status)
592                    throws com.liferay.portal.kernel.exception.SystemException;
593    
594            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
595            public int getUserDiscussionMessagesCount(long userId, long[] classNameIds,
596                    int status) throws com.liferay.portal.kernel.exception.SystemException;
597    
598            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
599            public int getUserDiscussionMessagesCount(long userId,
600                    java.lang.String className, long classPK, int status)
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            public void moveDiscussionToTrash(java.lang.String className, long classPK)
604                    throws com.liferay.portal.kernel.exception.SystemException;
605    
606            public long moveMessageAttachmentToTrash(long userId, long messageId,
607                    java.lang.String fileName)
608                    throws com.liferay.portal.kernel.exception.PortalException,
609                            com.liferay.portal.kernel.exception.SystemException;
610    
611            public void restoreDiscussionFromTrash(java.lang.String className,
612                    long classPK)
613                    throws com.liferay.portal.kernel.exception.SystemException;
614    
615            public void restoreMessageAttachmentFromTrash(long userId, long messageId,
616                    java.lang.String deletedFileName)
617                    throws com.liferay.portal.kernel.exception.PortalException,
618                            com.liferay.portal.kernel.exception.SystemException;
619    
620            public void subscribeMessage(long userId, long messageId)
621                    throws com.liferay.portal.kernel.exception.PortalException,
622                            com.liferay.portal.kernel.exception.SystemException;
623    
624            public void unsubscribeMessage(long userId, long messageId)
625                    throws com.liferay.portal.kernel.exception.PortalException,
626                            com.liferay.portal.kernel.exception.SystemException;
627    
628            public void updateAnswer(long messageId, boolean answer, boolean cascade)
629                    throws com.liferay.portal.kernel.exception.PortalException,
630                            com.liferay.portal.kernel.exception.SystemException;
631    
632            public void updateAnswer(
633                    com.liferay.portlet.messageboards.model.MBMessage message,
634                    boolean answer, boolean cascade)
635                    throws com.liferay.portal.kernel.exception.PortalException,
636                            com.liferay.portal.kernel.exception.SystemException;
637    
638            public void updateAsset(long userId,
639                    com.liferay.portlet.messageboards.model.MBMessage message,
640                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
641                    long[] assetLinkEntryIds)
642                    throws com.liferay.portal.kernel.exception.PortalException,
643                            com.liferay.portal.kernel.exception.SystemException;
644    
645            public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
646                    long userId, long messageId, java.lang.String className, long classPK,
647                    java.lang.String subject, java.lang.String body,
648                    com.liferay.portal.service.ServiceContext serviceContext)
649                    throws com.liferay.portal.kernel.exception.PortalException,
650                            com.liferay.portal.kernel.exception.SystemException;
651    
652            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
653                    long userId, long messageId, java.lang.String subject,
654                    java.lang.String body,
655                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
656                    java.util.List<java.lang.String> existingFiles, double priority,
657                    boolean allowPingbacks,
658                    com.liferay.portal.service.ServiceContext serviceContext)
659                    throws com.liferay.portal.kernel.exception.PortalException,
660                            com.liferay.portal.kernel.exception.SystemException;
661    
662            public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
663                    long messageId, java.lang.String body)
664                    throws com.liferay.portal.kernel.exception.PortalException,
665                            com.liferay.portal.kernel.exception.SystemException;
666    
667            public com.liferay.portlet.messageboards.model.MBMessage updateStatus(
668                    long userId, long messageId, int status,
669                    com.liferay.portal.service.ServiceContext serviceContext)
670                    throws com.liferay.portal.kernel.exception.PortalException,
671                            com.liferay.portal.kernel.exception.SystemException;
672    
673            public void updateUserName(long userId, java.lang.String userName)
674                    throws com.liferay.portal.kernel.exception.SystemException;
675    }