com.liferay.portlet.messageboards.service
Class MBThreadLocalServiceUtil
java.lang.Object
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
Method Summary |
static MBThread |
addMBThread(MBThread model)
|
static void |
deleteThread(long threadId)
|
static void |
deleteThread(MBThread thread)
|
static void |
deleteThreads(long categoryId)
|
static java.util.List |
dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
|
static java.util.List |
dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
|
static int |
getCategoriesThreadsCount(java.util.List categoryIds)
|
static java.util.List |
getGroupThreads(long groupId,
int begin,
int end)
|
static java.util.List |
getGroupThreads(long groupId,
long userId,
boolean subscribed,
int begin,
int end)
|
static java.util.List |
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 |
getThreads(long categoryId,
int begin,
int end)
|
static int |
getThreadsCount(long categoryId)
|
static boolean |
hasReadThread(long userId,
long threadId)
|
static MBThread |
updateMBThread(MBThread model)
|
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 |
MBThreadLocalServiceUtil
public MBThreadLocalServiceUtil()
addMBThread
public static MBThread addMBThread(MBThread model)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List 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 model)
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 categoryIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupThreads
public static java.util.List getGroupThreads(long groupId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupThreads
public static java.util.List 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 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 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
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