Class MBThreadLocalServiceWrapper

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

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

    • MBThreadLocalServiceWrapper

      public MBThreadLocalServiceWrapper()
    • MBThreadLocalServiceWrapper

      public MBThreadLocalServiceWrapper(MBThreadLocalService mbThreadLocalService)
  • Method Details

    • addMBThread

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

      Specified by:
      addMBThread in interface MBThreadLocalService
      Parameters:
      mbThread - the message boards thread
      Returns:
      the message boards thread that was added
    • addThread

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

      public MBThread createMBThread(long threadId)
      Creates a new message boards thread with the primary key. Does not add the message boards thread to the database.
      Specified by:
      createMBThread in interface MBThreadLocalService
      Parameters:
      threadId - the primary key for the new message boards thread
      Returns:
      the new message boards thread
    • createPersistedModel

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

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

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

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

      Specified by:
      deleteMBThread in interface MBThreadLocalService
      Parameters:
      mbThread - the message boards thread
      Returns:
      the message boards thread that was removed
    • 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 MBThreadLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteThread

      public void deleteThread(long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteThread in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteThread

      public void deleteThread(MBThread thread) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteThread in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteThreads

      public void deleteThreads(long groupId, long categoryId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteThreads in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteThreads

      public void deleteThreads(long groupId, long categoryId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteThreads in interface MBThreadLocalService
      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 MBThreadLocalService
      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 MBThreadLocalService
      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 MBThreadLocalService
    • 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 MBThreadLocalService
      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.MBThreadModelImpl.

      Specified by:
      dynamicQuery in interface MBThreadLocalService
      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.MBThreadModelImpl.

      Specified by:
      dynamicQuery in interface MBThreadLocalService
      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 MBThreadLocalService
      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 MBThreadLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchMBThread

      public MBThread fetchMBThread(long threadId)
      Specified by:
      fetchMBThread in interface MBThreadLocalService
    • fetchMBThreadByUuidAndGroupId

      public MBThread fetchMBThreadByUuidAndGroupId(String uuid, long groupId)
      Returns the message boards thread matching the UUID and group.
      Specified by:
      fetchMBThreadByUuidAndGroupId in interface MBThreadLocalService
      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

      public MBThread fetchThread(long threadId)
      Specified by:
      fetchThread in interface MBThreadLocalService
    • getActionableDynamicQuery

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

      public int getCategoryThreadsCount(long groupId, long categoryId, int status)
      Specified by:
      getCategoryThreadsCount in interface MBThreadLocalService
    • getExportActionableDynamicQuery

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

      public List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, boolean includeAnonymous, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
      Specified by:
      getGroupThreads in interface MBThreadLocalService
    • getGroupThreads

      public List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
      Specified by:
      getGroupThreads in interface MBThreadLocalService
    • getGroupThreads

      public List<MBThread> getGroupThreads(long groupId, long userId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
      Specified by:
      getGroupThreads in interface MBThreadLocalService
    • getGroupThreads

      public List<MBThread> getGroupThreads(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
      Specified by:
      getGroupThreads in interface MBThreadLocalService
    • getGroupThreadsCount

      public int getGroupThreadsCount(long groupId, long userId, boolean subscribed, boolean includeAnonymous, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
      Specified by:
      getGroupThreadsCount in interface MBThreadLocalService
    • getGroupThreadsCount

      public int getGroupThreadsCount(long groupId, long userId, boolean subscribed, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
      Specified by:
      getGroupThreadsCount in interface MBThreadLocalService
    • getGroupThreadsCount

      public int getGroupThreadsCount(long groupId, long userId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
      Specified by:
      getGroupThreadsCount in interface MBThreadLocalService
    • getGroupThreadsCount

      public int getGroupThreadsCount(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition)
      Specified by:
      getGroupThreadsCount in interface MBThreadLocalService
    • getIndexableActionableDynamicQuery

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

      public MBThread getMBThread(long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the message boards thread with the primary key.
      Specified by:
      getMBThread in interface MBThreadLocalService
      Parameters:
      threadId - the primary key of the message boards thread
      Returns:
      the message boards thread
      Throws:
      PortalException - if a message boards thread with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getMBThreadByUuidAndGroupId

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

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

      Specified by:
      getMBThreads in interface MBThreadLocalService
      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

      public List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the message boards threads matching the UUID and company.
      Specified by:
      getMBThreadsByUuidAndCompanyId in interface MBThreadLocalService
      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

      public 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.
      Specified by:
      getMBThreadsByUuidAndCompanyId in interface MBThreadLocalService
      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

      public int getMBThreadsCount()
      Returns the number of message boards threads.
      Specified by:
      getMBThreadsCount in interface MBThreadLocalService
      Returns:
      the number of message boards threads
    • getMessageCount

      public int getMessageCount(long threadId, int status)
      Specified by:
      getMessageCount in interface MBThreadLocalService
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface MBThreadLocalService
      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 MBThreadLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getPriorityThreads

      public List<MBThread> getPriorityThreads(long categoryId, double priority) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPriorityThreads in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPriorityThreads

      public List<MBThread> getPriorityThreads(long categoryId, double priority, boolean inherit) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPriorityThreads in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getThread

      public MBThread getThread(long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getThread in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getThreads

      public List<MBThread> getThreads(long groupId, long categoryId, int status, int start, int end)
      Specified by:
      getThreads in interface MBThreadLocalService
    • getThreadsCount

      public int getThreadsCount(long groupId, long categoryId, int status)
      Specified by:
      getThreadsCount in interface MBThreadLocalService
    • hasAnswerMessage

      public boolean hasAnswerMessage(long threadId)
      Specified by:
      hasAnswerMessage in interface MBThreadLocalService
    • incrementViewCounter

      public void incrementViewCounter(long threadId, int increment)
      Specified by:
      incrementViewCounter in interface MBThreadLocalService
    • moveDependentsToTrash

      public void moveDependentsToTrash(long groupId, long threadId, long trashEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveDependentsToTrash in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveThread

      public MBThread moveThread(long groupId, long categoryId, long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveThread in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveThreadFromTrash

      public MBThread moveThreadFromTrash(long userId, long categoryId, long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveThreadFromTrash in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveThreadsToTrash

      public void moveThreadsToTrash(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveThreadsToTrash in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveThreadToTrash

      public MBThread moveThreadToTrash(long userId, long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveThreadToTrash in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveThreadToTrash

      public MBThread moveThreadToTrash(long userId, MBThread thread) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveThreadToTrash in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restoreDependentsFromTrash

      public void restoreDependentsFromTrash(long groupId, long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      restoreDependentsFromTrash in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restoreThreadFromTrash

      public void restoreThreadFromTrash(long userId, long threadId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      restoreThreadFromTrash in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      public 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
      Specified by:
      search in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      public 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
      Specified by:
      search in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • splitThread

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

      public void updateLastPostDate(long threadId, Date lastPostDate)
      Specified by:
      updateLastPostDate in interface MBThreadLocalService
    • updateMBThread

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

      Specified by:
      updateMBThread in interface MBThreadLocalService
      Parameters:
      mbThread - the message boards thread
      Returns:
      the message boards thread that was updated
    • updateQuestion

      public void updateQuestion(long threadId, boolean question) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateQuestion in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public MBThread updateStatus(long userId, long threadId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateStatus in interface MBThreadLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • 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<MBThread> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<MBThread>
      Specified by:
      getCTPersistence in interface MBThreadLocalService
    • getModelClass

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

      public <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>
      Specified by:
      updateWithUnsafeFunction in interface MBThreadLocalService
      Throws:
      E extends Throwable
    • getWrappedService

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

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