Liferay 6.2.0

com.liferay.portlet.messageboards.service.impl
Class MBThreadLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.messageboards.service.base.MBThreadLocalServiceBaseImpl
          extended by com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, MBThreadLocalService

public class MBThreadLocalServiceImpl
extends MBThreadLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.messageboards.service.base.MBThreadLocalServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, counterLocalService, groupFinder, groupLocalService, groupPersistence, groupService, lockFinder, lockLocalService, lockPersistence, mbBanLocalService, mbBanPersistence, mbBanService, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbCategoryService, mbDiscussionLocalService, mbDiscussionPersistence, mbMailingListLocalService, mbMailingListPersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFinder, mbThreadFlagLocalService, mbThreadFlagPersistence, mbThreadLocalService, mbThreadPersistence, mbThreadService, persistedModelLocalServiceRegistry, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceLocalService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, socialActivityService, subscriptionLocalService, subscriptionPersistence, trashEntryLocalService, trashEntryPersistence, trashEntryService, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence, userService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Fields inherited from class com.liferay.portal.service.BaseLocalServiceImpl
layoutPersistence
 
Constructor Summary
MBThreadLocalServiceImpl()
           
 
Method Summary
 MBThread addThread(long categoryId, MBMessage message, ServiceContext serviceContext)
           
 void deleteThread(long threadId)
           
 void deleteThread(MBThread thread)
           
 void deleteThreads(long groupId, long categoryId)
           
 void deleteThreads(long groupId, long categoryId, boolean includeTrashedEntries)
           
 MBThread fetchThread(long threadId)
           
 int getCategoryThreadsCount(long groupId, long categoryId, int status)
           
 List<MBThread> getGroupThreads(long groupId, int status, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupThreads(long, QueryDefinition)
 List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, boolean includeAnonymous, QueryDefinition queryDefinition)
           
 List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, QueryDefinition queryDefinition)
           
 List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupThreads(long, long, boolean, boolean, QueryDefinition)
 List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupThreads(long, long, boolean, QueryDefinition)
 List<MBThread> getGroupThreads(long groupId, long userId, int status, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupThreads(long, long, QueryDefinition)
 List<MBThread> getGroupThreads(long groupId, long userId, QueryDefinition queryDefinition)
           
 List<MBThread> getGroupThreads(long groupId, QueryDefinition queryDefinition)
           
 int getGroupThreadsCount(long groupId, int status)
          Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, QueryDefinition)
 int getGroupThreadsCount(long groupId, long userId, boolean subscribed, boolean includeAnonymous, QueryDefinition queryDefinition)
           
 int getGroupThreadsCount(long groupId, long userId, boolean subscribed, QueryDefinition queryDefinition)
           
 int getGroupThreadsCount(long groupId, long userId, int status)
          Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, long, QueryDefinition)
 int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed)
          Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, long, boolean, QueryDefinition)
 int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous)
          Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, long, boolean, boolean, QueryDefinition)
 int getGroupThreadsCount(long groupId, long userId, QueryDefinition queryDefinition)
           
 int getGroupThreadsCount(long groupId, QueryDefinition queryDefinition)
           
 List<MBThread> getNoAssetThreads()
           
 List<MBThread> getPriorityThreads(long categoryId, double priority)
           
 List<MBThread> getPriorityThreads(long categoryId, double priority, boolean inherit)
           
 MBThread getThread(long threadId)
           
 List<MBThread> getThreads(long groupId, long categoryId, int status, int start, int end)
           
 int getThreadsCount(long groupId, long categoryId, int status)
           
 boolean hasAnswerMessage(long threadId)
           
 MBThread incrementViewCounter(long threadId, int increment)
           
