@ProviderType
public class MBThreadServiceHttp
extends Object
MBThreadServiceUtil
service utility. The
static methods of this class calls the same methods of the service utility.
However, the signatures are different because it requires an additional
HttpPrincipal
parameter.
The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.
Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.
The HTTP utility is only generated for remote services.
MBThreadServiceSoap
,
HttpPrincipal
,
MBThreadServiceUtil
Constructor and Description |
---|
MBThreadServiceHttp() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteThread(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long threadId) |
static List<com.liferay.message.boards.kernel.model.MBThread> |
getGroupThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId,
Date modifiedDate,
int status,
int start,
int end) |
static List<com.liferay.message.boards.kernel.model.MBThread> |
getGroupThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId,
int status,
boolean subscribed,
boolean includeAnonymous,
int start,
int end) |
static List<com.liferay.message.boards.kernel.model.MBThread> |
getGroupThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId,
int status,
boolean subscribed,
int start,
int end) |
static List<com.liferay.message.boards.kernel.model.MBThread> |
getGroupThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId,
int status,
int start,
int end) |
static int |
getGroupThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId,
Date modifiedDate,
int status) |
static int |
getGroupThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId,
int status) |
static int |
getGroupThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId,
int status,
boolean subscribed) |
static int |
getGroupThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId,
int status,
boolean subscribed,
boolean includeAnonymous) |
static List<com.liferay.message.boards.kernel.model.MBThread> |
getThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status,
int start,
int end) |
static int |
getThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status) |
static com.liferay.portal.kernel.lock.Lock |
lockThread(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long threadId) |
static com.liferay.message.boards.kernel.model.MBThread |
moveThread(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId,
long threadId) |
static com.liferay.message.boards.kernel.model.MBThread |
moveThreadFromTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long categoryId,
long threadId) |
static com.liferay.message.boards.kernel.model.MBThread |
moveThreadToTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long threadId) |
static void |
restoreThreadFromTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long threadId) |
static com.liferay.portal.kernel.search.Hits |
search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long creatorUserId,
int status,
int start,
int end) |
static com.liferay.portal.kernel.search.Hits |
search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long creatorUserId,
long startDate,
long endDate,
int status,
int start,
int end) |
static com.liferay.message.boards.kernel.model.MBThread |
splitThread(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long messageId,
String subject,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
unlockThread(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long threadId) |
public static void deleteThread(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long threadId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, Date modifiedDate, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, int status, boolean subscribed, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getGroupThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, Date modifiedDate, int status)
public static int getGroupThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, int status)
public static int getGroupThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, int status, boolean subscribed)
public static int getGroupThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous)
public static List<com.liferay.message.boards.kernel.model.MBThread> getThreads(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId, int status, int start, int end)
public static int getThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long categoryId, int status)
public static com.liferay.portal.kernel.lock.Lock lockThread(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long threadId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.message.boards.kernel.model.MBThread moveThread(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long categoryId, long threadId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.message.boards.kernel.model.MBThread moveThreadFromTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long categoryId, long threadId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.message.boards.kernel.model.MBThread moveThreadToTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long threadId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void restoreThreadFromTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long threadId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long creatorUserId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long creatorUserId, long startDate, long endDate, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.message.boards.kernel.model.MBThread splitThread(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long messageId, String subject, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void unlockThread(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long threadId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException