Liferay 7.0-ce-b4

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:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, MBThreadLocalService

public class MBThreadLocalServiceImpl
extends MBThreadLocalServiceBaseImpl


Field Summary
 
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
 
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<MBThread> queryDefinition)
           
 List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, QueryDefinition<MBThread> 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<MBThread> queryDefinition)
           
 List<MBThread> getGroupThreads(long groupId, QueryDefinition<MBThread> 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<MBThread> queryDefinition)
           
 int getGroupThreadsCount(long groupId, long userId, boolean subscribed, QueryDefinition<MBThread> 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<MBThread> queryDefinition)
           
 int getGroupThreadsCount(long groupId, QueryDefinition<MBThread> 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)
           
 void incrementViewCounter(long threadId, int increment)
           
protected  void moveAttachmentsFolders(MBMessage message, long oldAttachmentsFolderId, MBThread oldThread, MBThread newThread, ServiceContext serviceContext)
           
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)
           
 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)
           
 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 userId, long messageId, String subject, ServiceContext serviceContext)
           
 MBThread updateMessageCount(long threadId)
           
 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, 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.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
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
Throws:
PortalException

deleteThread

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

deleteThread

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

deleteThreads

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

deleteThreads

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

fetchThread

public MBThread fetchThread(long threadId)

getCategoryThreadsCount

public int getCategoryThreadsCount(long groupId,
                                   long categoryId,
                                   int status)

getGroupThreads

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


getGroupThreads

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

getGroupThreads

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

getGroupThreads

@Deprecated
public 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)


getGroupThreads

@Deprecated
public 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)


getGroupThreads

@Deprecated
public 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)


getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      QueryDefinition<MBThread> queryDefinition)

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      QueryDefinition<MBThread> queryDefinition)

getGroupThreadsCount

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


getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                boolean subscribed,
                                boolean includeAnonymous,
                                QueryDefinition<MBThread> queryDefinition)

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                boolean subscribed,
                                QueryDefinition<MBThread> queryDefinition)

getGroupThreadsCount

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


getGroupThreadsCount

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


getGroupThreadsCount

@Deprecated
public 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)


getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                QueryDefinition<MBThread> queryDefinition)

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                QueryDefinition<MBThread> queryDefinition)

getNoAssetThreads

public List<MBThread> getNoAssetThreads()

getPriorityThreads

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

getPriorityThreads

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

getThread

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

getThreads

public List<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=NumberIncrement.class)
public void incrementViewCounter(long threadId,
                                                                                                   int increment)
                          throws PortalException
Throws:
PortalException

moveDependentsToTrash

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

moveThread

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

moveThreadFromTrash

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

moveThreadsToTrash

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

moveThreadToTrash

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

moveThreadToTrash

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

restoreDependentsFromTrash

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

restoreDependentsFromTrash

@Deprecated
public void restoreDependentsFromTrash(long groupId,
                                                  long threadId,
                                                  long trashEntryId)
                                throws PortalException
Deprecated. As of 7.0.0, replaced by restoreDependentsFromTrash(long, long)

Throws:
PortalException

restoreThreadFromTrash

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

search

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

search

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

splitThread

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

updateMessageCount

public MBThread updateMessageCount(long threadId)

updateQuestion

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

updateStatus

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

updateThread

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

Throws:
PortalException

moveAttachmentsFolders

protected void moveAttachmentsFolders(MBMessage message,
                                      long oldAttachmentsFolderId,
                                      MBThread oldThread,
                                      MBThread newThread,
                                      ServiceContext serviceContext)
                               throws PortalException
Throws:
PortalException

moveChildrenMessages

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

Liferay 7.0-ce-b4