com.liferay.portlet.messageboards.service
Interface MBThreadLocalService

All Known Implementing Classes:
MBThreadLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface MBThreadLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
MBThreadLocalServiceUtil
Generated:

Method Summary
 MBThread addMBThread(MBThread mbThread)
           
 MBThread createMBThread(long threadId)
           
 void deleteMBThread(long threadId)
           
 void deleteMBThread(MBThread mbThread)
           
 void deleteThread(long threadId)
           
 void deleteThread(MBThread thread)
           
 void deleteThreads(long groupId, long categoryId)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 int getCategoryThreadsCount(long groupId, long categoryId, int status)
           
 java.util.List<MBThread> getGroupThreads(long groupId, int status, int start, int end)
           
 java.util.List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous, int start, int end)
           
 java.util.List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, int start, int end)
           
 java.util.List<MBThread> getGroupThreads(long groupId, long userId, int status, int start, int end)
           
 int getGroupThreadsCount(long groupId, 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)
           
 MBThread getMBThread(long threadId)
           
 java.util.List<MBThread> getMBThreads(int start, int end)
           
 int getMBThreadsCount()
           
 java.util.List<MBThread> getPriorityThreads(long categoryId, double priority)
           
 java.util.List<MBThread> getPriorityThreads(long categoryId, double priority, boolean inherit)
           
 MBThread getThread(long threadId)
           
 java.util.List<MBThread> getThreads(long groupId, long categoryId, int status, int start, int end)
           
 int getThreadsCount(long groupId, long categoryId, int status)
           
 MBThread moveThread(long groupId, long categoryId, long threadId)
           
 MBThread splitThread(long messageId, ServiceContext serviceContext)
           
 MBThread updateMBThread(MBThread mbThread)
           
 MBThread updateMBThread(MBThread mbThread, boolean merge)
           
 MBThread updateThread(long threadId, int viewCount)
           
 

Method Detail

addMBThread

MBThread addMBThread(MBThread mbThread)
                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

createMBThread

MBThread createMBThread(long threadId)

deleteMBThread

void deleteMBThread(long threadId)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteMBThread

void deleteMBThread(MBThread mbThread)
                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getMBThread

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBThread getMBThread(long threadId)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getMBThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBThread> getMBThreads(int start,
                                                    int end)
                                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getMBThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getMBThreadsCount()
                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateMBThread

MBThread updateMBThread(MBThread mbThread)
                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateMBThread

MBThread updateMBThread(MBThread mbThread,
                        boolean merge)
                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

deleteThread

void deleteThread(long threadId)
                  throws com.liferay.portal.kernel.exception.PortalException,
                         com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteThread

void deleteThread(MBThread thread)
                  throws com.liferay.portal.kernel.exception.PortalException,
                         com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteThreads

void deleteThreads(long groupId,
                   long categoryId)
                   throws com.liferay.portal.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getCategoryThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoryThreadsCount(long groupId,
                                          long categoryId,
                                          int status)
                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBThread> getGroupThreads(long groupId,
                                                       int status,
                                                       int start,
                                                       int end)
                                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBThread> getGroupThreads(long groupId,
                                                       long userId,
                                                       int status,
                                                       int start,
                                                       int end)
                                         throws com.liferay.portal.kernel.exception.PortalException,
                                                com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBThread> getGroupThreads(long groupId,
                                                       long userId,
                                                       int status,
                                                       boolean subscribed,
                                                       int start,
                                                       int end)
                                         throws com.liferay.portal.kernel.exception.PortalException,
                                                com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBThread> getGroupThreads(long groupId,
                                                       long userId,
                                                       int status,
                                                       boolean subscribed,
                                                       boolean includeAnonymous,
                                                       int start,
                                                       int end)
                                         throws com.liferay.portal.kernel.exception.PortalException,
                                                com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupThreadsCount(long groupId,
                                       int status)
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupThreadsCount(long groupId,
                                       long userId,
                                       int status)
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupThreadsCount(long groupId,
                                       long userId,
                                       int status,
                                       boolean subscribed)
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupThreadsCount(long groupId,
                                       long userId,
                                       int status,
                                       boolean subscribed,
                                       boolean includeAnonymous)
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getPriorityThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBThread> getPriorityThreads(long categoryId,
                                                          double priority)
                                            throws com.liferay.portal.kernel.exception.PortalException,
                                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getPriorityThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBThread> getPriorityThreads(long categoryId,
                                                          double priority,
                                                          boolean inherit)
                                            throws com.liferay.portal.kernel.exception.PortalException,
                                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getThread

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBThread getThread(long threadId)
                   throws com.liferay.portal.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBThread> getThreads(long groupId,
                                                  long categoryId,
                                                  int status,
                                                  int start,
                                                  int end)
                                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getThreadsCount(long groupId,
                                  long categoryId,
                                  int status)
                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

moveThread

MBThread moveThread(long groupId,
                    long categoryId,
                    long threadId)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

splitThread

MBThread splitThread(long messageId,
                     ServiceContext serviceContext)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateThread

MBThread updateThread(long threadId,
                      int viewCount)
                      throws com.liferay.portal.kernel.exception.PortalException,
                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException