Liferay 6.1.2-ce-ga3

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, 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, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, userService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
MBThreadLocalServiceImpl()
           
 
Method Summary
 MBThread addThread(long categoryId, MBMessage message)
           
 void deleteThread(long threadId)
           
 void deleteThread(MBThread thread)
           
 void deleteThreads(long groupId, long categoryId)
           
 MBThread fetchThread(long threadId)
           
 int getCategoryThreadsCount(long groupId, long categoryId, int status)
           
 List<MBThread> getGroupThreads(long groupId, int status, int start, int end)
           
 List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous, int start, int end)
           
 List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, int start, int end)
           
 List<MBThread> getGroupThreads(long groupId, long userId, int status, int start, int end)
           
 int getGroupThreadsCount(long groupId, int status)
           
 int getGroupThreadsCount(long groupId, long userId, int status)
           
 int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed)
           
 int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous)
           
 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 moveAttachmentFromOldThread(long companyId, String fileName, String newAttachmentsDir)
           
protected  void moveAttachmentsFromOldThread(MBMessage message, String oldAttachmentsDir)
           
protected  void moveChildrenMessages(MBMessage parentMessage, MBCategory category, long oldThreadId)
           
 MBThread moveThread(long groupId, long categoryId, long threadId)
           
 MBThread splitThread(long messageId, String subject, ServiceContext serviceContext)
           
 void updateQuestion(long threadId, boolean question)
           
 MBThread updateThread(long threadId, int viewCount)
          Deprecated. 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, fetchMBThread, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getBeanIdentifier, getCounterLocalService, getLockFinder, getLockLocalService, getLockPersistence, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBCategoryService, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMailingListLocalService, getMBMailingListPersistence, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThread, getMBThreadFinder, getMBThreadFlagLocalService, getMBThreadFlagPersistence, getMBThreadLocalService, getMBThreadPersistence, getMBThreads, getMBThreadsCount, getMBThreadService, getModelClass, getModelClassName, getPersistedModel, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setBeanIdentifier, setCounterLocalService, 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, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateMBThread, updateMBThread
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader
 
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)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

deleteThread

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

deleteThread

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

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
Throws:
SystemException

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      int status,
                                      boolean subscribed,
                                      boolean includeAnonymous,
                                      int start,
                                      int end)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      int status,
                                      boolean subscribed,
                                      int start,
                                      int end)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      int status,
                                      int start,
                                      int end)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getGroupThreadsCount

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

getGroupThreadsCount

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

getGroupThreadsCount

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

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                int status,
                                boolean subscribed,
                                boolean includeAnonymous)
                         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(incrementClass=NumberIncrement.class)
public MBThread incrementViewCounter(long threadId,
                                                                                          int increment)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

moveThread

public MBThread moveThread(long groupId,
                           long categoryId,
                           long threadId)
                    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

updateThread

public MBThread updateThread(long threadId,
                             int viewCount)
                      throws PortalException,
                             SystemException
Deprecated. incrementViewCounter(long, int)

Throws:
PortalException
SystemException

moveAttachmentFromOldThread

protected void moveAttachmentFromOldThread(long companyId,
                                           String fileName,
                                           String newAttachmentsDir)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

moveAttachmentsFromOldThread

protected void moveAttachmentsFromOldThread(MBMessage message,
                                            String oldAttachmentsDir)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

moveChildrenMessages

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

Liferay 6.1.2-ce-ga3