Liferay 7.0-ce-b4

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

java.lang.Object
  extended by 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
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 moveThreadFromTrash(HttpPrincipal httpPrincipal, long categoryId, long threadId)
           
static MBThread moveThreadToTrash(HttpPrincipal httpPrincipal, long threadId)
           
static void restoreThreadFromTrash(HttpPrincipal httpPrincipal, long threadId)
           
static Hits search(HttpPrincipal httpPrincipal, long groupId, long creatorUserId, int status, int start, int end)
           
static Hits search(HttpPrincipal httpPrincipal, long groupId, long creatorUserId, long startDate, long endDate, int status, int start, int end)
           
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
Throws:
PortalException

getGroupThreads

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

getGroupThreads

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

getGroupThreads

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

getGroupThreads

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

getGroupThreadsCount

public static int getGroupThreadsCount(HttpPrincipal httpPrincipal,
                                       long groupId,
                                       long userId,
                                       Date modifiedDate,
                                       int status)

getGroupThreadsCount

public static int getGroupThreadsCount(HttpPrincipal httpPrincipal,
                                       long groupId,
                                       long userId,
                                       int status)

getGroupThreadsCount

public static int getGroupThreadsCount(HttpPrincipal httpPrincipal,
                                       long groupId,
                                       long userId,
                                       int status,
                                       boolean subscribed)

getGroupThreadsCount

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

getThreads

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

getThreadsCount

public static int getThreadsCount(HttpPrincipal httpPrincipal,
                                  long groupId,
                                  long categoryId,
                                  int status)

lockThread

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

moveThread

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

moveThreadFromTrash

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

moveThreadToTrash

public static MBThread moveThreadToTrash(HttpPrincipal httpPrincipal,
                                         long threadId)
                                  throws PortalException
Throws:
PortalException

restoreThreadFromTrash

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

search

public static Hits search(HttpPrincipal httpPrincipal,
                          long groupId,
                          long creatorUserId,
                          int status,
                          int start,
                          int end)
                   throws PortalException
Throws:
PortalException

search

public static Hits search(HttpPrincipal httpPrincipal,
                          long groupId,
                          long creatorUserId,
                          long startDate,
                          long endDate,
                          int status,
                          int start,
                          int end)
                   throws PortalException
Throws:
PortalException

splitThread

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

unlockThread

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

Liferay 7.0-ce-b4