com.liferay.portlet.messageboards.service
Class MBThreadLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil

public class MBThreadLocalServiceUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class provides static methods for the com.liferay.portlet.messageboards.service.MBThreadLocalService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

com.liferay.portlet.messageboards.service.MBThreadLocalServiceFactory is responsible for the lookup of the bean.

Author:
Brian Wing Shun Chan
See Also:
MBThreadLocalService, MBThreadLocalServiceFactory

Constructor Summary
MBThreadLocalServiceUtil()
           
 
Method Summary
static MBThread addMBThread(MBThread mbThread)
           
static void deleteMBThread(long threadId)
           
static void deleteMBThread(MBThread mbThread)
           
static void deleteThread(long threadId)
           
static void deleteThread(MBThread thread)
           
static void deleteThreads(long categoryId)
           
static java.util.List<MBThread> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List<MBThread> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static int getCategoriesThreadsCount(java.util.List<java.lang.Long> categoryIds)
           
static java.util.List<MBThread> getGroupThreads(long groupId, int begin, int end)
           
static java.util.List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, int begin, int end)
           
static java.util.List<MBThread> getGroupThreads(long groupId, long userId, int begin, int end)
           
static int getGroupThreadsCount(long groupId)
           
static int getGroupThreadsCount(long groupId, long userId)
           
static int getGroupThreadsCount(long groupId, long userId, boolean subscribed)
           
static MBThread getThread(long threadId)
           
static java.util.List<MBThread> getThreads(long categoryId, int begin, int end)
           
static int getThreadsCount(long categoryId)
           
static boolean hasReadThread(long userId, long threadId)
           
static MBThread moveThread(long categoryId, long threadId)
           
static MBThread splitThread(long messageId, javax.portlet.PortletPreferences prefs, ThemeDisplay themeDisplay)
           
static MBThread updateMBThread(MBThread mbThread)
           
static MBThread updateThread(long threadId, int viewCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBThreadLocalServiceUtil

public MBThreadLocalServiceUtil()
Method Detail

addMBThread

public static MBThread addMBThread(MBThread mbThread)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteMBThread

public static void deleteMBThread(long threadId)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteMBThread

public static void deleteMBThread(MBThread mbThread)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<MBThread> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<MBThread> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                    int begin,
                                                    int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateMBThread

public static MBThread updateMBThread(MBThread mbThread)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteThread

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

deleteThread

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

deleteThreads

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

getCategoriesThreadsCount

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

getGroupThreads

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

getGroupThreads

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

getGroupThreads

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

getGroupThreadsCount

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

getGroupThreadsCount

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

getGroupThreadsCount

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

getThread

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

getThreads

public static java.util.List<MBThread> getThreads(long categoryId,
                                                  int begin,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getThreadsCount

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

hasReadThread

public static 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 static 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 static MBThread splitThread(long messageId,
                                   javax.portlet.PortletPreferences prefs,
                                   ThemeDisplay themeDisplay)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateThread

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