com.liferay.portlet.messageboards.service.impl
Class MBThreadLocalServiceImpl
java.lang.Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portlet.messageboards.service.base.MBThreadLocalServiceBaseImpl
com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.message.boards.kernel.service.MBThreadLocalService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
public class MBThreadLocalServiceImpl
- extends MBThreadLocalServiceBaseImpl
| Fields inherited from class com.liferay.portlet.messageboards.service.base.MBThreadLocalServiceBaseImpl |
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, counterLocalService, groupFinder, groupLocalService, groupPersistence, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFinder, mbThreadFlagLocalService, mbThreadFlagPersistence, mbThreadLocalService, mbThreadPersistence, persistedModelLocalServiceRegistry, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceLocalService, subscriptionLocalService, subscriptionPersistence, trashEntryLocalService, trashEntryPersistence, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence |
|
Method Summary |
com.liferay.message.boards.kernel.model.MBThread |
addThread(long categoryId,
com.liferay.message.boards.kernel.model.MBMessage message,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
|
void |
deleteThread(long threadId)
|
void |
deleteThread(com.liferay.message.boards.kernel.model.MBThread thread)
|
void |
deleteThreads(long groupId,
long categoryId)
|
void |
deleteThreads(long groupId,
long categoryId,
boolean includeTrashedEntries)
|
com.liferay.message.boards.kernel.model.MBThread |
fetchThread(long threadId)
|
int |
getCategoryThreadsCount(long groupId,
long categoryId,
int status)
|
List<com.liferay.message.boards.kernel.model.MBThread> |
getGroupThreads(long groupId,
long userId,
boolean subscribed,
boolean includeAnonymous,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
|
List<com.liferay.message.boards.kernel.model.MBThread> |
getGroupThreads(long groupId,
long userId,
boolean subscribed,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
|
List<com.liferay.message.boards.kernel.model.MBThread> |
getGroupThreads(long groupId,
long userId,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
|
List<com.liferay.message.boards.kernel.model.MBThread> |
getGroupThreads(long groupId,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
|
int |
getGroupThreadsCount(long groupId,
long userId,
boolean subscribed,
boolean includeAnonymous,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
|
int |
getGroupThreadsCount(long groupId,
long userId,
boolean subscribed,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
|
int |
getGroupThreadsCount(long groupId,
long userId,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
|
int |
getGroupThreadsCount(long groupId,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
|
List<com.liferay.message.boards.kernel.model.MBThread> |
getNoAssetThreads()
|
List<com.liferay.message.boards.kernel.model.MBThread> |
getPriorityThreads(long categoryId,
double priority)
|
List<com.liferay.message.boards.kernel.model.MBThread> |
getPriorityThreads(long categoryId,
double priority,
boolean inherit)
|
com.liferay.message.boards.kernel.model.MBThread |
getThread(long threadId)
|
List<com.liferay.message.boards.kernel.model.MBThread> |
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)
|
protected void |
moveAttachmentsFolders(com.liferay.message.boards.kernel.model.MBMessage message,
long oldAttachmentsFolderId,
com.liferay.message.boards.kernel.model.MBThread oldThread,
com.liferay.message.boards.kernel.model.MBThread newThread,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
|
protected void |
moveChildrenMessages(com.liferay.message.boards.kernel.model.MBMessage parentMessage,
com.liferay.message.boards.kernel.model.MBCategory category,
long oldThreadId)
|
void |
moveDependentsToTrash(long groupId,
long threadId,
long trashEntryId)
|
com.liferay.message.boards.kernel.model.MBThread |
moveThread(long groupId,
long categoryId,
long threadId)
|
com.liferay.message.boards.kernel.model.MBThread |
moveThreadFromTrash(long userId,
long categoryId,
long threadId)
|
void |
moveThreadsToTrash(long groupId,
long userId)
|
com.liferay.message.boards.kernel.model.MBThread |
moveThreadToTrash(long userId,
long threadId)
|
com.liferay.message.boards.kernel.model.MBThread |
moveThreadToTrash(long userId,
com.liferay.message.boards.kernel.model.MBThread thread)
|
void |
restoreDependentsFromTrash(long groupId,
long threadId)
|
void |
restoreDependentsFromTrash(long groupId,
long threadId,
long trashEntryId)
Deprecated. As of 7.0.0, replaced by restoreDependentsFromTrash(long, long) |
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)
|
com.liferay.message.boards.kernel.model.MBThread |
splitThread(long userId,
long messageId,
String subject,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
|
com.liferay.message.boards.kernel.model.MBThread |
updateMessageCount(long threadId)
|
void |
updateQuestion(long threadId,
boolean question)
|
com.liferay.message.boards.kernel.model.MBThread |
updateStatus(long userId,
long threadId,
int status)
|
| Methods inherited from class com.liferay.portlet.messageboards.service.base.MBThreadLocalServiceBaseImpl |
addMBThread, afterPropertiesSet, createMBThread, deleteMBThread, deleteMBThread, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchMBThread, fetchMBThreadByUuidAndGroupId, getActionableDynamicQuery, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getCounterLocalService, getExportActionableDynamicQuery, getGroupFinder, getGroupLocalService, getGroupPersistence, getIndexableActionableDynamicQuery, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThread, getMBThreadByUuidAndGroupId, getMBThreadFinder, getMBThreadFlagLocalService, getMBThreadFlagPersistence, getMBThreadLocalService, getMBThreadPersistence, getMBThreads, getMBThreadsByUuidAndCompanyId, getMBThreadsByUuidAndCompanyId, getMBThreadsCount, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceLocalService, getSubscriptionLocalService, getSubscriptionPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getTrashVersionLocalService, getTrashVersionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, initActionableDynamicQuery, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setCounterLocalService, setGroupFinder, setGroupLocalService, setGroupPersistence, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadFlagLocalService, setMBThreadFlagPersistence, setMBThreadLocalService, setMBThreadPersistence, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceLocalService, setSubscriptionLocalService, setSubscriptionPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashVersionLocalService, setTrashVersionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateMBThread |
| Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl |
getClassLoader, getLocalizationMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBThreadLocalServiceImpl
public MBThreadLocalServiceImpl()
addThread
public com.liferay.message.boards.kernel.model.MBThread addThread(long categoryId,
com.liferay.message.boards.kernel.model.MBMessage message,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
deleteThread
public void deleteThread(long threadId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
deleteThread
@SystemEvent(action=1,
type=1)
public void deleteThread(com.liferay.message.boards.kernel.model.MBThread thread)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
deleteThreads
public void deleteThreads(long groupId,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
deleteThreads
public void deleteThreads(long groupId,
long categoryId,
boolean includeTrashedEntries)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
fetchThread
public com.liferay.message.boards.kernel.model.MBThread fetchThread(long threadId)
getCategoryThreadsCount
public int getCategoryThreadsCount(long groupId,
long categoryId,
int status)
getGroupThreads
public List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads(long groupId,
long userId,
boolean subscribed,
boolean includeAnonymous,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
getGroupThreads
public List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads(long groupId,
long userId,
boolean subscribed,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
getGroupThreads
public List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads(long groupId,
long userId,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
getGroupThreads
public List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads(long groupId,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
getGroupThreadsCount
public int getGroupThreadsCount(long groupId,
long userId,
boolean subscribed,
boolean includeAnonymous,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
getGroupThreadsCount
public int getGroupThreadsCount(long groupId,
long userId,
boolean subscribed,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
getGroupThreadsCount
public int getGroupThreadsCount(long groupId,
long userId,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
getGroupThreadsCount
public int getGroupThreadsCount(long groupId,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.message.boards.kernel.model.MBThread> queryDefinition)
getNoAssetThreads
public List<com.liferay.message.boards.kernel.model.MBThread> getNoAssetThreads()
getPriorityThreads
public List<com.liferay.message.boards.kernel.model.MBThread> getPriorityThreads(long categoryId,
double priority)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getPriorityThreads
public List<com.liferay.message.boards.kernel.model.MBThread> getPriorityThreads(long categoryId,
double priority,
boolean inherit)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getThread
public com.liferay.message.boards.kernel.model.MBThread getThread(long threadId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getThreads
public List<com.liferay.message.boards.kernel.model.MBThread> getThreads(long groupId,
long categoryId,
int status,
int start,
int end)
getThreadsCount
public int getThreadsCount(long groupId,
long categoryId,
int status)
hasAnswerMessage
public boolean hasAnswerMessage(long threadId)
incrementViewCounter
@BufferedIncrement(configuration="MBThread",
incrementClass=com.liferay.portal.kernel.increment.NumberIncrement.class)
public void incrementViewCounter(long threadId,
int increment)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveDependentsToTrash
public void moveDependentsToTrash(long groupId,
long threadId,
long trashEntryId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveThread
public com.liferay.message.boards.kernel.model.MBThread moveThread(long groupId,
long categoryId,
long threadId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveThreadFromTrash
public com.liferay.message.boards.kernel.model.MBThread moveThreadFromTrash(long userId,
long categoryId,
long threadId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveThreadsToTrash
public void moveThreadsToTrash(long groupId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveThreadToTrash
public com.liferay.message.boards.kernel.model.MBThread moveThreadToTrash(long userId,
long threadId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveThreadToTrash
public com.liferay.message.boards.kernel.model.MBThread moveThreadToTrash(long userId,
com.liferay.message.boards.kernel.model.MBThread thread)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
restoreDependentsFromTrash
public void restoreDependentsFromTrash(long groupId,
long threadId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
restoreDependentsFromTrash
@Deprecated
public void restoreDependentsFromTrash(long groupId,
long threadId,
long trashEntryId)
throws com.liferay.portal.kernel.exception.PortalException
- Deprecated. As of 7.0.0, replaced by
restoreDependentsFromTrash(long, long)
- Throws:
com.liferay.portal.kernel.exception.PortalException
restoreThreadFromTrash
public void restoreThreadFromTrash(long userId,
long threadId)
throws com.liferay.portal.kernel.exception.PortalException
- 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
- 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
- Throws:
com.liferay.portal.kernel.exception.PortalException
splitThread
public com.liferay.message.boards.kernel.model.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
updateMessageCount
public com.liferay.message.boards.kernel.model.MBThread updateMessageCount(long threadId)
updateQuestion
public void updateQuestion(long threadId,
boolean question)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
updateStatus
public com.liferay.message.boards.kernel.model.MBThread updateStatus(long userId,
long threadId,
int status)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveAttachmentsFolders
protected void moveAttachmentsFolders(com.liferay.message.boards.kernel.model.MBMessage message,
long oldAttachmentsFolderId,
com.liferay.message.boards.kernel.model.MBThread oldThread,
com.liferay.message.boards.kernel.model.MBThread newThread,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveChildrenMessages
protected void moveChildrenMessages(com.liferay.message.boards.kernel.model.MBMessage parentMessage,
com.liferay.message.boards.kernel.model.MBCategory category,
long oldThreadId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException