Liferay 6.0.5

com.liferay.portlet.messageboards.service
Interface MBThreadLocalService

All Known Implementing Classes:
MBThreadLocalServiceBaseImpl, MBThreadLocalServiceImpl, MBThreadLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface MBThreadLocalService

The interface for the message boards thread local service.

Never modify or reference this interface directly. Always use MBThreadLocalServiceUtil to access the message boards thread local service. Add custom service methods to MBThreadLocalServiceImpl and rerun ServiceBuilder to automatically copy the method declarations to this interface.

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.

See Also:
MBThreadLocalServiceUtil, MBThreadLocalServiceBaseImpl, MBThreadLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 MBThread addMBThread(MBThread mbThread)
          Adds the message boards thread to the database.
 MBThread createMBThread(long threadId)
          Creates a new message boards thread with the primary key.
 void deleteMBThread(long threadId)
          Deletes the message boards thread with the primary key from the database.
 void deleteMBThread(MBThread mbThread)
          Deletes the message boards thread from the database.
 void deleteThread(long threadId)
           
 void deleteThread(MBThread thread)
           
 void deleteThreads(long groupId, long categoryId)
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 int getCategoryThreadsCount(long groupId, long categoryId, int status)
           
 List<MBThread> getGroupThreads(long groupId, 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, 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)
          Gets the message boards thread with the primary key.
 List<MBThread> getMBThreads(int start, int end)
          Gets a range of all the message boards threads.
 int getMBThreadsCount()
          Gets the number of message boards threads.
 List<MBThread> getPriorityThreads(long categoryId, double priority)
           
 List<MBThread> getPriorityThreads(long categoryId, double priority, boolean inherit)
           
 MBThread getThread(long threadId)
           
 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)
          Updates the message boards thread in the database.
 MBThread updateMBThread(MBThread mbThread, boolean merge)
          Updates the message boards thread in the database.
 MBThread updateThread(long threadId, int viewCount)
           
 

Method Detail

addMBThread

MBThread addMBThread(MBThread mbThread)
                     throws SystemException
Adds the message boards thread to the database. Also notifies the appropriate model listeners.

Parameters:
mbThread - the message boards thread to add
Returns:
the message boards thread that was added
Throws:
SystemException - if a system exception occurred

createMBThread

MBThread createMBThread(long threadId)
Creates a new message boards thread with the primary key. Does not add the message boards thread to the database.

Parameters:
threadId - the primary key for the new message boards thread
Returns:
the new message boards thread

deleteMBThread

void deleteMBThread(long threadId)
                    throws PortalException,
                           SystemException
Deletes the message boards thread with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
threadId - the primary key of the message boards thread to delete
Throws:
PortalException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

deleteMBThread

void deleteMBThread(MBThread mbThread)
                    throws SystemException
Deletes the message boards thread from the database. Also notifies the appropriate model listeners.

Parameters:
mbThread - the message boards thread to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery,
                  int start,
                  int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery,
                  int start,
                  int end,
                  OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getMBThread

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBThread getMBThread(long threadId)
                     throws PortalException,
                            SystemException
Gets the message boards thread with the primary key.

Parameters:
threadId - the primary key of the message boards thread to get
Returns:
the message boards thread
Throws:
PortalException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

getMBThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getMBThreads(int start,
                                                                     int end)
                            throws SystemException
Gets a range of all the message boards threads.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of message boards threads to return
end - the upper bound of the range of message boards threads to return (not inclusive)
Returns:
the range of message boards threads
Throws:
SystemException - if a system exception occurred

getMBThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getMBThreadsCount()
                      throws SystemException
Gets the number of message boards threads.

Returns:
the number of message boards threads
Throws:
SystemException - if a system exception occurred

updateMBThread

MBThread updateMBThread(MBThread mbThread)
                        throws SystemException
Updates the message boards thread in the database. Also notifies the appropriate model listeners.

Parameters:
mbThread - the message boards thread to update
Returns:
the message boards thread that was updated
Throws:
SystemException - if a system exception occurred

updateMBThread

MBThread updateMBThread(MBThread mbThread,
                        boolean merge)
                        throws SystemException
Updates the message boards thread in the database. Also notifies the appropriate model listeners.

Parameters:
mbThread - the message boards thread to update
merge - whether to merge the message boards thread with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the message boards thread that was updated
Throws:
SystemException - if a system exception occurred

deleteThread

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

deleteThread

void deleteThread(MBThread thread)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

deleteThreads

void deleteThreads(long groupId,
                   long categoryId)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

getCategoryThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoryThreadsCount(long groupId,
                                                                     long categoryId,
                                                                     int status)
                            throws SystemException
Throws:
SystemException

getGroupThreads

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

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,
                                      SystemException
Throws:
PortalException
SystemException

getGroupThreads

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

getGroupThreads

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

getGroupThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupThreadsCount(long groupId,
                                                                  int status)
                         throws SystemException
Throws:
SystemException

getGroupThreadsCount

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

getGroupThreadsCount

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

getGroupThreadsCount

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

getPriorityThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getPriorityThreads(long categoryId,
                                                                           double priority)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getPriorityThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getPriorityThreads(long categoryId,
                                                                           double priority,
                                                                           boolean inherit)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getThread

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBThread getThread(long threadId)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

getThreads

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

getThreadsCount

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

moveThread

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

splitThread

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

updateThread

MBThread updateThread(long threadId,
                      int viewCount)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

Liferay 6.0.5