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

java.lang.Object
  extended bycom.liferay.portlet.messageboards.service.base.MBThreadLocalServiceBaseImpl
      extended bycom.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

Constructor Summary
MBThreadLocalServiceImpl()
           
 
Method Summary
 void deleteThread(long threadId)
           
 void deleteThread(com.liferay.portlet.messageboards.model.MBThread thread)
           
 void deleteThreads(long categoryId)
           
 int getCategoriesThreadsCount(java.util.List categoryIds)
           
 java.util.List getGroupThreads(long groupId, int begin, int end)
           
 java.util.List getGroupThreads(long groupId, long userId, boolean subscribed, int begin, int end)
           
 java.util.List getGroupThreads(long groupId, long userId, int begin, int end)
           
 int getGroupThreadsCount(long groupId)
           
 int getGroupThreadsCount(long groupId, long userId)
           
 int getGroupThreadsCount(long groupId, long userId, boolean subscribed)
           
 com.liferay.portlet.messageboards.model.MBThread getThread(long threadId)
           
 java.util.List getThreads(long categoryId, int begin, int end)
           
 int getThreadsCount(long categoryId)
           
 boolean hasReadThread(long userId, long threadId)
           
 com.liferay.portlet.messageboards.model.MBThread updateThread(long threadId, int viewCount)
           
 
Methods inherited from class com.liferay.portlet.messageboards.service.base.MBThreadLocalServiceBaseImpl
addMBThread, dynamicQuery, dynamicQuery, 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 categoryIds)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupThreads

public java.util.List getGroupThreads(long groupId,
                                      int begin,
                                      int end)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupThreads

public java.util.List getGroupThreads(long groupId,
                                      long userId,
                                      int begin,
                                      int end)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupThreads

public java.util.List getGroupThreads(long groupId,
                                      long userId,
                                      boolean subscribed,
                                      int begin,
                                      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

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 getThreads(long categoryId,
                                 int begin,
                                 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

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