Liferay 6.2-ce-ga5

com.liferay.portlet.messageboards.service
Interface MBThreadLocalService

All Superinterfaces:
BaseLocalService, PersistedModelLocalService
All Known Implementing Classes:
MBThreadLocalServiceWrapper

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

Provides the local service interface for MBThread. 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, com.liferay.portlet.messageboards.service.base.MBThreadLocalServiceBaseImpl, com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl

Method Summary
 MBThread addMBThread(MBThread mbThread)
          Adds the message boards thread to the database.
 MBThread addThread(long categoryId, MBMessage message, ServiceContext serviceContext)
           
 MBThread createMBThread(long threadId)
          Creates a new message boards thread with the primary key.
 MBThread deleteMBThread(long threadId)
          Deletes the message boards thread with the primary key from the database.
 MBThread 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)
           
 void deleteThreads(long groupId, long categoryId, boolean includeTrashedEntries)
           
 DynamicQuery dynamicQuery()
           
 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)
          Returns the number of rows that match the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows that match the dynamic query.
 MBThread fetchMBThread(long threadId)
           
 MBThread fetchMBThreadByUuidAndCompanyId(String uuid, long companyId)
          Returns the message boards thread with the matching UUID and company.
 MBThread fetchMBThreadByUuidAndGroupId(String uuid, long groupId)
          Returns the message boards thread matching the UUID and group.
 MBThread fetchThread(long threadId)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 int getCategoryThreadsCount(long groupId, long categoryId, int status)
           
 List<MBThread> getGroupThreads(long groupId, int status, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupThreads(long, QueryDefinition)
 List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, boolean includeAnonymous, QueryDefinition queryDefinition)
           
 List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, QueryDefinition queryDefinition)
           
 List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupThreads(long, long, boolean, boolean, QueryDefinition)
 List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupThreads(long, long, boolean, QueryDefinition)
 List<MBThread> getGroupThreads(long groupId, long userId, int status, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupThreads(long, long, QueryDefinition)
 List<MBThread> getGroupThreads(long groupId, long userId, QueryDefinition queryDefinition)
           
 List<MBThread> getGroupThreads(long groupId, QueryDefinition queryDefinition)
           
 int getGroupThreadsCount(long groupId, int status)
          Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, QueryDefinition)
 int getGroupThreadsCount(long groupId, long userId, boolean subscribed, boolean includeAnonymous, QueryDefinition queryDefinition)
           
 int getGroupThreadsCount(long groupId, long userId, boolean subscribed, QueryDefinition queryDefinition)
           
 int getGroupThreadsCount(long groupId, long userId, int status)
          Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, long, QueryDefinition)
 int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed)
          Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, long, boolean, QueryDefinition)
 int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous)
          Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, long, boolean, boolean, QueryDefinition)
 int getGroupThreadsCount(long groupId, long userId, QueryDefinition queryDefinition)
           
 int getGroupThreadsCount(long groupId, QueryDefinition queryDefinition)
           
 MBThread getMBThread(long threadId)
          Returns the message boards thread with the primary key.
 MBThread getMBThreadByUuidAndCompanyId(String uuid, long companyId)
          Returns the message boards thread with the matching UUID and company.
 MBThread getMBThreadByUuidAndGroupId(String uuid, long groupId)
          Returns the message boards thread matching the UUID and group.
 List<MBThread> getMBThreads(int start, int end)
          Returns a range of all the message boards threads.
 int getMBThreadsCount()
          Returns the number of message boards threads.
 List<MBThread> getNoAssetThreads()
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 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)
           
 boolean hasAnswerMessage(long threadId)
           
 MBThread incrementViewCounter(long threadId, int increment)
           
 void moveDependentsToTrash(long groupId, long threadId, long trashEntryId)
           
 MBThread moveThread(long groupId, long categoryId, long threadId)
           
 MBThread moveThreadFromTrash(long userId, long categoryId, long threadId)
           
 void moveThreadsToTrash(long groupId, long userId)
           
 MBThread moveThreadToTrash(long userId, long threadId)
           
 MBThread moveThreadToTrash(long userId, MBThread thread)
           
 void restoreDependentsFromTrash(long groupId, long threadId, long trashEntryId)
           
 void restoreThreadFromTrash(long userId, long threadId)
           
 Hits search(long groupId, long userId, long creatorUserId, int status, int start, int end)
           
 Hits search(long groupId, long userId, long creatorUserId, long startDate, long endDate, int status, int start, int end)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 MBThread splitThread(long messageId, String subject, ServiceContext serviceContext)
           
 MBThread updateMBThread(MBThread mbThread)
          Updates the message boards thread in the database or adds it if it does not yet exist.
 void updateQuestion(long threadId, boolean question)
           
 MBThread updateStatus(long userId, long threadId, int status)
           
 MBThread updateThread(long threadId, int viewCount)
          Deprecated. As of 6.2.0, replaced by incrementViewCounter(long, int)
 