protected  void moveChildrenMessages(MBMessage parentMessage, MBCategory category, long oldThreadId)
           
 void moveDependentsToTrash(long groupId, long threadId, long trashEntryId)
           
 MBThread moveThread(long groupId, long categoryId, long threadId)
           
 MBThread moveThreadFromTrash(long userId, long categoryId, long threadId)
           
 void moveThreadsToTrash(long groupId, long userId)
           
 MBThread moveThreadToTrash(long userId, long threadId)
           
 MBThread moveThreadToTrash(long userId, MBThread thread)
           
 void restoreDependentsFromTrash(long groupId, long threadId, long trashEntryId)
           
 void restoreThreadFromTrash(long userId, long threadId)
           
 Hits search(long groupId, long userId, long creatorUserId, int status, int start, int end)
           
 Hits search(long groupId, long userId, long creatorUserId, long startDate, long endDate, int status, int start, int end)
           
 MBThread splitThread(long messageId, String subject, ServiceContext serviceContext)
           
 void updateQuestion(long threadId, boolean question)
           
 MBThread updateStatus(long userId, long threadId, int status)
           
 MBThread updateThread(long threadId, int viewCount)
          Deprecated. As of 6.2.0, replaced by incrementViewCounter(long, int)
 
Methods inherited from class com.liferay.portlet.messageboards.service.base.MBThreadLocalServiceBaseImpl
addMBThread, afterPropertiesSet, createMBThread, deleteMBThread, deleteMBThread, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchMBThread, fetchMBThreadByUuidAndCompanyId, fetchMBThreadByUuidAndGroupId, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getBeanIdentifier, getCounterLocalService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getLockFinder, getLockLocalService, getLockPersistence, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBCategoryService, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMailingListLocalService, getMBMailingListPersistence, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThread, getMBThreadByUuidAndCompanyId, getMBThreadByUuidAndGroupId, getMBThreadFinder, getMBThreadFlagLocalService, getMBThreadFlagPersistence, getMBThreadLocalService, getMBThreadPersistence, getMBThreads, getMBThreadsCount, getMBThreadService, getModelClass, getModelClassName, getPersistedModel, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceLocalService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialActivityService, getSubscriptionLocalService, getSubscriptionPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getTrashEntryService, getTrashVersionLocalService, getTrashVersionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setBeanIdentifier, setCounterLocalService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setLockFinder, setLockLocalService, setLockPersistence, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBCategoryService, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMailingListLocalService, setMBMailingListPersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadFlagLocalService, setMBThreadFlagPersistence, setMBThreadLocalService, setMBThreadPersistence, setMBThreadService, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceLocalService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSocialActivityService, setSubscriptionLocalService, setSubscriptionPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashEntryService, setTrashVersionLocalService, setTrashVersionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateMBThread
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLayoutURL, getLayoutURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBThreadLocalServiceImpl

public MBThreadLocalServiceImpl()
Method Detail

addThread

public MBThread addThread(long categoryId,
                          MBMessage message,
                          ServiceContext serviceContext)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

deleteThread

public void deleteThread(long threadId)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

deleteThread

@SystemEvent(action=1,
             send=false,
             type=1)
public void deleteThread(MBThread thread)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

deleteThreads

public void deleteThreads(long groupId,
                          long categoryId)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

deleteThreads

public void deleteThreads(long groupId,
                          long categoryId,
                          boolean includeTrashedEntries)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

fetchThread

public MBThread fetchThread(long threadId)
                     throws SystemException
Throws:
SystemException

getCategoryThreadsCount

public int getCategoryThreadsCount(long groupId,
                                   long categoryId,
                                   int status)
                            throws SystemException
Throws:
SystemException

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      int status,
                                      int start,
                                      int end)
                               throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreads(long, QueryDefinition)

Throws:
SystemException

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      boolean subscribed,
                                      boolean includeAnonymous,
                                      QueryDefinition queryDefinition)
                               throws SystemException
Throws:
SystemException

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      boolean subscribed,
                                      QueryDefinition queryDefinition)
                               throws SystemException
Throws:
SystemException

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      int status,
                                      boolean subscribed,
                                      boolean includeAnonymous,
                                      int start,
                                      int end)
                               throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreads(long, long, boolean, boolean, QueryDefinition)

Throws:
SystemException

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      int status,
                                      boolean subscribed,
                                      int start,
                                      int end)
                               throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreads(long, long, boolean, QueryDefinition)

Throws:
SystemException

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      int status,
                                      int start,
                                      int end)
                               throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreads(long, long, QueryDefinition)

