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.

Author:
Brian Wing Shun Chan
See Also:
MBThreadLocalService

Constructor Summary
MBThreadLocalServiceUtil()
           
 
Method Summary
static MBThread addMBThread(MBThread mbThread)
           
static MBThread createMBThread(long threadId)
           
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<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static int getCategoriesThreadsCount(java.util.List<java.lang.Long> categoryIds)
           
static java.util.List<MBThread> getGroupThreads(long groupId, int start, int end)
           
static java.util.List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, boolean includeAnonymous, int start, int end)
           
static java.util.List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, int start, int end)
           
static java.util.List<MBThread> getGroupThreads(long groupId, long userId, int start, int end)
           
static int getGroupThreadsCount(long groupId)
           
static int getGroupThreadsCount(long groupId, long userId)
           
static int getGroupThreadsCount(long groupId, long userId, boolean subscribed)
           
static int getGroupThreadsCount(long groupId, long userId, boolean subscribed, boolean includeAnonymous)
           
static MBThread getMBThread(long threadId)
           
static java.util.List<MBThread> getMBThreads(int start, int end)
           
static int getMBThreadsCount()
           
static MBThreadLocalService getService()
           
static MBThread getThread(long threadId)
           
static java.util.List<MBThread> getThreads(long categoryId, int start, int end)
           
static int getThreadsCount(long categoryId)
           
static boolean hasReadThread(long userId, long threadId)
           
static MBThread moveThread(long categoryId, long threadId)
           
 void setService(MBThreadLocalService service)
           
static MBThread splitThread(long messageId, ServiceContext serviceContext)
           
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

createMBThread

public static MBThread createMBThread(long threadId)

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.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getMBThread

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

getMBThreads

public static java.util.List<MBThread> getMBThreads(int start,
                                                    int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getMBThreadsCount

public static int getMBThreadsCount()
                             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 start,
                                                       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 start,
                                                       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 start,
                                                       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,
                                                       boolean includeAnonymous,
                                                       int start,
                                                       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

getGroupThreadsCount

public static int getGroupThreadsCount(long groupId,
                                       long userId,
                                       boolean subscribed,
                                       boolean includeAnonymous)
                                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 start,
                                                  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,
                                   ServiceContext serviceContext)
                            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

getService

public static MBThreadLocalService getService()

setService

public void setService(MBThreadLocalService service)