Method Detail

addMBThread

@Indexable(type=REINDEX)
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
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

@Indexable(type=DELETE)
MBThread 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
Returns:
the message boards thread that was removed
Throws:
PortalException - if a message boards thread with the primary key could not be found
SystemException - if a system exception occurred

deleteMBThread

@Indexable(type=DELETE)
MBThread 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
Returns:
the message boards thread that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

DynamicQuery dynamicQuery()

dynamicQuery

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

Parameters:
dynamicQuery - the dynamic query
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBThreadModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBThreadModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

dynamicQueryCount

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

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

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery,
                       Projection projection)
                       throws SystemException
Returns the number of rows that match the dynamic query.

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

fetchMBThread

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

fetchMBThreadByUuidAndCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBThread fetchMBThreadByUuidAndCompanyId(String uuid,
                                                                                  long companyId)
                                         throws SystemException
Returns the message boards thread with the matching UUID and company.

Parameters:
uuid - the message boards thread's UUID
companyId - the primary key of the company
Returns:
the matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

fetchMBThreadByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBThread fetchMBThreadByUuidAndGroupId(String uuid,
                                                                                long groupId)
                                       throws SystemException
Returns the message boards thread matching the UUID and group.

Parameters:
uuid - the message boards thread's UUID
groupId - the primary key of the group
Returns:
the matching message boards thread, or null if a matching message boards thread could not be found
Throws:
SystemException - if a system exception occurred

getMBThread

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

Parameters:
threadId - the primary key of the message boards thread
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

getPersistedModel

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException,
                                        SystemException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Throws:
PortalException
SystemException

getMBThreadByUuidAndCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBThread getMBThreadByUuidAndCompanyId(String uuid,
                                                                                long companyId)
                                       throws PortalException,
                                              SystemException
Returns the message boards thread with the matching UUID and company.

Parameters:
uuid - the message boards thread's UUID
companyId - the primary key of the company
Returns:
the matching message boards thread
Throws:
PortalException - if a matching message boards thread could not be found
SystemException - if a system exception occurred

getMBThreadByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBThread getMBThreadByUuidAndGroupId(String uuid,
                                                                              long groupId)
                                     throws PortalException,
                                            SystemException
Returns the message boards thread matching the UUID and group.