Throws:
SystemException

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      QueryDefinition queryDefinition)
                               throws SystemException
Throws:
SystemException

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      QueryDefinition queryDefinition)
                               throws SystemException
Throws:
SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                int status)
                         throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, QueryDefinition)

Throws:
SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                boolean subscribed,
                                boolean includeAnonymous,
                                QueryDefinition queryDefinition)
                         throws SystemException
Throws:
SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                boolean subscribed,
                                QueryDefinition queryDefinition)
                         throws SystemException
Throws:
SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                int status)
                         throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, long, QueryDefinition)

Throws:
SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                int status,
                                boolean subscribed)
                         throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, long, boolean, QueryDefinition)

Throws:
SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                int status,
                                boolean subscribed,
                                boolean includeAnonymous)
                         throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, long, boolean, boolean, QueryDefinition)

Throws:
SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                QueryDefinition queryDefinition)
                         throws SystemException
Throws:
SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                QueryDefinition queryDefinition)
                         throws SystemException
Throws:
SystemException

getNoAssetThreads

public List<MBThread> getNoAssetThreads()
                                 throws SystemException
Throws:
SystemException

getPriorityThreads

public List<MBThread> getPriorityThreads(long categoryId,
                                         double priority)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getPriorityThreads

public List<MBThread> getPriorityThreads(long categoryId,
                                         double priority,
                                         boolean inherit)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getThread

public MBThread getThread(long threadId)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

getThreads

public List<MBThread> getThreads(long groupId,
                                 long categoryId,
                                 int status,
                                 int start,
                                 int end)
                          throws SystemException
Throws:
SystemException

getThreadsCount

public int getThreadsCount(long groupId,
                           long categoryId,
                           int status)
                    throws SystemException
Throws:
SystemException

hasAnswerMessage

public boolean hasAnswerMessage(long threadId)
                         throws SystemException
Throws:
SystemException

incrementViewCounter

@BufferedIncrement(configuration="MBThread",
                   incrementClass=NumberIncrement.class)
public MBThread incrementViewCounter(long threadId,
                                                                                                       int increment)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

moveDependentsToTrash

public void moveDependentsToTrash(long groupId,
                                  long threadId,
                                  long trashEntryId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

moveThread

public MBThread moveThread(long groupId,
                           long categoryId,
                           long threadId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

moveThreadFromTrash

public MBThread moveThreadFromTrash(long userId,
                                    long categoryId,
                                    long threadId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

moveThreadsToTrash

public void moveThreadsToTrash(long groupId,
                               long userId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

moveThreadToTrash

public MBThread moveThreadToTrash(long userId,
                                  long threadId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

moveThreadToTrash

public MBThread moveThreadToTrash(long userId,
                                  MBThread thread)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

restoreDependentsFromTrash

public void restoreDependentsFromTrash(long groupId,
                                       long threadId,
                                       long trashEntryId)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

restoreThreadFromTrash

public void restoreThreadFromTrash(long userId,
                                   long threadId)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

search

public Hits search(long groupId,
                   long userId,
                   long creatorUserId,
                   int status,
                   int start,
                   int end)
            throws PortalException,
                   SystemException
Throws:
PortalException
SystemException

search

public Hits search(long groupId,
                   long userId,
                   long creatorUserId,
                   long startDate,
                   long endDate,
                   int status,
                   int start,
                   int end)
            throws PortalException,
                   SystemException
Throws:
PortalException
SystemException

splitThread

public MBThread splitThread(long messageId,
                            String subject,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

updateQuestion

public void updateQuestion(long threadId,
                           boolean question)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

updateStatus

public MBThread updateStatus(long userId,
                             long threadId,
                             int status)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

updateThread

public MBThread updateThread(long threadId,
                             int viewCount)
                      throws PortalException,
                             SystemException
Deprecated. As of 6.2.0, replaced by incrementViewCounter(long, int)

Throws:
PortalException
SystemException

moveChildrenMessages

protected void moveChildrenMessages(MBMessage parentMessage,
                                    MBCategory category,
                                    long oldThreadId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

Liferay 6.2.0