Interface MBMessageLocalService

All Superinterfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<MBMessage>, com.liferay.portal.kernel.service.PersistedModelLocalService
All Known Implementing Classes:
MBMessageLocalServiceWrapper

@CTAware @ProviderType @Transactional(isolation=PORTAL, rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class}) public interface MBMessageLocalService extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<MBMessage>, com.liferay.portal.kernel.service.PersistedModelLocalService
Provides the local service interface for MBMessage. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
See Also:
Generated:
  • Method Details

    • addDiscussionMessage

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

      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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMBMessage

      @Indexable(type=REINDEX) 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.

      Parameters:
      mbMessage - the message-boards message
      Returns:
      the message-boards message that was added
    • addMessage

      @Deprecated 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessage

      @Deprecated 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessage

      @Deprecated 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessage

      @Deprecated 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 FileNotFoundException, com.liferay.portal.kernel.exception.PortalException
      Throws:
      FileNotFoundException
      com.liferay.portal.kernel.exception.PortalException
    • addMessage

      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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessageAttachment

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

      void addMessageResources(long messageId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessageResources

      void addMessageResources(long messageId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessageResources

      void addMessageResources(MBMessage message, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMessageResources

      void addMessageResources(MBMessage message, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addTempAttachment

      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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createMBMessage

      @Transactional(enabled=false) MBMessage createMBMessage(long messageId)
      Creates a new message-boards message with the primary key. Does not add the message-boards message to the database.
      Parameters:
      messageId - the primary key for the new message-boards message
      Returns:
      the new message-boards message
    • createPersistedModel

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

      @Indexable(type=DELETE) MBMessage deleteDiscussionMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteDiscussionMessages

      void deleteDiscussionMessages(String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteMBMessage

      @Indexable(type=DELETE) 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.

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

      @Indexable(type=DELETE) 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.

      Parameters:
      mbMessage - the message-boards message
      Returns:
      the message-boards message that was removed
    • deleteMessage

      @Indexable(type=DELETE) MBMessage deleteMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteMessage

      @Indexable(type=DELETE) @SystemEvent(type=1) MBMessage deleteMessage(MBMessage message) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteMessageAttachment

      void deleteMessageAttachment(long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteMessageAttachments

      void deleteMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePersistedModel

      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 com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteTempAttachment

      void deleteTempAttachment(long groupId, long userId, String folderName, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <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.

      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

      @Transactional(propagation=SUPPORTS, readOnly=true) <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.

      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

      @Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) 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.
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • emptyMessageAttachments

      void emptyMessageAttachments(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchFileEntryMessage

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessage fetchFileEntryMessage(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchFirstMessage

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessage fetchFirstMessage(long threadId, long parentMessageId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchMBMessage

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessage fetchMBMessage(long messageId)
    • fetchMBMessageByExternalReferenceCode

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessage fetchMBMessageByExternalReferenceCode(String externalReferenceCode, long groupId)
    • fetchMBMessageByUrlSubject

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessage fetchMBMessageByUrlSubject(long groupId, String urlSubject)
    • fetchMBMessageByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessage fetchMBMessageByUuidAndGroupId(String uuid, long groupId)
      Returns the message-boards message matching the UUID and group.
      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

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
    • getCategoryMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
    • getCategoryMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
    • getCategoryMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getCategoryMessages(long groupId, long categoryId, long threadId)
    • getCategoryMessagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getCategoryMessagesCount(long groupId, long categoryId, int status)
    • getChildMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getChildMessages(long parentMessageId, int status)
    • getChildMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getChildMessages(long parentMessageId, int status, int start, int end)
    • getChildMessagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getChildMessagesCount(long parentMessageId, int status)
    • getCompanyMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end)
    • getCompanyMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
    • getCompanyMessagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getCompanyMessagesCount(long companyId, int status)
    • getDiscussionMessageDisplay

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getDiscussionMessageDisplay

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessageDisplay getDiscussionMessageDisplay(long userId, long groupId, String className, long classPK, int status, Comparator<MBMessage> comparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getDiscussionMessagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getDiscussionMessagesCount(long classNameId, long classPK, int status)
    • getDiscussionMessagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getDiscussionMessagesCount(String className, long classPK, int status)
    • getDiscussions

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBDiscussion> getDiscussions(String className)
    • getExportActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
    • getFileEntryMessage

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getFileEntryMessage(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFirstMessage

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getFirstMessage(long threadId, long parentMessageId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getGroupMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getGroupMessages(long groupId, int status, int start, int end)
    • getGroupMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getGroupMessages(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
    • getGroupMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end)
    • getGroupMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
    • getGroupMessagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getGroupMessagesCount(long groupId, int status)
    • getGroupMessagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getGroupMessagesCount(long groupId, long userId, int status)
    • getGroupUserMessageBoardMessagesActivity

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getGroupUserMessageBoardMessagesActivity(long groupId, long userId, int start, int end)
    • getGroupUserMessageBoardMessagesActivityCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getGroupUserMessageBoardMessagesActivityCount(long groupId, long userId)
    • getIndexableActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getLastThreadMessage

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getLastThreadMessage(long threadId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMBMessage

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getMBMessage(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the message-boards message with the primary key.
      Parameters:
      messageId - the primary key of the message-boards message
      Returns:
      the message-boards message
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a message-boards message with the primary key could not be found
    • getMBMessageByExternalReferenceCode

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getMBMessageByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMBMessageByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessage getMBMessageByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the message-boards message matching the UUID and group.
      Parameters:
      uuid - the message-boards message's UUID
      groupId - the primary key of the group
      Returns:
      the matching message-boards message
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a matching message-boards message could not be found
    • getMBMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) 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.

      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

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid, long companyId)
      Returns all the message-boards messages matching the UUID and company.
      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

      @Transactional(propagation=SUPPORTS, readOnly=true) 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.
      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

      @Transactional(propagation=SUPPORTS, readOnly=true) int getMBMessagesCount()
      Returns the number of message-boards messages.
      Returns:
      the number of message-boards messages
    • getMessage

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

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessageDisplay getMessageDisplay(long userId, long messageId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMessageDisplay

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMessageDisplay

      @Transactional(propagation=SUPPORTS, readOnly=true) MBMessageDisplay getMessageDisplay(long userId, MBMessage message, int status, Comparator<MBMessage> comparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getMessages(String className, long classPK, int status)
    • getOSGiServiceIdentifier

      String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getPersistedModel

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPositionInThread

      @Transactional(propagation=SUPPORTS, readOnly=true) int getPositionInThread(long messageId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getRootDiscussionMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getRootDiscussionMessages(String className, long classPK, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getRootDiscussionMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getRootDiscussionMessages(String className, long classPK, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getRootDiscussionMessagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getRootDiscussionMessagesCount(String className, long classPK, int status)
    • getTempAttachmentNames

      @Transactional(propagation=SUPPORTS, readOnly=true) String[] getTempAttachmentNames(long groupId, long userId, String folderName) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getThreadMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getThreadMessages(long threadId, int status)
    • getThreadMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getThreadMessages(long threadId, int status, Comparator<MBMessage> comparator)
    • getThreadMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getThreadMessages(long threadId, int status, int start, int end)
    • getThreadMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getThreadMessages(long threadId, long parentMessageId)
    • getThreadMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getThreadMessages(long userId, long threadId, int status, int start, int end, Comparator<MBMessage> comparator)
    • getThreadMessagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getThreadMessagesCount(long threadId, boolean answer)
    • getThreadMessagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getThreadMessagesCount(long threadId, int status)
    • getThreadRepliesMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getThreadRepliesMessages(long threadId, int status, int start, int end)
    • getUserDiscussionMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getUserDiscussionMessages(long userId, long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
    • getUserDiscussionMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getUserDiscussionMessages(long userId, long[] classNameIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
    • getUserDiscussionMessages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBMessage> getUserDiscussionMessages(long userId, String className, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBMessage> orderByComparator)
    • getUserDiscussionMessagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getUserDiscussionMessagesCount(long userId, long classNameId, long classPK, int status)
    • getUserDiscussionMessagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getUserDiscussionMessagesCount(long userId, long[] classNameIds, int status)
    • getUserDiscussionMessagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getUserDiscussionMessagesCount(long userId, String className, long classPK, int status)
    • moveMessageAttachmentToTrash

      long moveMessageAttachmentToTrash(long userId, long messageId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restoreMessageAttachmentFromTrash

      void restoreMessageAttachmentFromTrash(long userId, long messageId, String deletedFileName) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • subscribeMessage

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

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

      @Indexable(type=REINDEX) MBMessage updateAnswer(long messageId, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAnswer

      @Indexable(type=REINDEX) MBMessage updateAnswer(MBMessage message, boolean answer, boolean cascade) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAsset

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

      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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateMBMessage

      @Indexable(type=REINDEX) 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.

      Parameters:
      mbMessage - the message-boards message
      Returns:
      the message-boards message that was updated
    • updateMessage

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

      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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateUserName

      void updateUserName(long userId, String userName)
    • getCTPersistence

      @Transactional(enabled=false) 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>
    • getModelClass

      @Transactional(enabled=false) Class<MBMessage> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBMessage>
    • updateWithUnsafeFunction

      @Transactional(rollbackFor=java.lang.Throwable.class) <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>
      Throws:
      E extends Throwable