Parameters:
uuid - the message boards thread's UUID
groupId - the primary key of the group
Returns:
the matching message boards thread
Throws:
PortalException - if a matching message boards thread 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
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from MBThreadModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (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
Returns the number of message boards threads.

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

updateMBThread

@Indexable(type=REINDEX)
MBThread updateMBThread(MBThread mbThread)
                        throws SystemException
Updates the message boards thread in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

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

getBeanIdentifier

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

Returns:
the Spring bean ID for this bean

setBeanIdentifier

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

Parameters:
beanIdentifier - the Spring bean ID for this bean

addThread

MBThread addThread(long categoryId,
                   MBMessage message,
                   ServiceContext serviceContext)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

deleteThread

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

deleteThread

@SystemEvent(action=1,
             send=false,
             type=1)
void deleteThread(MBThread thread)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

deleteThreads

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

deleteThreads

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

fetchThread

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBThread fetchThread(long threadId)
                     throws SystemException
Throws:
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
Deprecated. As of 6.2.0, replaced by getGroupThreads(long, QueryDefinition)

Throws:
SystemException

getGroupThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getGroupThreads(long groupId,
                                                                        long userId,
                                                                        boolean subscribed,
                                                                        boolean includeAnonymous,
                                                                        QueryDefinition queryDefinition)
                               throws SystemException
Throws:
SystemException

getGroupThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getGroupThreads(long groupId,
                                                                        long userId,
                                                                        boolean subscribed,
                                                                        QueryDefinition queryDefinition)
                               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 SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreads(long, long, boolean, boolean, QueryDefinition)

Throws:
SystemException

getGroupThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getGroupThreads(long groupId,
                                                                        long userId,
                                                                        int status,
                                                                        boolean subscribed,
                                                                        int start,
                                                                        int end)
                               throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreads(long, long, boolean, QueryDefinition)

Throws:
SystemException

getGroupThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getGroupThreads(long groupId,
                                                                        long userId,
                                                                        int status,
                                                                        int start,
                                                                        int end)
                               throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreads(long, long, QueryDefinition)

Throws:
SystemException

getGroupThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getGroupThreads(long groupId,
                                                                        long userId,
                                                                        QueryDefinition queryDefinition)
                               throws SystemException
Throws:
SystemException

getGroupThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getGroupThreads(long groupId,
                                                                        QueryDefinition queryDefinition)
                               throws SystemException
Throws:
SystemException

getGroupThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupThreadsCount(long groupId,
                                                                  int status)
                         throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, QueryDefinition)

Throws:
SystemException

getGroupThreadsCount

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

getGroupThreadsCount

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

getGroupThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupThreadsCount(long groupId,
                                                                  long userId,
                                                                  int status)
                         throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, long, QueryDefinition)

Throws:
SystemException

getGroupThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupThreadsCount(long groupId,
                                                                  long userId,
                                                                  int status,
                                                                  boolean subscribed)
                         throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, long, boolean, QueryDefinition)

Throws:
SystemException

getGroupThreadsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupThreadsCount(long groupId,
                                                                  long userId,
                                                                  int status,
                                                                  boolean subscribed,
                                                                  boolean includeAnonymous)
                         throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, long, boolean, boolean, QueryDefinition)

Throws:
SystemException

getGroupThreadsCount

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

getGroupThreadsCount

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

getNoAssetThreads

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<MBThread> getNoAssetThreads()
                                 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

hasAnswerMessage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasAnswerMessage(long threadId)
                         throws SystemException
Throws:
SystemException

incrementViewCounter

@BufferedIncrement(configuration="MBThread",
                   incrementClass=NumberIncrement.class)
MBThread incrementViewCounter(long threadId,
                                                                                                int increment)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

moveDependentsToTrash

void moveDependentsToTrash(long groupId,
                           long threadId,
                           long trashEntryId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

moveThread

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

moveThreadFromTrash

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

moveThreadsToTrash

void moveThreadsToTrash(long groupId,
                        long userId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

moveThreadToTrash

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

moveThreadToTrash

MBThread moveThreadToTrash(long userId,
                           MBThread thread)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

restoreDependentsFromTrash

void restoreDependentsFromTrash(long groupId,
                                long threadId,
                                long trashEntryId)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

restoreThreadFromTrash

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

search

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

search

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

splitThread

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

updateQuestion

void updateQuestion(long threadId,
                    boolean question)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

updateStatus

MBThread updateStatus(long userId,
                      long threadId,
                      int status)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

updateThread

MBThread updateThread(long threadId,
                      int viewCount)
                      throws PortalException,
                             SystemException
Deprecated. As of 6.2.0, replaced by incrementViewCounter(long, int)

Throws:
PortalException
SystemException

Liferay 6.2-ce-ga5