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
counterLocalService, counterService, dlLocalService, dlService, mbBanLocalService, mbBanPersistence, mbBanService, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbCategoryService, mbDiscussionLocalService, mbDiscussionPersistence, mbMailingListLocalService, mbMailingListPersistence, mbMessageFinder, mbMessageFlagFinder, mbMessageFlagLocalService, mbMessageFlagPersistence, mbMessageFlagService, mbMessageLocalService, mbMessagePersistence, mbMessageService, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFinder, mbThreadLocalService, mbThreadPersistence, mbThreadService, ratingsStatsLocalService, ratingsStatsPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, tagsAssetFinder, tagsAssetLocalService, tagsAssetPersistence, tagsAssetService, 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 categoryId)
           
 int getCategoriesThreadsCount(java.util.List<java.lang.Long> categoryIds)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(long groupId, int start, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, boolean includeAnonymous, int start, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, int start, int end)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(long groupId, long userId, int start, int end)
           
 int getGroupThreadsCount(long groupId)
           
 int getGroupThreadsCount(long groupId, long userId)
           
 int getGroupThreadsCount(long groupId, long userId, boolean subscribed)
           
 int getGroupThreadsCount(long groupId, long userId, boolean subscribed, boolean includeAnonymous)
           
 com.liferay.portlet.messageboards.model.MBThread getThread(long threadId)
           
 java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(long categoryId, int start, int end)
           
 int getThreadsCount(long categoryId)
           
 boolean hasReadThread(long userId, long threadId)
           
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 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, getCounterLocalService, getCounterService, getDLLocalService, getDLService, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBCategoryService, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMailingListLocalService, getMBMailingListPersistence, getMBMessageFinder, getMBMessageFlagFinder, getMBMessageFlagLocalService, getMBMessageFlagPersistence, getMBMessageFlagService, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThread, getMBThreadFinder, getMBThreadLocalService, getMBThreadPersistence, getMBThreads, getMBThreadsCount, getMBThreadService, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getTagsAssetFinder, getTagsAssetLocalService, getTagsAssetPersistence, getTagsAssetService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, setCounterLocalService, setCounterService, setDLLocalService, setDLService, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBCategoryService, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMailingListLocalService, setMBMailingListPersistence, setMBMessageFinder, setMBMessageFlagFinder, setMBMessageFlagLocalService, setMBMessageFlagPersistence, setMBMessageFlagService, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadLocalService, setMBThreadPersistence, setMBThreadService, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setTagsAssetFinder, setTagsAssetLocalService, setTagsAssetPersistence, setTagsAssetService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, 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.PortalException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteThread

public void deleteThread(com.liferay.portlet.messageboards.model.MBThread thread)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteThreads

public void deleteThreads(long categoryId)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCategoriesThreadsCount

public int getCategoriesThreadsCount(java.util.List<java.lang.Long> categoryIds)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupThreads

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

getGroupThreads

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

getGroupThreads

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

getGroupThreads

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

getGroupThreadsCount

public int getGroupThreadsCount(long groupId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupThreadsCount

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

getGroupThreadsCount

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

getGroupThreadsCount

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

getThread

public com.liferay.portlet.messageboards.model.MBThread getThread(long threadId)
                                                           throws com.liferay.portal.PortalException,
                                                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getThreads

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

getThreadsCount

public int getThreadsCount(long categoryId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasReadThread

public boolean hasReadThread(long userId,
                             long threadId)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

moveThread

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

splitThread

public com.liferay.portlet.messageboards.model.MBThread splitThread(long messageId,
                                                                    com.liferay.portal.service.ServiceContext serviceContext)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateThread

public com.liferay.portlet.messageboards.model.MBThread updateThread(long threadId,
                                                                     int viewCount)
                                                              throws com.liferay.portal.PortalException,
                                                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addThread

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

moveAttachmentsFromOldThread

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