Liferay 6.2.0

com.liferay.portlet.messageboards.service
Interface MBMessageService

All Superinterfaces:
BaseService
All Known Implementing Classes:
MBMessageServiceBaseImpl, MBMessageServiceImpl, MBMessageServiceWrapper

@ProviderType
@AccessControlled
@JSONWebService
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface MBMessageService
extends BaseService

Provides the remote service interface for MBMessage. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
MBMessageServiceUtil, MBMessageServiceBaseImpl, MBMessageServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
abstract  MBMessage addDiscussionMessage(long groupId, String className, long classPK, String permissionClassName, long permissionClassPK, long permissionOwnerId, long threadId, long parentMessageId, String subject, String body, ServiceContext serviceContext)
           
abstract  MBMessage addMessage(long groupId, long categoryId, long threadId, long parentMessageId, String subject, String body, String format, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
          Deprecated. As of 6.2.0, replaced by addMessage(long, String, String, String, java.util.List, boolean, double, boolean, com.liferay.portal.service.ServiceContext)
abstract  MBMessage addMessage(long groupId, long categoryId, String subject, String body, String format, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
abstract  MBMessage addMessage(long categoryId, String subject, String body, ServiceContext serviceContext)
           
abstract  MBMessage addMessage(long parentMessageId, String subject, String body, String format, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
abstract  void deleteDiscussionMessage(long groupId, String className, long classPK, String permissionClassName, long permissionClassPK, long permissionOwnerId, long messageId)
           
abstract  void deleteMessage(long messageId)
           
abstract  void deleteMessageAttachments(long messageId)
           
abstract  String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
abstract  List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
           
abstract  int getCategoryMessagesCount(long groupId, long categoryId, int status)
           
abstract  String getCategoryMessagesRSS(long groupId, long categoryId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
abstract  String getCompanyMessagesRSS(long companyId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
abstract  int getGroupMessagesCount(long groupId, int status)
           
abstract  String getGroupMessagesRSS(long groupId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
abstract  String getGroupMessagesRSS(long groupId, long userId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
abstract  MBMessage getMessage(long messageId)
           
abstract  MBMessageDisplay getMessageDisplay(long messageId, int status, String threadView, boolean includePrevAndNext)
           
abstract  int getThreadAnswersCount(long groupId, long categoryId, long threadId)
           
abstract  List<MBMessage> getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end)
           
abstract  int getThreadMessagesCount(long groupId, long categoryId, long threadId, int status)
           
abstract  String getThreadMessagesRSS(long threadId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
abstract  void restoreMessageAttachmentFromTrash(long messageId, String fileName)
           
abstract  void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
abstract  void subscribeMessage(long messageId)
           
abstract  void unsubscribeMessage(long messageId)
           
abstract  void updateAnswer(long messageId, boolean answer, boolean cascade)
           
abstract  MBMessage updateDiscussionMessage(String className, long classPK, String permissionClassName, long permissionClassPK, long permissionOwnerId, long messageId, String subject, String body, ServiceContext serviceContext)
           
abstract  MBMessage updateMessage(long messageId, String subject, String body, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, List<String> existingFiles, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 

Method Detail

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addDiscussionMessage

MBMessage addDiscussionMessage(long groupId,
                               String className,
                               long classPK,
                               String permissionClassName,
                               long permissionClassPK,
                               long permissionOwnerId,
                               long threadId,
                               long parentMessageId,
                               String subject,
                               String body,
                               ServiceContext serviceContext)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

addMessage

MBMessage addMessage(long groupId,
                     long categoryId,
                     long threadId,
                     long parentMessageId,
                     String subject,
                     String body,
                     String format,
                     List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
                     boolean anonymous,
                     double priority,
                     boolean allowPingbacks,
                     ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Deprecated. As of 6.2.0, replaced by addMessage(long, String, String, String, java.util.List, boolean, double, boolean, com.liferay.portal.service.ServiceContext)

Throws:
PortalException
SystemException

addMessage

MBMessage addMessage(long groupId,
                     long categoryId,
                     String subject,
                     String body,
                     String format,
                     List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
                     boolean anonymous,
                     double priority,
                     boolean allowPingbacks,
                     ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

addMessage

MBMessage addMessage(long categoryId,
                     String subject,
                     String body,
                     ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

addMessage

MBMessage addMessage(long parentMessageId,
                     String subject,
                     String body,
                     String format,
                     List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
                     boolean anonymous,
                     double priority,
                     boolean allowPingbacks,
                     ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

deleteDiscussionMessage

void deleteDiscussionMessage(long groupId,
                             String className,
                             long classPK,
                             String permissionClassName,
                             long permissionClassPK,
                             long permissionOwnerId,
                             long messageId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

deleteMessage

void deleteMessage(long messageId)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

deleteMessageAttachments

void deleteMessageAttachments(long messageId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getCategoryMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBMessage> getCategoryMessages(long groupId,
                                                                             long categoryId,
                                                                             int status,
                                                                             int start,
                                                                             int end)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getCategoryMessagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoryMessagesCount(long groupId,
                                                                      long categoryId,
                                                                      int status)
                             throws SystemException
Throws:
SystemException

getCategoryMessagesRSS

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String getCategoryMessagesRSS(long groupId,
                                                                       long categoryId,
                                                                       int status,
                                                                       int max,
                                                                       String type,
                                                                       double version,
                                                                       String displayStyle,
                                                                       String feedURL,
                                                                       String entryURL,
                                                                       ThemeDisplay themeDisplay)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getCompanyMessagesRSS

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String getCompanyMessagesRSS(long companyId,
                                                                      int status,
                                                                      int max,
                                                                      String type,
                                                                      double version,
                                                                      String displayStyle,
                                                                      String feedURL,
                                                                      String entryURL,
                                                                      ThemeDisplay themeDisplay)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getGroupMessagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupMessagesCount(long groupId,
                                                                   int status)
                          throws SystemException
Throws:
SystemException

getGroupMessagesRSS

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String getGroupMessagesRSS(long groupId,
                                                                    int status,
                                                                    int max,
                                                                    String type,
                                                                    double version,
                                                                    String displayStyle,
                                                                    String feedURL,
                                                                    String entryURL,
                                                                    ThemeDisplay themeDisplay)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getGroupMessagesRSS

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String getGroupMessagesRSS(long groupId,
                                                                    long userId,
                                                                    int status,
                                                                    int max,
                                                                    String type,
                                                                    double version,
                                                                    String displayStyle,
                                                                    String feedURL,
                                                                    String entryURL,
                                                                    ThemeDisplay themeDisplay)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getMessage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessage getMessage(long messageId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getMessageDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessageDisplay getMessageDisplay(long messageId,
                                                                            int status,
                                                                            String threadView,
                                                                            boolean includePrevAndNext)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

getThreadAnswersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getThreadAnswersCount(long groupId,
                                                                   long categoryId,
                                                                   long threadId)
                          throws SystemException
Throws:
SystemException

getThreadMessages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBMessage> getThreadMessages(long groupId,
                                                                           long categoryId,
                                                                           long threadId,
                                                                           int status,
                                                                           int start,
                                                                           int end)
                                  throws SystemException
Throws:
SystemException

getThreadMessagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getThreadMessagesCount(long groupId,
                                                                    long categoryId,
                                                                    long threadId,
                                                                    int status)
                           throws SystemException
Throws:
SystemException

getThreadMessagesRSS

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String getThreadMessagesRSS(long threadId,
                                                                     int status,
                                                                     int max,
                                                                     String type,
                                                                     double version,
                                                                     String displayStyle,
                                                                     String feedURL,
                                                                     String entryURL,
                                                                     ThemeDisplay themeDisplay)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

restoreMessageAttachmentFromTrash

void restoreMessageAttachmentFromTrash(long messageId,
                                       String fileName)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

subscribeMessage

void subscribeMessage(long messageId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

unsubscribeMessage

void unsubscribeMessage(long messageId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

updateAnswer

void updateAnswer(long messageId,
                  boolean answer,
                  boolean cascade)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

updateDiscussionMessage

MBMessage updateDiscussionMessage(String className,
                                  long classPK,
                                  String permissionClassName,
                                  long permissionClassPK,
                                  long permissionOwnerId,
                                  long messageId,
                                  String subject,
                                  String body,
                                  ServiceContext serviceContext)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

updateMessage

MBMessage updateMessage(long messageId,
                        String subject,
                        String body,
                        List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
                        List<String> existingFiles,
                        double priority,
                        boolean allowPingbacks,
                        ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

Liferay 6.2.0