com.liferay.portlet.messageboards.service
Interface MBMessageService

All Known Implementing Classes:
MBMessageServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface MBMessageService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

Author:
Brian Wing Shun Chan
See Also:
MBMessageServiceUtil
Generated:

Method Summary
 MBMessage addDiscussionMessage(java.lang.String className, long classPK, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, ServiceContext serviceContext)
           
 MBMessage addMessage(long groupId, long categoryId, long threadId, long parentMessageId, java.lang.String subject, java.lang.String body, java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 MBMessage addMessage(long groupId, long categoryId, java.lang.String subject, java.lang.String body, java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 void deleteDiscussionMessage(long groupId, java.lang.String className, long classPK, long messageId)
           
 void deleteMessage(long messageId)
           
 java.util.List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
           
 int getCategoryMessagesCount(long groupId, long categoryId, int status)
           
 java.lang.String getCategoryMessagesRSS(long groupId, long categoryId, int status, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, ThemeDisplay themeDisplay)
           
 java.lang.String getCompanyMessagesRSS(long companyId, int status, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, ThemeDisplay themeDisplay)
           
 java.lang.String getGroupMessagesRSS(long groupId, int status, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, ThemeDisplay themeDisplay)
           
 java.lang.String getGroupMessagesRSS(long groupId, long userId, int status, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, ThemeDisplay themeDisplay)
           
 MBMessage getMessage(long messageId)
           
 MBMessageDisplay getMessageDisplay(long messageId, int status, java.lang.String threadView)
           
 java.lang.String getThreadMessagesRSS(long threadId, int status, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, ThemeDisplay themeDisplay)
           
 void subscribeMessage(long messageId)
           
 void unsubscribeMessage(long messageId)
           
 MBMessage updateDiscussionMessage(java.lang.String className, long classPK, long messageId, java.lang.String subject, java.lang.String body, ServiceContext serviceContext)
           
 MBMessage updateMessage(long messageId, java.lang.String subject, java.lang.String body, java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files, java.util.List<java.lang.String> existingFiles, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 

Method Detail

addDiscussionMessage

MBMessage addDiscussionMessage(java.lang.String className,
                               long classPK,
                               long threadId,
                               long parentMessageId,
                               java.lang.String subject,
                               java.lang.String body,
                               ServiceContext serviceContext)
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addMessage

MBMessage addMessage(long groupId,
                     long categoryId,
                     java.lang.String subject,
                     java.lang.String body,
                     java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
                     boolean anonymous,
                     double priority,
                     boolean allowPingbacks,
                     ServiceContext serviceContext)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addMessage

MBMessage addMessage(long groupId,
                     long categoryId,
                     long threadId,
                     long parentMessageId,
                     java.lang.String subject,
                     java.lang.String body,
                     java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
                     boolean anonymous,
                     double priority,
                     boolean allowPingbacks,
                     ServiceContext serviceContext)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteDiscussionMessage

void deleteDiscussionMessage(long groupId,
                             java.lang.String className,
                             long classPK,
                             long messageId)
                             throws com.liferay.portal.kernel.exception.PortalException,
                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteMessage

void deleteMessage(long messageId)
                   throws com.liferay.portal.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getCategoryMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessage> getCategoryMessages(long groupId,
                                                            long categoryId,
                                                            int status,
                                                            int start,
                                                            int end)
                                              throws com.liferay.portal.kernel.exception.PortalException,
                                                     com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getCategoryMessagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoryMessagesCount(long groupId,
                                           long categoryId,
                                           int status)
                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getCategoryMessagesRSS

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.lang.String getCategoryMessagesRSS(long groupId,
                                                      long categoryId,
                                                      int status,
                                                      int max,
                                                      java.lang.String type,
                                                      double version,
                                                      java.lang.String displayStyle,
                                                      java.lang.String feedURL,
                                                      java.lang.String entryURL,
                                                      ThemeDisplay themeDisplay)
                                        throws com.liferay.portal.kernel.exception.PortalException,
                                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getCompanyMessagesRSS

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.lang.String getCompanyMessagesRSS(long companyId,
                                                     int status,
                                                     int max,
                                                     java.lang.String type,
                                                     double version,
                                                     java.lang.String displayStyle,
                                                     java.lang.String feedURL,
                                                     java.lang.String entryURL,
                                                     ThemeDisplay themeDisplay)
                                       throws com.liferay.portal.kernel.exception.PortalException,
                                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupMessagesRSS

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.lang.String getGroupMessagesRSS(long groupId,
                                                   int status,
                                                   int max,
                                                   java.lang.String type,
                                                   double version,
                                                   java.lang.String displayStyle,
                                                   java.lang.String feedURL,
                                                   java.lang.String entryURL,
                                                   ThemeDisplay themeDisplay)
                                     throws com.liferay.portal.kernel.exception.PortalException,
                                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupMessagesRSS

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.lang.String getGroupMessagesRSS(long groupId,
                                                   long userId,
                                                   int status,
                                                   int max,
                                                   java.lang.String type,
                                                   double version,
                                                   java.lang.String displayStyle,
                                                   java.lang.String feedURL,
                                                   java.lang.String entryURL,
                                                   ThemeDisplay themeDisplay)
                                     throws com.liferay.portal.kernel.exception.PortalException,
                                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getMessage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessage getMessage(long messageId)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getMessageDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessageDisplay getMessageDisplay(long messageId,
                                                 int status,
                                                 java.lang.String threadView)
                                   throws com.liferay.portal.kernel.exception.PortalException,
                                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getThreadMessagesRSS

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.lang.String getThreadMessagesRSS(long threadId,
                                                    int status,
                                                    int max,
                                                    java.lang.String type,
                                                    double version,
                                                    java.lang.String displayStyle,
                                                    java.lang.String feedURL,
                                                    java.lang.String entryURL,
                                                    ThemeDisplay themeDisplay)
                                      throws com.liferay.portal.kernel.exception.PortalException,
                                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

subscribeMessage

void subscribeMessage(long messageId)
                      throws com.liferay.portal.kernel.exception.PortalException,
                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

unsubscribeMessage

void unsubscribeMessage(long messageId)
                        throws com.liferay.portal.kernel.exception.PortalException,
                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateDiscussionMessage

MBMessage updateDiscussionMessage(java.lang.String className,
                                  long classPK,
                                  long messageId,
                                  java.lang.String subject,
                                  java.lang.String body,
                                  ServiceContext serviceContext)
                                  throws com.liferay.portal.kernel.exception.PortalException,
                                         com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateMessage

MBMessage updateMessage(long messageId,
                        java.lang.String subject,
                        java.lang.String body,
                        java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files,
                        java.util.List<java.lang.String> existingFiles,
                        double priority,
                        boolean allowPingbacks,
                        ServiceContext serviceContext)
                        throws com.liferay.portal.kernel.exception.PortalException,
                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException