Liferay 7.0-ce-b4

com.liferay.portlet.messageboards.service
Interface MBThreadService

All Superinterfaces:
BaseService
All Known Implementing Classes:
MBThreadServiceBaseImpl, MBThreadServiceImpl, MBThreadServiceWrapper

@AccessControlled
@JSONWebService
@ProviderType
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface MBThreadService
extends BaseService

Provides the remote service interface for MBThread. 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:
MBThreadServiceUtil, MBThreadServiceBaseImpl, MBThreadServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void deleteThread(long threadId)
           
 List<MBThread> getGroupThreads(long groupId, long userId, Date modifiedDate, int status, int start, int end)
           
 List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous, int start, int end)
           
 List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, int start, int end)
           
 List<MBThread> getGroupThreads(long groupId, long userId, int status, int start, int end)
           
 int getGroupThreadsCount(long groupId, long userId, Date modifiedDate, int status)
           
 int getGroupThreadsCount(long groupId, long userId, int status)
           
 int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed)
           
 int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous)
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 List<MBThread> getThreads(long groupId, long categoryId, int status, int start, int end)
           
 int getThreadsCount(long groupId, long categoryId, int status)
           
 Lock lockThread(long threadId)
           
 MBThread moveThread(long categoryId, long threadId)
           
 MBThread moveThreadFromTrash(long categoryId, long threadId)
           
 MBThread moveThreadToTrash(long threadId)
           
 void restoreThreadFromTrash(long threadId)
           
 Hits search(long groupId, long creatorUserId, int status, int start, int end)
           
 Hits search(long groupId, long creatorUserId, long startDate, long endDate, int status, int start, int end)
           
 MBThread splitThread(long messageId, String subject, ServiceContext serviceContext)
           
 void unlockThread(long threadId)
           
 

Method Detail

deleteThread

void deleteThread(long threadId)
                  throws PortalException
Throws:
PortalException

getGroupThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getGroupThreads(long groupId,
                                                                        long userId,
                                                                        Date modifiedDate,
                                                                        int status,
                                                                        int start,
                                                                        int end)
                               throws PortalException
Throws:
PortalException

getGroupThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getGroupThreads(long groupId,
                                                                        long userId,
                                                                        int status,
                                                                        int start,
                                                                        int end)
                               throws PortalException
Throws:
PortalException

getGroupThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getGroupThreads(long groupId,
                                                                        long userId,
                                                                        int status,
                                                                        boolean subscribed,
                                                                        boolean includeAnonymous,
                                                                        int start,
                                                                        int end)
                               throws PortalException
Throws:
PortalException

getGroupThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getGroupThreads(long groupId,
                                                                        long userId,
                                                                        int status,
                                                                        boolean subscribed,
                                                                        int start,
                                                                        int end)
                               throws PortalException
Throws:
PortalException

getGroupThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupThreadsCount(long groupId,
                                                                  long userId,
                                                                  Date modifiedDate,
                                                                  int status)

getGroupThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupThreadsCount(long groupId,
                                                                  long userId,
                                                                  int status)

getGroupThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupThreadsCount(long groupId,
                                                                  long userId,
                                                                  int status,
                                                                  boolean subscribed)

getGroupThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupThreadsCount(long groupId,
                                                                  long userId,
                                                                  int status,
                                                                  boolean subscribed,
                                                                  boolean includeAnonymous)

getOSGiServiceIdentifier

String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Returns:
the OSGi service identifier

getThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getThreads(long groupId,
                                                                   long categoryId,
                                                                   int status,
                                                                   int start,
                                                                   int end)

getThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getThreadsCount(long groupId,
                                                             long categoryId,
                                                             int status)

lockThread

Lock lockThread(long threadId)
                throws PortalException
Throws:
PortalException

moveThread

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

moveThreadFromTrash

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

moveThreadToTrash

MBThread moveThreadToTrash(long threadId)
                           throws PortalException
Throws:
PortalException

restoreThreadFromTrash

void restoreThreadFromTrash(long threadId)
                            throws PortalException
Throws:
PortalException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Hits search(long groupId,
                                                     long creatorUserId,
                                                     long startDate,
                                                     long endDate,
                                                     int status,
                                                     int start,
                                                     int end)
            throws PortalException
Throws:
PortalException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Hits search(long groupId,
                                                     long creatorUserId,
                                                     int status,
                                                     int start,
                                                     int end)
            throws PortalException
Throws:
PortalException

splitThread

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

unlockThread

void unlockThread(long threadId)
                  throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4