Interface MBThreadLocalService

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

@CTAware @ProviderType @Transactional(isolation=PORTAL, rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class}) public interface MBThreadLocalService extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<MBThread>, com.liferay.portal.kernel.service.PersistedModelLocalService
Provides the local service interface for MBThread. 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

    • addMBThread

      @Indexable(type=REINDEX) MBThread addMBThread(MBThread mbThread)
      Adds the message boards thread to the database. Also notifies the appropriate model listeners.

      Important: Inspect MBThreadLocalServiceImpl 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:
      mbThread - the message boards thread
      Returns:
      the message boards thread that was added
    • addThread

      MBThread addThread(long categoryId, MBMessage message, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createMBThread

      @Transactional(enabled=false) MBThread createMBThread(long threadId)
      Creates a new message boards thread with the primary key. Does not add the message boards thread to the database.
      Parameters:
      threadId - the primary key for the new message boards thread
      Returns:
      the new message boards thread
    • 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
    • deleteMBThread

      @Indexable(type=DELETE) MBThread deleteMBThread(long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the message boards thread with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect MBThreadLocalServiceImpl 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:
      threadId - the primary key of the message boards thread
      Returns:
      the message boards thread that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a message boards thread with the primary key could not be found
    • deleteMBThread

      @Indexable(type=DELETE) MBThread deleteMBThread(MBThread mbThread)
      Deletes the message boards thread from the database. Also notifies the appropriate model listeners.

      Important: Inspect MBThreadLocalServiceImpl 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:
      mbThread - the message boards thread
      Returns:
      the message boards thread that was removed
    • 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
    • deleteThread

      void deleteThread(long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteThread

      @SystemEvent(action=1, type=1) void deleteThread(MBThread thread) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteThreads

      void deleteThreads(long groupId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteThreads

      void deleteThreads(long groupId, long categoryId, boolean includeTrashedEntries) 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.MBThreadModelImpl.

      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.MBThreadModelImpl.

      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
    • fetchMBThread

      @Transactional(propagation=SUPPORTS, readOnly=true) MBThread fetchMBThread(long threadId)
    • fetchMBThreadByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) MBThread fetchMBThreadByUuidAndGroupId(String uuid, long groupId)
      Returns the message boards thread matching the UUID and group.
      Parameters:
      uuid - the message boards thread's UUID
      groupId - the primary key of the group
      Returns:
      the matching message boards thread, or null if a matching message boards thread could not be found
    • fetchThread

      @Transactional(propagation=SUPPORTS, readOnly=true) MBThread fetchThread(long threadId)
    • getActionableDynamicQuery

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

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

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

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, boolean includeAnonymous, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
    • getGroupThreads

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
    • getGroupThreads

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getGroupThreads(long groupId, long userId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
    • getGroupThreads

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getGroupThreads(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
    • getGroupThreadsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getGroupThreadsCount(long groupId, long userId, boolean subscribed, boolean includeAnonymous, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
    • getGroupThreadsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getGroupThreadsCount(long groupId, long userId, boolean subscribed, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
    • getGroupThreadsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getGroupThreadsCount(long groupId, long userId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
    • getGroupThreadsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getGroupThreadsCount(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
    • getIndexableActionableDynamicQuery

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

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

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

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getMBThreads(int start, int end)
      Returns a range of all the message boards threads.

      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.MBThreadModelImpl.

      Parameters:
      start - the lower bound of the range of message boards threads
      end - the upper bound of the range of message boards threads (not inclusive)
      Returns:
      the range of message boards threads
    • getMBThreadsByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the message boards threads matching the UUID and company.
      Parameters:
      uuid - the UUID of the message boards threads
      companyId - the primary key of the company
      Returns:
      the matching message boards threads, or an empty list if no matches were found
    • getMBThreadsByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MBThread> orderByComparator)
      Returns a range of message boards threads matching the UUID and company.
      Parameters:
      uuid - the UUID of the message boards threads
      companyId - the primary key of the company
      start - the lower bound of the range of message boards threads
      end - the upper bound of the range of message boards threads (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching message boards threads, or an empty list if no matches were found
    • getMBThreadsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getMBThreadsCount()
      Returns the number of message boards threads.
      Returns:
      the number of message boards threads
    • getMessageCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getMessageCount(long threadId, 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
    • getPriorityThreads

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getPriorityThreads(long categoryId, double priority) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPriorityThreads

      @Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getPriorityThreads(long categoryId, double priority, boolean inherit) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getThread

      @Transactional(propagation=SUPPORTS, readOnly=true) MBThread getThread(long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getThreads

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

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

      @Transactional(propagation=SUPPORTS, readOnly=true) boolean hasAnswerMessage(long threadId)
    • incrementViewCounter

      @Transactional(propagation=SUPPORTS, readOnly=true) void incrementViewCounter(long threadId, int increment)
    • moveDependentsToTrash

      void moveDependentsToTrash(long groupId, long threadId, long trashEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveThread

      MBThread moveThread(long groupId, long categoryId, long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveThreadFromTrash

      MBThread moveThreadFromTrash(long userId, long categoryId, long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveThreadsToTrash

      void moveThreadsToTrash(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveThreadToTrash

      MBThread moveThreadToTrash(long userId, long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveThreadToTrash

      MBThread moveThreadToTrash(long userId, MBThread thread) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restoreDependentsFromTrash

      void restoreDependentsFromTrash(long groupId, long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restoreThreadFromTrash

      void restoreThreadFromTrash(long userId, long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.Hits search(long groupId, long userId, long creatorUserId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.Hits search(long groupId, long userId, long creatorUserId, long startDate, long endDate, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • splitThread

      MBThread splitThread(long userId, long messageId, String subject, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateLastPostDate

      @BufferedIncrement(configuration="MBThread", incrementClass=com.liferay.portal.kernel.increment.DateOverrideIncrement.class) @Retry(acceptor=com.liferay.portal.kernel.service.ExceptionRetryAcceptor.class, properties=@Property(name="EXCEPTION_NAME",value="org.hibernate.StaleObjectStateException")) void updateLastPostDate(long threadId, Date lastPostDate)
    • updateMBThread

      @Indexable(type=REINDEX) MBThread updateMBThread(MBThread mbThread)
      Updates the message boards thread in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect MBThreadLocalServiceImpl 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:
      mbThread - the message boards thread
      Returns:
      the message boards thread that was updated
    • updateQuestion

      void updateQuestion(long threadId, boolean question) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      MBThread updateStatus(long userId, long threadId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCTPersistence

      @Transactional(enabled=false) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBThread> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBThread>
    • getModelClass

      @Transactional(enabled=false) Class<MBThread> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBThread>
    • 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<MBThread>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBThread>
      Throws:
      E extends Throwable