|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil
public class MBThreadLocalServiceUtil
The utility for the message boards thread local service. This utility wraps MBThreadLocalServiceImpl
and is the primary access point for service operations in application layer code running on the local server.
Never modify this class directly. Add custom service methods to MBThreadLocalServiceImpl
and rerun ServiceBuilder to regenerate this class.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
MBThreadLocalService
,
MBThreadLocalServiceBaseImpl
,
MBThreadLocalServiceImpl
Constructor Summary | |
---|---|
MBThreadLocalServiceUtil()
|
Method Summary | |
---|---|
static MBThread |
addMBThread(MBThread mbThread)
Adds the message boards thread to the database. |
static MBThread |
createMBThread(long threadId)
Creates a new message boards thread with the primary key. |
static void |
deleteMBThread(long threadId)
Deletes the message boards thread with the primary key from the database. |
static void |
deleteMBThread(MBThread mbThread)
Deletes the message boards thread from the database. |
static void |
deleteThread(long threadId)
|
static void |
deleteThread(MBThread thread)
|
static void |
deleteThreads(long groupId,
long categoryId)
|
static List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Counts the number of rows that match the dynamic query. |
static int |
getCategoryThreadsCount(long groupId,
long categoryId,
int status)
|
static List<MBThread> |
getGroupThreads(long groupId,
int status,
int start,
int end)
|
static List<MBThread> |
getGroupThreads(long groupId,
long userId,
int status,
boolean subscribed,
boolean includeAnonymous,
int start,
int end)
|
static List<MBThread> |
getGroupThreads(long groupId,
long userId,
int status,
boolean subscribed,
int start,
int end)
|
static List<MBThread> |
getGroupThreads(long groupId,
long userId,
int status,
int start,
int end)
|
static int |
getGroupThreadsCount(long groupId,
int status)
|
static int |
getGroupThreadsCount(long groupId,
long userId,
int status)
|
static int |
getGroupThreadsCount(long groupId,
long userId,
int status,
boolean subscribed)
|
static int |
getGroupThreadsCount(long groupId,
long userId,
int status,
boolean subscribed,
boolean includeAnonymous)
|
static MBThread |
getMBThread(long threadId)
Gets the message boards thread with the primary key. |
static List<MBThread> |
getMBThreads(int start,
int end)
Gets a range of all the message boards threads. |
static int |
getMBThreadsCount()
Gets the number of message boards threads. |
static List<MBThread> |
getPriorityThreads(long categoryId,
double priority)
|
static List<MBThread> |
getPriorityThreads(long categoryId,
double priority,
boolean inherit)
|
static MBThreadLocalService |
getService()
|
static MBThread |
getThread(long threadId)
|
static List<MBThread> |
getThreads(long groupId,
long categoryId,
int status,
int start,
int end)
|
static int |
getThreadsCount(long groupId,
long categoryId,
int status)
|
static MBThread |
moveThread(long groupId,
long categoryId,
long threadId)
|
void |
setService(MBThreadLocalService service)
|
static MBThread |
splitThread(long messageId,
ServiceContext serviceContext)
|
static MBThread |
updateMBThread(MBThread mbThread)
Updates the message boards thread in the database. |
static MBThread |
updateMBThread(MBThread mbThread,
boolean merge)
Updates the message boards thread in the database. |
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 |
---|
public MBThreadLocalServiceUtil()
Method Detail |
---|
public static MBThread addMBThread(MBThread mbThread) throws SystemException
mbThread
- the message boards thread to add
SystemException
- if a system exception occurredpublic static MBThread createMBThread(long threadId)
threadId
- the primary key for the new message boards thread
public static void deleteMBThread(long threadId) throws PortalException, SystemException
threadId
- the primary key of the message boards thread to delete
PortalException
- if a message boards thread with the primary key could not be found
SystemException
- if a system exception occurredpublic static void deleteMBThread(MBThread mbThread) throws SystemException
mbThread
- the message boards thread to delete
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static MBThread getMBThread(long threadId) throws PortalException, SystemException
threadId
- the primary key of the message boards thread to get
PortalException
- if a message boards thread with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<MBThread> getMBThreads(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
start
- the lower bound of the range of message boards threads to returnend
- the upper bound of the range of message boards threads to return (not inclusive)
SystemException
- if a system exception occurredpublic static int getMBThreadsCount() throws SystemException
SystemException
- if a system exception occurredpublic static MBThread updateMBThread(MBThread mbThread) throws SystemException
mbThread
- the message boards thread to update
SystemException
- if a system exception occurredpublic static MBThread updateMBThread(MBThread mbThread, boolean merge) throws SystemException
mbThread
- the message boards thread to updatemerge
- whether to merge the message boards thread with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredpublic static void deleteThread(long threadId) throws PortalException, SystemException
PortalException
SystemException
public static void deleteThread(MBThread thread) throws PortalException, SystemException
PortalException
SystemException
public static void deleteThreads(long groupId, long categoryId) throws PortalException, SystemException
PortalException
SystemException
public static int getCategoryThreadsCount(long groupId, long categoryId, int status) throws SystemException
SystemException
public static List<MBThread> getGroupThreads(long groupId, int status, int start, int end) throws SystemException
SystemException
public static List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous, int start, int end) throws PortalException, SystemException
PortalException
SystemException
public static List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, int start, int end) throws PortalException, SystemException
PortalException
SystemException
public static List<MBThread> getGroupThreads(long groupId, long userId, int status, int start, int end) throws PortalException, SystemException
PortalException
SystemException
public static int getGroupThreadsCount(long groupId, int status) throws SystemException
SystemException
public static int getGroupThreadsCount(long groupId, long userId, int status) throws SystemException
SystemException
public static int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed) throws SystemException
SystemException
public static int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous) throws SystemException
SystemException
public static List<MBThread> getPriorityThreads(long categoryId, double priority) throws PortalException, SystemException
PortalException
SystemException
public static List<MBThread> getPriorityThreads(long categoryId, double priority, boolean inherit) throws PortalException, SystemException
PortalException
SystemException
public static MBThread getThread(long threadId) throws PortalException, SystemException
PortalException
SystemException
public static List<MBThread> getThreads(long groupId, long categoryId, int status, int start, int end) throws SystemException
SystemException
public static int getThreadsCount(long groupId, long categoryId, int status) throws SystemException
SystemException
public static MBThread moveThread(long groupId, long categoryId, long threadId) throws PortalException, SystemException
PortalException
SystemException
public static MBThread splitThread(long messageId, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static MBThread updateThread(long threadId, int viewCount) throws PortalException, SystemException
PortalException
SystemException
public static MBThreadLocalService getService()
public void setService(MBThreadLocalService service)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |