Liferay 6.2-ce-ga5

com.liferay.portlet.messageboards.service
Class MBThreadServiceUtil

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.MBThreadServiceUtil

@ProviderType
public class MBThreadServiceUtil
extends Object

Provides the remote service utility for MBThread. This utility wraps com.liferay.portlet.messageboards.service.impl.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.

See Also:
MBThreadService, com.liferay.portlet.messageboards.service.base.MBThreadServiceBaseImpl, com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl

Constructor Summary
MBThreadServiceUtil()
           
 
Method Summary
static void deleteThread(long threadId)
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
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 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 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(MBThreadService service)
          Deprecated. As of 6.2.0
static MBThread splitThread(long messageId, String subject, ServiceContext serviceContext)
           
static void unlockThread(long threadId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBThreadServiceUtil

public MBThreadServiceUtil()
Method Detail

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

deleteThread

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

getGroupThreads

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

getGroupThreads

public static List<MBThread> getGroupThreads(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(long groupId,
                                             long userId,
                                             int status,
                                             boolean subscribed,
                                             int start,
                                             int end)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getGroupThreads

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

getGroupThreadsCount

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

getGroupThreadsCount

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

getGroupThreadsCount

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

getGroupThreadsCount

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

getThreads

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

getThreadsCount

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

lockThread

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

moveThread

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

moveThreadFromTrash

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

moveThreadToTrash

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

restoreThreadFromTrash

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

search

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

search

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

splitThread

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

unlockThread

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

getService

public static MBThreadService getService()

setService

public void setService(MBThreadService service)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5