Class MBMessageLocalServiceWrapper

java.lang.Object
com.liferay.message.boards.service.MBMessageLocalServiceWrapper
All Implemented Interfaces:
MBMessageLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<MBMessage>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<MBMessageLocalService>

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

    • MBMessageLocalServiceWrapper

      public MBMessageLocalServiceWrapper()
    • MBMessageLocalServiceWrapper

      public MBMessageLocalServiceWrapper(MBMessageLocalService mbMessageLocalService)
  • Method Details

    • addDiscussionMessage

      public MBMessage addDiscussionMessage(long userId, String userName, long groupId, String className, long classPK, int workflowAction) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addDiscussionMessage in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addDiscussionMessage

      public MBMessage addDiscussionMessage(String externalReferenceCode, long userId, String userName, 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 MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMBMessage

      public MBMessage addMBMessage(MBMessage mbMessage)
      Adds the message-boards message to the database. Also notifies the appropriate model listeners.

      Important: Inspect MBMessageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      addMBMessage in interface MBMessageLocalService
      Parameters:
      mbMessage - the message-boards message
      Returns:
      the message-boards message that was added
    • addMessage

      @Deprecated public MBMessage addMessage(long userId, String userName, long groupId, long categoryId, long threadId, 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 MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessage

      @Deprecated public MBMessage addMessage(long userId, String userName, long groupId, 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 MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessage

      @Deprecated public MBMessage addMessage(long userId, String userName, 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 MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessage

      @Deprecated public MBMessage addMessage(long userId, String userName, 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 MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
      FileNotFoundException
    • addMessage

      public MBMessage addMessage(String externalReferenceCode, long userId, String userName, long groupId, long categoryId, long threadId, 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 MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessageAttachment

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

      public void addMessageResources(long messageId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addMessageResources in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessageResources

      public void addMessageResources(long messageId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addMessageResources in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessageResources

      public void addMessageResources(MBMessage message, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addMessageResources in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessageResources

      public void addMessageResources(MBMessage message, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addMessageResources in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addTempAttachment

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

      public MBMessage createMBMessage(long messageId)
      Creates a new message-boards message with the primary key. Does not add the message-boards message to the database.
      Specified by:
      createMBMessage in interface MBMessageLocalService
      Parameters:
      messageId - the primary key for the new message-boards message
      Returns:
      the new message-boards message
    • createPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface MBMessageLocalService
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteDiscussionMessage

      public MBMessage deleteDiscussionMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteDiscussionMessage in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteDiscussionMessages

      public void deleteDiscussionMessages(String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteDiscussionMessages in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteMBMessage

      public MBMessage deleteMBMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect MBMessageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteMBMessage in interface MBMessageLocalService
      Parameters:
      messageId - the primary key of the message-boards message
      Returns:
      the message-boards message that was removed
      Throws:
      PortalException - if a message-boards message with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteMBMessage

      public MBMessage deleteMBMessage(MBMessage mbMessage)
      Deletes the message-boards message from the database. Also notifies the appropriate model listeners.

      Important: Inspect MBMessageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteMBMessage in interface MBMessageLocalService
      Parameters:
      mbMessage - the message-boards message
      Returns:
      the message-boards message that was removed
    • deleteMessage

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

      public MBMessage deleteMessage(MBMessage message) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteMessage in interface MBMessageLocalService
      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 MBMessageLocalService
      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 MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePersistedModel

      public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface MBMessageLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteTempAttachment

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

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface MBMessageLocalService
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface MBMessageLocalService
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface MBMessageLocalService
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Specified by:
      dynamicQuery in interface MBMessageLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      Performs a dynamic query on the database and returns a range of the matching rows.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.message.boards.model.impl.MBMessageModelImpl.

      Specified by:
      dynamicQuery in interface MBMessageLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
      Performs a dynamic query on the database and returns an ordered range of the matching rows.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.message.boards.model.impl.MBMessageModelImpl.

      Specified by:
      dynamicQuery in interface MBMessageLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface MBMessageLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface MBMessageLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • emptyMessageAttachments

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

      public MBMessage fetchFileEntryMessage(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchFileEntryMessage in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchFirstMessage

      public MBMessage fetchFirstMessage(long threadId, long parentMessageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchFirstMessage in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchMBMessage

      public MBMessage fetchMBMessage(long messageId)
      Specified by:
      fetchMBMessage in interface MBMessageLocalService
    • fetchMBMessageByExternalReferenceCode

      public MBMessage fetchMBMessageByExternalReferenceCode(String externalReferenceCode, long groupId)
      Specified by:
      fetchMBMessageByExternalReferenceCode in interface MBMessageLocalService
    • fetchMBMessageByUrlSubject

      public MBMessage fetchMBMessageByUrlSubject(long groupId, String urlSubject)
      Specified by:
      fetchMBMessageByUrlSubject in interface MBMessageLocalService
    • fetchMBMessageByUuidAndGroupId

      public MBMessage fetchMBMessageByUuidAndGroupId(String uuid, long groupId)
      Returns the message-boards message matching the UUID and group.
      Specified by:
      fetchMBMessageByUuidAndGroupId in interface MBMessageLocalService
      Parameters:
      uuid - the message-boards message's UUID
      groupId - the primary key of the group
      Returns:
      the matching message-boards message, or null if a matching message-boards message could not be found
    • getActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface MBMessageLocalService
    • getCategoryMessages

      public List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
      Specified by:
      getCategoryMessages in interface MBMessageLocalService
    • getCategoryMessages

      public List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
      Specified by:
      getCategoryMessages in interface MBMessageLocalService
    • getCategoryMessages

      public List<MBMessage> getCategoryMessages(long groupId, long categoryId, long threadId)
      Specified by:
      getCategoryMessages in interface MBMessageLocalService
    • getCategoryMessagesCount

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

      public List<MBMessage> getChildMessages(long parentMessageId, int status)
      Specified by:
      getChildMessages in interface MBMessageLocalService
    • getChildMessages

      public List<MBMessage> getChildMessages(long parentMessageId, int status, int start, int end)
      Specified by:
      getChildMessages in interface MBMessageLocalService
    • getChildMessagesCount

      public int getChildMessagesCount(long parentMessageId, int status)
      Specified by:
      getChildMessagesCount in interface MBMessageLocalService
    • getCompanyMessages

      public List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end)
      Specified by:
      getCompanyMessages in interface MBMessageLocalService
    • getCompanyMessages

      public List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
      Specified by:
      getCompanyMessages in interface MBMessageLocalService
    • getCompanyMessagesCount

      public int getCompanyMessagesCount(long companyId, int status)
      Specified by:
      getCompanyMessagesCount in interface MBMessageLocalService
    • getDiscussionMessageDisplay

      public MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getDiscussionMessageDisplay in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getDiscussionMessageDisplay

      public MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status, Comparator<MBMessage> comparator) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getDiscussionMessageDisplay in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getDiscussionMessagesCount

      public int getDiscussionMessagesCount(long classNameId, long classPK, int status)
      Specified by:
      getDiscussionMessagesCount in interface MBMessageLocalService
    • getDiscussionMessagesCount

      public int getDiscussionMessagesCount(String className, long classPK, int status)
      Specified by:
      getDiscussionMessagesCount in interface MBMessageLocalService
    • getDiscussions

      public List<MBDiscussion> getDiscussions(String className)
      Specified by:
      getDiscussions in interface MBMessageLocalService
    • getExportActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
      Specified by:
      getExportActionableDynamicQuery in interface MBMessageLocalService
    • getFileEntryMessage

      public MBMessage getFileEntryMessage(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getFileEntryMessage in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFirstMessage

      public MBMessage getFirstMessage(long threadId, long parentMessageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getFirstMessage in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getGroupMessages

      public List<MBMessage> getGroupMessages(long groupId, int status, int start, int end)
      Specified by:
      getGroupMessages in interface MBMessageLocalService
    • getGroupMessages

      public List<MBMessage> getGroupMessages(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
      Specified by:
      getGroupMessages in interface MBMessageLocalService
    • getGroupMessages

      public List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end)
      Specified by:
      getGroupMessages in interface MBMessageLocalService
    • getGroupMessages

      public List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
      Specified by:
      getGroupMessages in interface MBMessageLocalService
    • getGroupMessagesCount

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

      public int getGroupMessagesCount(long groupId, long userId, int status)
      Specified by:
      getGroupMessagesCount in interface MBMessageLocalService
    • getGroupUserMessageBoardMessagesActivity

      public List<MBMessage> getGroupUserMessageBoardMessagesActivity(long groupId, long userId, int start, int end)
      Specified by:
      getGroupUserMessageBoardMessagesActivity in interface MBMessageLocalService
    • getGroupUserMessageBoardMessagesActivityCount

      public int getGroupUserMessageBoardMessagesActivityCount(long groupId, long userId)
      Specified by:
      getGroupUserMessageBoardMessagesActivityCount in interface MBMessageLocalService
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface MBMessageLocalService
    • getLastThreadMessage

      public MBMessage getLastThreadMessage(long threadId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getLastThreadMessage in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMBMessage

      public MBMessage getMBMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the message-boards message with the primary key.
      Specified by:
      getMBMessage in interface MBMessageLocalService
      Parameters:
      messageId - the primary key of the message-boards message
      Returns:
      the message-boards message
      Throws:
      PortalException - if a message-boards message with the primary key could not be found
      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 MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMBMessageByUuidAndGroupId

      public MBMessage getMBMessageByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the message-boards message matching the UUID and group.
      Specified by:
      getMBMessageByUuidAndGroupId in interface MBMessageLocalService
      Parameters:
      uuid - the message-boards message's UUID
      groupId - the primary key of the group
      Returns:
      the matching message-boards message
      Throws:
      PortalException - if a matching message-boards message could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getMBMessages

      public List<MBMessage> getMBMessages(int start, int end)
      Returns a range of all the message-boards messages.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.message.boards.model.impl.MBMessageModelImpl.

      Specified by:
      getMBMessages in interface MBMessageLocalService
      Parameters:
      start - the lower bound of the range of message-boards messages
      end - the upper bound of the range of message-boards messages (not inclusive)
      Returns:
      the range of message-boards messages
    • getMBMessagesByUuidAndCompanyId

      public List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid, long companyId)
      Returns all the message-boards messages matching the UUID and company.
      Specified by:
      getMBMessagesByUuidAndCompanyId in interface MBMessageLocalService
      Parameters:
      uuid - the UUID of the message-boards messages
      companyId - the primary key of the company
      Returns:
      the matching message-boards messages, or an empty list if no matches were found
    • getMBMessagesByUuidAndCompanyId

      public List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
      Returns a range of message-boards messages matching the UUID and company.
      Specified by:
      getMBMessagesByUuidAndCompanyId in interface MBMessageLocalService
      Parameters:
      uuid - the UUID of the message-boards messages
      companyId - the primary key of the company
      start - the lower bound of the range of message-boards messages
      end - the upper bound of the range of message-boards messages (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching message-boards messages, or an empty list if no matches were found
    • getMBMessagesCount

      public int getMBMessagesCount()
      Returns the number of message-boards messages.
      Specified by:
      getMBMessagesCount in interface MBMessageLocalService
      Returns:
      the number of message-boards messages
    • getMessage

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

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

      public MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getMessageDisplay in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMessageDisplay

      public MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, Comparator<MBMessage> comparator) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getMessageDisplay in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMessages

      public List<MBMessage> getMessages(String className, long classPK, int status)
      Specified by:
      getMessages in interface MBMessageLocalService
    • getOSGiServiceIdentifier

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

      public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface MBMessageLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getPositionInThread

      public int getPositionInThread(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPositionInThread in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getRootDiscussionMessages

      public List<MBMessage> getRootDiscussionMessages(String className, long classPK, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getRootDiscussionMessages in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getRootDiscussionMessages

      public List<MBMessage> getRootDiscussionMessages(String className, long classPK, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getRootDiscussionMessages in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getRootDiscussionMessagesCount

      public int getRootDiscussionMessagesCount(String className, long classPK, int status)
      Specified by:
      getRootDiscussionMessagesCount in interface MBMessageLocalService
    • getTempAttachmentNames

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

      public List<MBMessage> getThreadMessages(long threadId, int status)
      Specified by:
      getThreadMessages in interface MBMessageLocalService
    • getThreadMessages

      public List<MBMessage> getThreadMessages(long threadId, int status, Comparator<MBMessage> comparator)
      Specified by:
      getThreadMessages in interface MBMessageLocalService
    • getThreadMessages

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

      public List<MBMessage> getThreadMessages(long threadId, long parentMessageId)
      Specified by:
      getThreadMessages in interface MBMessageLocalService
    • getThreadMessages

      public List<MBMessage> getThreadMessages(long userId, long threadId, int status, int start, int end, Comparator<MBMessage> comparator)
      Specified by:
      getThreadMessages in interface MBMessageLocalService
    • getThreadMessagesCount

      public int getThreadMessagesCount(long threadId, boolean answer)
      Specified by:
      getThreadMessagesCount in interface MBMessageLocalService
    • getThreadMessagesCount

      public int getThreadMessagesCount(long threadId, int status)
      Specified by:
      getThreadMessagesCount in interface MBMessageLocalService
    • getThreadRepliesMessages

      public List<MBMessage> getThreadRepliesMessages(long threadId, int status, int start, int end)
      Specified by:
      getThreadRepliesMessages in interface MBMessageLocalService
    • getUserDiscussionMessages

      public List<MBMessage> getUserDiscussionMessages(long userId, long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
      Specified by:
      getUserDiscussionMessages in interface MBMessageLocalService
    • getUserDiscussionMessages

      public List<MBMessage> getUserDiscussionMessages(long userId, long[] classNameIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
      Specified by:
      getUserDiscussionMessages in interface MBMessageLocalService
    • getUserDiscussionMessages

      public List<MBMessage> getUserDiscussionMessages(long userId, String className, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
      Specified by:
      getUserDiscussionMessages in interface MBMessageLocalService
    • getUserDiscussionMessagesCount

      public int getUserDiscussionMessagesCount(long userId, long classNameId, long classPK, int status)
      Specified by:
      getUserDiscussionMessagesCount in interface MBMessageLocalService
    • getUserDiscussionMessagesCount

      public int getUserDiscussionMessagesCount(long userId, long[] classNameIds, int status)
      Specified by:
      getUserDiscussionMessagesCount in interface MBMessageLocalService
    • getUserDiscussionMessagesCount

      public int getUserDiscussionMessagesCount(long userId, String className, long classPK, int status)
      Specified by:
      getUserDiscussionMessagesCount in interface MBMessageLocalService
    • moveMessageAttachmentToTrash

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

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

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

      public void unsubscribeMessage(long userId, long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      unsubscribeMessage in interface MBMessageLocalService
      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 MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAnswer

      public MBMessage updateAnswer(MBMessage message, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateAnswer in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAsset

      public void updateAsset(long userId, MBMessage message, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateAsset in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateDiscussionMessage

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

      public MBMessage updateMBMessage(MBMessage mbMessage)
      Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect MBMessageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      updateMBMessage in interface MBMessageLocalService
      Parameters:
      mbMessage - the message-boards message
      Returns:
      the message-boards message that was updated
    • updateMessage

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

      public MBMessage updateMessage(long userId, 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 MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public MBMessage updateStatus(long userId, long messageId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String,Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateStatus in interface MBMessageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateUserName

      public void updateUserName(long userId, String userName)
      Specified by:
      updateUserName in interface MBMessageLocalService
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
      Specified by:
      getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • getCTPersistence

      public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBMessage> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBMessage>
      Specified by:
      getCTPersistence in interface MBMessageLocalService
    • getModelClass

      public Class<MBMessage> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBMessage>
      Specified by:
      getModelClass in interface MBMessageLocalService
    • updateWithUnsafeFunction

      public <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBMessage>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBMessage>
      Specified by:
      updateWithUnsafeFunction in interface MBMessageLocalService
      Throws:
      E extends Throwable
    • getWrappedService

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

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