@ProviderType
public class MBThreadServiceUtil
extends Object
MBThreadServiceImpl
and is the
primary access point for service operations in application layer code running
on a remote server. Methods of this service are expected to have security
checks based on the propagated JAAS credentials because this service can be
accessed remotely.MBThreadService
,
MBThreadServiceBaseImpl
,
MBThreadServiceImpl
Constructor and Description |
---|
MBThreadServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteThread(long threadId) |
static List<MBThread> |
getGroupThreads(long groupId,
long userId,
Date modifiedDate,
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,
long userId,
Date modifiedDate,
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 String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static MBThreadService |
getService() |
static List<MBThread> |
getThreads(long groupId,
long categoryId,
int status,
int start,
int end) |
static int |
getThreadsCount(long groupId,
long categoryId,
int status) |
static Lock |
lockThread(long threadId) |
static MBThread |
moveThread(long categoryId,
long threadId) |
static MBThread |
moveThreadFromTrash(long categoryId,
long threadId) |
static MBThread |
moveThreadToTrash(long threadId) |
static void |
restoreThreadFromTrash(long threadId) |
static Hits |
search(long groupId,
long creatorUserId,
int status,
int start,
int end) |
static Hits |
search(long groupId,
long creatorUserId,
long startDate,
long endDate,
int status,
int start,
int end) |
static MBThread |
splitThread(long messageId,
String subject,
ServiceContext serviceContext) |
static void |
unlockThread(long threadId) |
public static void deleteThread(long threadId) throws PortalException
PortalException
public static List<MBThread> getGroupThreads(long groupId, long userId, Date modifiedDate, int status, int start, int end) throws PortalException
PortalException
public static List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous, int start, int end) throws PortalException
PortalException
public static List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, int start, int end) throws PortalException
PortalException
public static List<MBThread> getGroupThreads(long groupId, long userId, int status, int start, int end) throws PortalException
PortalException
public static int getGroupThreadsCount(long groupId, long userId, Date modifiedDate, int status)
public static int getGroupThreadsCount(long groupId, long userId, int status)
public static int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed)
public static int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous)
public static String getOSGiServiceIdentifier()
public static List<MBThread> getThreads(long groupId, long categoryId, int status, int start, int end)
public static int getThreadsCount(long groupId, long categoryId, int status)
public static Lock lockThread(long threadId) throws PortalException
PortalException
public static MBThread moveThread(long categoryId, long threadId) throws PortalException
PortalException
public static MBThread moveThreadFromTrash(long categoryId, long threadId) throws PortalException
PortalException
public static MBThread moveThreadToTrash(long threadId) throws PortalException
PortalException
public static void restoreThreadFromTrash(long threadId) throws PortalException
PortalException
public static Hits search(long groupId, long creatorUserId, int status, int start, int end) throws PortalException
PortalException
public static Hits search(long groupId, long creatorUserId, long startDate, long endDate, int status, int start, int end) throws PortalException
PortalException
public static MBThread splitThread(long messageId, String subject, ServiceContext serviceContext) throws PortalException
PortalException
public static void unlockThread(long threadId) throws PortalException
PortalException
public static MBThreadService getService()