Class 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>
MBThreadLocalService
.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMBThread
(MBThread mbThread) Adds the message boards thread to the database.addThread
(long categoryId, MBMessage message, com.liferay.portal.kernel.service.ServiceContext serviceContext) createMBThread
(long threadId) Creates a new message boards thread with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) deleteMBThread
(long threadId) Deletes the message boards thread with the primary key from the database.deleteMBThread
(MBThread mbThread) Deletes the message boards thread from the database.com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) void
deleteThread
(long threadId) void
deleteThread
(MBThread thread) void
deleteThreads
(long groupId, long categoryId) void
deleteThreads
(long groupId, long categoryId, boolean includeTrashedEntries) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery
<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<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.<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.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.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.fetchMBThread
(long threadId) fetchMBThreadByUuidAndGroupId
(String uuid, long groupId) Returns the message boards thread matching the UUID and group.fetchThread
(long threadId) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
com.liferay.portal.kernel.service.persistence.BasePersistence<?>
int
getCategoryThreadsCount
(long groupId, long categoryId, int status) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBThread>
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) getGroupThreads
(long groupId, long userId, boolean subscribed, boolean includeAnonymous, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition) getGroupThreads
(long groupId, long userId, boolean subscribed, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition) getGroupThreads
(long groupId, long userId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition) getGroupThreads
(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition) int
getGroupThreadsCount
(long groupId, long userId, boolean subscribed, boolean includeAnonymous, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition) int
getGroupThreadsCount
(long groupId, long userId, boolean subscribed, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition) int
getGroupThreadsCount
(long groupId, long userId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition) int
getGroupThreadsCount
(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
getMBThread
(long threadId) Returns the message boards thread with the primary key.getMBThreadByUuidAndGroupId
(String uuid, long groupId) Returns the message boards thread matching the UUID and group.getMBThreads
(int start, int end) Returns a range of all the message boards threads.getMBThreadsByUuidAndCompanyId
(String uuid, long companyId) Returns all the message boards threads matching the UUID and company.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.int
Returns the number of message boards threads.int
getMessageCount
(long threadId, int status) Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) getPriorityThreads
(long categoryId, double priority) getPriorityThreads
(long categoryId, double priority, boolean inherit) getThread
(long threadId) getThreads
(long groupId, long categoryId, int status, int start, int end) int
getThreadsCount
(long groupId, long categoryId, int status) boolean
hasAnswerMessage
(long threadId) void
incrementViewCounter
(long threadId, int increment) void
moveDependentsToTrash
(long groupId, long threadId, long trashEntryId) moveThread
(long groupId, long categoryId, long threadId) moveThreadFromTrash
(long userId, long categoryId, long threadId) void
moveThreadsToTrash
(long groupId, long userId) moveThreadToTrash
(long userId, long threadId) moveThreadToTrash
(long userId, MBThread thread) void
restoreDependentsFromTrash
(long groupId, long threadId) void
restoreThreadFromTrash
(long userId, long threadId) com.liferay.portal.kernel.search.Hits
search
(long groupId, long userId, long creatorUserId, int status, int start, int end) com.liferay.portal.kernel.search.Hits
search
(long groupId, long userId, long creatorUserId, long startDate, long endDate, int status, int start, int end) void
setWrappedService
(MBThreadLocalService mbThreadLocalService) splitThread
(long userId, long messageId, String subject, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
updateLastPostDate
(long threadId, Date lastPostDate) updateMBThread
(MBThread mbThread) Updates the message boards thread in the database or adds it if it does not yet exist.void
updateQuestion
(long threadId, boolean question) updateStatus
(long userId, long threadId, int status) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBThread>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
MBThreadLocalServiceWrapper
public MBThreadLocalServiceWrapper() -
MBThreadLocalServiceWrapper
-
-
Method Details
-
addMBThread
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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
createMBThread
Creates a new message boards thread with the primary key. Does not add the message boards thread to the database.- Specified by:
createMBThread
in interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- Specified by:
createPersistedModel
in interfacecom.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 interfaceMBThreadLocalService
- 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 foundcom.liferay.portal.kernel.exception.PortalException
-
deleteMBThread
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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- Specified by:
deletePersistedModel
in interfacecom.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 interfaceMBThreadLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteThread
public void deleteThread(MBThread thread) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteThread
in interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceMBThreadLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceMBThreadLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfaceMBThreadLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceMBThreadLocalService
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.message.boards.model.impl.MBThreadModelImpl
.- Specified by:
dynamicQuery
in interfaceMBThreadLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.message.boards.model.impl.MBThreadModelImpl
.- Specified by:
dynamicQuery
in interfaceMBThreadLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchMBThread
- Specified by:
fetchMBThread
in interfaceMBThreadLocalService
-
fetchMBThreadByUuidAndGroupId
Returns the message boards thread matching the UUID and group.- Specified by:
fetchMBThreadByUuidAndGroupId
in interfaceMBThreadLocalService
- Parameters:
uuid
- the message boards thread's UUIDgroupId
- 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
- Specified by:
fetchThread
in interfaceMBThreadLocalService
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQuery
in interfaceMBThreadLocalService
-
getCategoryThreadsCount
public int getCategoryThreadsCount(long groupId, long categoryId, int status) - Specified by:
getCategoryThreadsCount
in interfaceMBThreadLocalService
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceMBThreadLocalService
-
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 interfaceMBThreadLocalService
-
getGroupThreads
public List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition) - Specified by:
getGroupThreads
in interfaceMBThreadLocalService
-
getGroupThreads
public List<MBThread> getGroupThreads(long groupId, long userId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition) - Specified by:
getGroupThreads
in interfaceMBThreadLocalService
-
getGroupThreads
public List<MBThread> getGroupThreads(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition) - Specified by:
getGroupThreads
in interfaceMBThreadLocalService
-
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 interfaceMBThreadLocalService
-
getGroupThreadsCount
public int getGroupThreadsCount(long groupId, long userId, boolean subscribed, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition) - Specified by:
getGroupThreadsCount
in interfaceMBThreadLocalService
-
getGroupThreadsCount
public int getGroupThreadsCount(long groupId, long userId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition) - Specified by:
getGroupThreadsCount
in interfaceMBThreadLocalService
-
getGroupThreadsCount
public int getGroupThreadsCount(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<MBThread> queryDefinition) - Specified by:
getGroupThreadsCount
in interfaceMBThreadLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in interfaceMBThreadLocalService
-
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 interfaceMBThreadLocalService
- 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 foundcom.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 interfaceMBThreadLocalService
- Parameters:
uuid
- the message boards thread's UUIDgroupId
- the primary key of the group- Returns:
- the matching message boards thread
- Throws:
PortalException
- if a matching message boards thread could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getMBThreads
Returns a range of all the message boards threads.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.message.boards.model.impl.MBThreadModelImpl
.- Specified by:
getMBThreads
in interfaceMBThreadLocalService
- Parameters:
start
- the lower bound of the range of message boards threadsend
- the upper bound of the range of message boards threads (not inclusive)- Returns:
- the range of message boards threads
-
getMBThreadsByUuidAndCompanyId
Returns all the message boards threads matching the UUID and company.- Specified by:
getMBThreadsByUuidAndCompanyId
in interfaceMBThreadLocalService
- Parameters:
uuid
- the UUID of the message boards threadscompanyId
- 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 interfaceMBThreadLocalService
- Parameters:
uuid
- the UUID of the message boards threadscompanyId
- the primary key of the companystart
- the lower bound of the range of message boards threadsend
- the upper bound of the range of message boards threads (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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 interfaceMBThreadLocalService
- Returns:
- the number of message boards threads
-
getMessageCount
public int getMessageCount(long threadId, int status) - Specified by:
getMessageCount
in interfaceMBThreadLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- Specified by:
getPersistedModel
in interfacecom.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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getThread
- Specified by:
getThread
in interfaceMBThreadLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getThreads
- Specified by:
getThreads
in interfaceMBThreadLocalService
-
getThreadsCount
public int getThreadsCount(long groupId, long categoryId, int status) - Specified by:
getThreadsCount
in interfaceMBThreadLocalService
-
hasAnswerMessage
public boolean hasAnswerMessage(long threadId) - Specified by:
hasAnswerMessage
in interfaceMBThreadLocalService
-
incrementViewCounter
public void incrementViewCounter(long threadId, int increment) - Specified by:
incrementViewCounter
in interfaceMBThreadLocalService
-
moveDependentsToTrash
public void moveDependentsToTrash(long groupId, long threadId, long trashEntryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveDependentsToTrash
in interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateLastPostDate
- Specified by:
updateLastPostDate
in interfaceMBThreadLocalService
-
updateMBThread
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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- 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 interfaceMBThreadLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistence
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBThread> getCTPersistence()- Specified by:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<MBThread>
- Specified by:
getCTPersistence
in interfaceMBThreadLocalService
-
getModelClass
- Specified by:
getModelClass
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<MBThread>
- Specified by:
getModelClass
in interfaceMBThreadLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<MBThread>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<MBThread>
- Specified by:
updateWithUnsafeFunction
in interfaceMBThreadLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<MBThreadLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<MBThreadLocalService>
-