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

java.lang.Object
  extended by com.liferay.portal.service.base.PrincipalBean
      extended by com.liferay.portlet.messageboards.service.base.MBThreadServiceBaseImpl
          extended by com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.bean.IdentifiableBean, com.liferay.portlet.messageboards.service.MBThreadService

public class MBThreadServiceImpl
extends MBThreadServiceBaseImpl

Author:
Jorge Ferrer, Deepak Gothe, Mika Koivisto, Shuyang Zhou

Field Summary
 
Fields inherited from class com.liferay.portlet.messageboards.service.base.MBThreadServiceBaseImpl
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, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, userFinder, userLocalService, userPersistence, userService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Fields inherited from class com.liferay.portal.service.base.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
MBThreadServiceImpl()
           
 
Method Summary
 void deleteThread(long threadId)
           
protected  java.util.List<com.liferay.portlet.messageboards.model.MBThread> doGetGroupThreads(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous, int start, int end)
           
protected  int doGetGroupThreadsCount(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous, int start, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, int start, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(long groupId, long userId, int status, int start, int end)
           
 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)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(long groupId, long categoryId, int status, int start, int end)
           
 int getThreadsCount(long groupId, long categoryId, int status)
           
 com.liferay.portal.model.Lock lockThread(long threadId)
           
 com.liferay.portlet.messageboards.model.MBThread moveThread(long categoryId, long threadId)
           
 com.liferay.portlet.messageboards.model.MBThread splitThread(long messageId, java.lang.String subject, com.liferay.portal.service.ServiceContext serviceContext)
           
 void unlockThread(long threadId)
           
 
Methods inherited from class com.liferay.portlet.messageboards.service.base.MBThreadServiceBaseImpl
afterPropertiesSet, destroy, 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, getMBThreadFinder, getMBThreadFlagLocalService, getMBThreadFlagPersistence, getMBThreadLocalService, getMBThreadPersistence, getMBThreadService, getModelClass, getModelClassName, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, 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, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence
 
Methods inherited from class com.liferay.portal.service.base.PrincipalBean
getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBThreadServiceImpl

public MBThreadServiceImpl()
Method Detail

deleteThread

public void deleteThread(long threadId)
                  throws com.liferay.portal.kernel.exception.PortalException,
                         com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupThreads

public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(long groupId,
                                                                                        long userId,
                                                                                        int status,
                                                                                        boolean subscribed,
                                                                                        boolean includeAnonymous,
                                                                                        int start,
                                                                                        int end)
                                                                                 throws com.liferay.portal.kernel.exception.PortalException,
                                                                                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupThreads

public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(long groupId,
                                                                                        long userId,
                                                                                        int status,
                                                                                        boolean subscribed,
                                                                                        int start,
                                                                                        int end)
                                                                                 throws com.liferay.portal.kernel.exception.PortalException,
                                                                                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupThreads

public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(long groupId,
                                                                                        long userId,
                                                                                        int status,
                                                                                        int start,
                                                                                        int end)
                                                                                 throws com.liferay.portal.kernel.exception.PortalException,
                                                                                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                int status)
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                int status,
                                boolean subscribed)
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                int status,
                                boolean subscribed,
                                boolean includeAnonymous)
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getThreads

public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(long groupId,
                                                                                   long categoryId,
                                                                                   int status,
                                                                                   int start,
                                                                                   int end)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getThreadsCount

public int getThreadsCount(long groupId,
                           long categoryId,
                           int status)
                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

lockThread

public com.liferay.portal.model.Lock lockThread(long threadId)
                                         throws com.liferay.portal.kernel.exception.PortalException,
                                                com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

moveThread

public com.liferay.portlet.messageboards.model.MBThread moveThread(long categoryId,
                                                                   long threadId)
                                                            throws com.liferay.portal.kernel.exception.PortalException,
                                                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

splitThread

public com.liferay.portlet.messageboards.model.MBThread splitThread(long messageId,
                                                                    java.lang.String subject,
                                                                    com.liferay.portal.service.ServiceContext serviceContext)
                                                             throws com.liferay.portal.kernel.exception.PortalException,
                                                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

unlockThread

public void unlockThread(long threadId)
                  throws com.liferay.portal.kernel.exception.PortalException,
                         com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

doGetGroupThreads

protected java.util.List<com.liferay.portlet.messageboards.model.MBThread> doGetGroupThreads(long groupId,
                                                                                             long userId,
                                                                                             int status,
                                                                                             boolean subscribed,
                                                                                             boolean includeAnonymous,
                                                                                             int start,
                                                                                             int end)
                                                                                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

doGetGroupThreadsCount

protected int doGetGroupThreadsCount(long groupId,
                                     long userId,
                                     int status,
                                     boolean subscribed,
                                     boolean includeAnonymous)
                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException