Liferay 6.1.2-ce-ga3

com.liferay.portlet.messageboards.service.http
Class MBThreadServiceHttp

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.http.MBThreadServiceHttp

public class MBThreadServiceHttp
extends Object

This class provides a 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
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
MBThreadServiceHttp()
           
 
Method Summary
static void deleteThread(HttpPrincipal httpPrincipal, long threadId)
           
static List<MBThread> getGroupThreads(HttpPrincipal httpPrincipal, long groupId, long userId, Date modifiedDate, int status, int start, int end)
           
static List<MBThread> getGroupThreads(HttpPrincipal httpPrincipal, long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous, int start, int end)
           
static List<MBThread> getGroupThreads(HttpPrincipal httpPrincipal, long groupId, long userId, int status, boolean subscribed, int start, int end)
           
static List<MBThread> getGroupThreads(HttpPrincipal httpPrincipal, long groupId, long userId, int status, int start, int end)
           
static int getGroupThreadsCount(HttpPrincipal httpPrincipal, long groupId, long userId, Date modifiedDate, int status)
           
static int getGroupThreadsCount(HttpPrincipal httpPrincipal, long groupId, long userId, int status)
           
static int getGroupThreadsCount(HttpPrincipal httpPrincipal, long groupId, long userId, int status, boolean subscribed)
           
static int getGroupThreadsCount(HttpPrincipal httpPrincipal, long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous)
           
static List<MBThread> getThreads(HttpPrincipal httpPrincipal, long groupId, long categoryId, int status, int start, int end)
           
static int getThreadsCount(HttpPrincipal httpPrincipal, long groupId, long categoryId, int status)
           
static Lock lockThread(HttpPrincipal httpPrincipal, long threadId)
           
static MBThread moveThread(HttpPrincipal httpPrincipal, long categoryId, long threadId)
           
static MBThread splitThread(HttpPrincipal httpPrincipal, long messageId, String subject, ServiceContext serviceContext)
           
static void unlockThread(HttpPrincipal httpPrincipal, long threadId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBThreadServiceHttp

public MBThreadServiceHttp()
Method Detail

deleteThread

public static void deleteThread(HttpPrincipal httpPrincipal,
                                long threadId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getGroupThreads

public static List<MBThread> getGroupThreads(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             long userId,
                                             Date modifiedDate,
                                             int status,
                                             int start,
                                             int end)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getGroupThreads

public static List<MBThread> getGroupThreads(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             long userId,
                                             int status,
                                             boolean subscribed,
                                             boolean includeAnonymous,
                                             int start,
                                             int end)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getGroupThreads

public static List<MBThread> getGroupThreads(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             long userId,
                                             int status,
                                             boolean subscribed,
                                             int start,
                                             int end)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getGroupThreads

public static List<MBThread> getGroupThreads(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             long userId,
                                             int status,
                                             int start,
                                             int end)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getGroupThreadsCount

public static int getGroupThreadsCount(HttpPrincipal httpPrincipal,
                                       long groupId,
                                       long userId,
                                       Date modifiedDate,
                                       int status)
                                throws SystemException
Throws:
SystemException

getGroupThreadsCount

public static int getGroupThreadsCount(HttpPrincipal httpPrincipal,
                                       long groupId,
                                       long userId,
                                       int status)
                                throws SystemException
Throws:
SystemException

getGroupThreadsCount

public static int getGroupThreadsCount(HttpPrincipal httpPrincipal,
                                       long groupId,
                                       long userId,
                                       int status,
                                       boolean subscribed)
                                throws SystemException
Throws:
SystemException

getGroupThreadsCount

public static int getGroupThreadsCount(HttpPrincipal httpPrincipal,
                                       long groupId,
                                       long userId,
                                       int status,
                                       boolean subscribed,
                                       boolean includeAnonymous)
                                throws SystemException
Throws:
SystemException

getThreads

public static List<MBThread> getThreads(HttpPrincipal httpPrincipal,
                                        long groupId,
                                        long categoryId,
                                        int status,
                                        int start,
                                        int end)
                                 throws SystemException
Throws:
SystemException

getThreadsCount

public static int getThreadsCount(HttpPrincipal httpPrincipal,
                                  long groupId,
                                  long categoryId,
                                  int status)
                           throws SystemException
Throws:
SystemException

lockThread

public static Lock lockThread(HttpPrincipal httpPrincipal,
                              long threadId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

moveThread

public static MBThread moveThread(HttpPrincipal httpPrincipal,
                                  long categoryId,
                                  long threadId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

splitThread

public static MBThread splitThread(HttpPrincipal httpPrincipal,
                                   long messageId,
                                   String subject,
                                   ServiceContext serviceContext)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

unlockThread

public static void unlockThread(HttpPrincipal httpPrincipal,
                                long threadId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

Liferay 6.1.2-ce-ga3