com.liferay.portlet.messageboards.service.http
Class MBThreadServiceHttp
java.lang.Object
com.liferay.portlet.messageboards.service.http.MBThreadServiceHttp
@ProviderType
public class MBThreadServiceHttp
- extends Object
Provides the HTTP utility for the
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.
- See Also:
MBThreadServiceSoap,
HttpPrincipal,
MBThreadServiceUtil- {$generated.description}
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBThreadServiceHttp
public MBThreadServiceHttp()
deleteThread
public static void deleteThread(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long threadId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
getGroupThreads
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
getGroupThreads
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
getGroupThreads
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
getGroupThreads
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
getGroupThreadsCount
public static int getGroupThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId,
Date modifiedDate,
int status)
getGroupThreadsCount
public static int getGroupThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId,
int status)
getGroupThreadsCount
public static int getGroupThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId,
int status,
boolean subscribed)
getGroupThreadsCount
public static int getGroupThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long userId,
int status,
boolean subscribed,
boolean includeAnonymous)
getThreads
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)
getThreadsCount
public static int getThreadsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long categoryId,
int status)
lockThread
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveThread
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveThreadFromTrash
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
moveThreadToTrash
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
restoreThreadFromTrash
public static void restoreThreadFromTrash(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long threadId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
search
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
search
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
splitThread
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
unlockThread
public static void unlockThread(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long threadId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException