Class MBMessageServiceWrapper

java.lang.Object
com.liferay.message.boards.service.MBMessageServiceWrapper
All Implemented Interfaces:
MBMessageService, com.liferay.portal.kernel.service.BaseService, com.liferay.portal.kernel.service.ServiceWrapper<MBMessageService>

public class MBMessageServiceWrapper extends Object implements MBMessageService, com.liferay.portal.kernel.service.ServiceWrapper<MBMessageService>
Provides a wrapper for MBMessageService.
See Also:
Generated:
  • Constructor Details

    • MBMessageServiceWrapper

      public MBMessageServiceWrapper()
    • MBMessageServiceWrapper

      public MBMessageServiceWrapper(MBMessageService mbMessageService)
  • Method Details

    • addDiscussionMessage

      public MBMessage addDiscussionMessage(long groupId, String className, long classPK, long threadId, long parentMessageId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addDiscussionMessage in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessage

      @Deprecated public MBMessage addMessage(long groupId, long categoryId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addMessage in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessage

      @Deprecated public MBMessage addMessage(long groupId, long categoryId, String subject, String body, String format, String fileName, File file, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, FileNotFoundException
      Specified by:
      addMessage in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
      FileNotFoundException
    • addMessage

      @Deprecated public MBMessage addMessage(long categoryId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addMessage in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessage

      @Deprecated public MBMessage addMessage(long parentMessageId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addMessage in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessage

      public MBMessage addMessage(String externalReferenceCode, long parentMessageId, String subject, String body, String format, List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addMessage in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessageAttachment

      public void addMessageAttachment(long messageId, String fileName, File file, String mimeType) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addMessageAttachment in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addTempAttachment

      public com.liferay.portal.kernel.repository.model.FileEntry addTempAttachment(long groupId, long categoryId, String folderName, String fileName, InputStream inputStream, String mimeType) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addTempAttachment in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteDiscussionMessage

      public void deleteDiscussionMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteDiscussionMessage in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteMessage

      public void deleteMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteMessage in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteMessageAttachment

      public void deleteMessageAttachment(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteMessageAttachment in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteMessageAttachments

      public void deleteMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteMessageAttachments in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteTempAttachment

      public void deleteTempAttachment(long groupId, long categoryId, String folderName, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteTempAttachment in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • emptyMessageAttachments

      public void emptyMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      emptyMessageAttachments in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchMBMessageByUrlSubject

      public MBMessage fetchMBMessageByUrlSubject(long groupId, String urlSubject) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchMBMessageByUrlSubject in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCategoryMessages

      public List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCategoryMessages in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCategoryMessagesCount

      public int getCategoryMessagesCount(long groupId, long categoryId, int status)
      Specified by:
      getCategoryMessagesCount in interface MBMessageService
    • getCategoryMessagesRSS

      public String getCategoryMessagesRSS(long groupId, long categoryId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCategoryMessagesRSS in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getChildMessages

      public List<MBMessage> getChildMessages(long parentMessageId, boolean flatten, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBMessage> queryDefinition) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getChildMessages in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getChildMessagesCount

      public int getChildMessagesCount(long parentMessageId, boolean flatten, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBMessage> queryDefinition) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getChildMessagesCount in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCompanyMessagesRSS

      public String getCompanyMessagesRSS(long companyId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCompanyMessagesRSS in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getGroupMessagesCount

      public int getGroupMessagesCount(long groupId, int status)
      Specified by:
      getGroupMessagesCount in interface MBMessageService
    • getGroupMessagesRSS

      public String getGroupMessagesRSS(long groupId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getGroupMessagesRSS in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getGroupMessagesRSS

      public String getGroupMessagesRSS(long groupId, long userId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getGroupMessagesRSS in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getGroupUserMessageBoardMessagesActivity

      public List<MBMessage> getGroupUserMessageBoardMessagesActivity(long groupId, long userId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getGroupUserMessageBoardMessagesActivity in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getGroupUserMessageBoardMessagesActivityCount

      public int getGroupUserMessageBoardMessagesActivityCount(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getGroupUserMessageBoardMessagesActivityCount in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMBMessageByExternalReferenceCode

      public MBMessage getMBMessageByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getMBMessageByExternalReferenceCode in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMessage

      public MBMessage getMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getMessage in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMessageDisplay

      public MBMessageDisplay getMessageDisplay(long messageId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getMessageDisplay in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface MBMessageService
      Returns:
      the OSGi service identifier
    • getTempAttachmentNames

      public String[] getTempAttachmentNames(long groupId, String folderName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getTempAttachmentNames in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getThreadAnswersCount

      public int getThreadAnswersCount(long groupId, long categoryId, long threadId)
      Specified by:
      getThreadAnswersCount in interface MBMessageService
    • getThreadMessages

      public List<MBMessage> getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end)
      Specified by:
      getThreadMessages in interface MBMessageService
    • getThreadMessagesCount

      public int getThreadMessagesCount(long groupId, long categoryId, long threadId, int status)
      Specified by:
      getThreadMessagesCount in interface MBMessageService
    • getThreadMessagesRSS

      public String getThreadMessagesRSS(long threadId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getThreadMessagesRSS in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveMessageAttachmentToTrash

      public void moveMessageAttachmentToTrash(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveMessageAttachmentToTrash in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restoreMessageAttachmentFromTrash

      public void restoreMessageAttachmentFromTrash(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      restoreMessageAttachmentFromTrash in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • subscribeMessage

      public void subscribeMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      subscribeMessage in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • unsubscribeMessage

      public void unsubscribeMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      unsubscribeMessage in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAnswer

      public MBMessage updateAnswer(long messageId, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateAnswer in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateDiscussionMessage

      public MBMessage updateDiscussionMessage(String className, long classPK, long messageId, String subject, String body, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateDiscussionMessage in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateMessage

      public MBMessage updateMessage(long messageId, String subject, String body, List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs, double priority, boolean allowPingbacks, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateMessage in interface MBMessageService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getWrappedService

      public MBMessageService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<MBMessageService>
    • setWrappedService

      public void setWrappedService(MBMessageService mbMessageService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<MBMessageService>