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

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.base.MBThreadLocalServiceBaseImpl
      extended by com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.messageboards.service.MBThreadLocalService

public class MBThreadLocalServiceImpl
extends MBThreadLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portlet.messageboards.service.base.MBThreadLocalServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, counterLocalService, counterService, dlLocalService, dlService, lockLocalService, lockPersistence, mbBanLocalService, mbBanPersistence, mbBanService, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbCategoryService, mbDiscussionLocalService, mbDiscussionPersistence, mbMailingListLocalService, mbMailingListPersistence, mbMessageFinder, mbMessageFlagLocalService, mbMessageFlagPersistence, mbMessageFlagService, mbMessageLocalService, mbMessagePersistence, mbMessageService, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFinder, mbThreadLocalService, mbThreadPersistence, mbThreadService, ratingsStatsLocalService, ratingsStatsPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
MBThreadLocalServiceImpl()
           
 
Method Summary
protected  com.liferay.portlet.messageboards.model.MBThread addThread(long categoryId, com.liferay.portlet.messageboards.model.MBMessage message)
           
 void deleteThread(long threadId)
           
 void deleteThread(com.liferay.portlet.messageboards.model.MBThread thread)
           
 void deleteThreads(long groupId, long categoryId)
           
 int getCategoryThreadsCount(long groupId, long categoryId, int status)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(long groupId, int status, int start, int end)
           
 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, 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)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(long categoryId, double priority)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(long categoryId, double priority, boolean inherit)
           
 com.liferay.portlet.messageboards.model.MBThread getThread(long threadId)
           
 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)
           
protected  void moveAttachmentsFromOldThread(com.liferay.portlet.messageboards.model.MBMessage message, java.lang.String oldAttachmentsDir)
           
protected  int moveChildrenMessages(com.liferay.portlet.messageboards.model.MBMessage parentMessage, com.liferay.portlet.messageboards.model.MBCategory category, long oldThreadId)
           
 com.liferay.portlet.messageboards.model.MBThread moveThread(long groupId, long categoryId, long threadId)
           
 com.liferay.portlet.messageboards.model.MBThread splitThread(long messageId, com.liferay.portal.service.ServiceContext serviceContext)
           
 com.liferay.portlet.messageboards.model.MBThread updateThread(long threadId, int viewCount)
           
 
Methods inherited from class com.liferay.portlet.messageboards.service.base.MBThreadLocalServiceBaseImpl
addMBThread, createMBThread, deleteMBThread, deleteMBThread, dynamicQuery, dynamicQuery, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getCounterLocalService, getCounterService, getDLLocalService, getDLService, getLockLocalService, getLockPersistence, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBCategoryService, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMailingListLocalService, getMBMailingListPersistence, getMBMessageFinder, getMBMessageFlagLocalService, getMBMessageFlagPersistence, getMBMessageFlagService, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThread, getMBThreadFinder, getMBThreadLocalService, getMBThreadPersistence, getMBThreads, getMBThreadsCount, getMBThreadService, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setCounterLocalService, setCounterService, setDLLocalService, setDLService, setLockLocalService, setLockPersistence, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBCategoryService, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMailingListLocalService, setMBMailingListPersistence, setMBMessageFinder, setMBMessageFlagLocalService, setMBMessageFlagPersistence, setMBMessageFlagService, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadLocalService, setMBThreadPersistence, setMBThreadService, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateMBThread, updateMBThread
 
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

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

deleteThread

public void deleteThread(com.liferay.portlet.messageboards.model.MBThread thread)
                  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

deleteThreads

public void deleteThreads(long groupId,
                          long categoryId)
                   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

getCategoryThreadsCount

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

getGroupThreads

public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(long groupId,
                                                                                        int status,
                                                                                        int start,
                                                                                        int end)
                                                                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
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

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,
                                                                                        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

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                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)
                         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

getPriorityThreads

public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(long categoryId,
                                                                                           double priority)
                                                                                    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

getPriorityThreads

public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(long categoryId,
                                                                                           double priority,
                                                                                           boolean inherit)
                                                                                    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

getThread

public com.liferay.portlet.messageboards.model.MBThread getThread(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

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

moveThread

public com.liferay.portlet.messageboards.model.MBThread moveThread(long groupId,
                                                                   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,
                                                                    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

updateThread

public com.liferay.portlet.messageboards.model.MBThread updateThread(long threadId,
                                                                     int viewCount)
                                                              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

addThread

protected com.liferay.portlet.messageboards.model.MBThread addThread(long categoryId,
                                                                     com.liferay.portlet.messageboards.model.MBMessage message)
                                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

moveAttachmentsFromOldThread

protected void moveAttachmentsFromOldThread(com.liferay.portlet.messageboards.model.MBMessage message,
                                            java.lang.String oldAttachmentsDir)
                                     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

moveChildrenMessages

protected int moveChildrenMessages(com.liferay.portlet.messageboards.model.MBMessage parentMessage,
                                   com.liferay.portlet.messageboards.model.MBCategory category,
                                   long oldThreadId)
                            throws com.liferay.portal.kernel.exception.SystemException,
                                   com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalException