Liferay 7.0-ce-b4

com.liferay.portlet.messageboards.service
Class MBThreadLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.messageboards.service.MBThreadLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<MBThreadLocalService>, MBThreadLocalService

@ProviderType
public class MBThreadLocalServiceWrapper
extends Object
implements MBThreadLocalService, ServiceWrapper<MBThreadLocalService>

Provides a wrapper for MBThreadLocalService.

See Also:
MBThreadLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
MBThreadLocalServiceWrapper(MBThreadLocalService mbThreadLocalService)
           
 
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.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 void deleteThread(long threadId)
           
 void deleteThread(MBThread thread)
           
 void deleteThreads(long groupId, long categoryId)
           
 void deleteThreads(long groupId, long categoryId, boolean includeTrashedEntries)
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> 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 matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 MBThread fetchMBThread(long threadId)
           
 MBThread fetchMBThreadByUuidAndGroupId(String uuid, long groupId)
          Returns the message boards thread matching the UUID and group.
 MBThread fetchThread(long threadId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 int getCategoryThreadsCount(long groupId, long categoryId, int status)
           
 ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
           
 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<MBThread> queryDefinition)
           
 List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, QueryDefinition<MBThread> 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<MBThread> queryDefinition)
           
 List<MBThread> getGroupThreads(long groupId, QueryDefinition<MBThread> 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<MBThread> queryDefinition)
           
 int getGroupThreadsCount(long groupId, long userId, boolean subscribed, QueryDefinition<MBThread> 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<MBThread> queryDefinition)
           
 int getGroupThreadsCount(long groupId, QueryDefinition<MBThread> queryDefinition)
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 MBThread getMBThread(long threadId)
          Returns the message boards thread with the primary key.
 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.
 List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid, long companyId)
          Returns all the message boards threads matching the UUID and company.
 List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<MBThread> orderByComparator)
          Returns a range of message boards threads matching the UUID and company.
 int getMBThreadsCount()
          Returns the number of message boards threads.
 List<MBThread> getNoAssetThreads()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 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)
           
 MBThreadLocalService getWrappedService()
           
 boolean hasAnswerMessage(long threadId)
           
 void 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)
           
 void restoreDependentsFromTrash(long groupId, long threadId, long trashEntryId)
          Deprecated. As of 7.0.0, replaced by restoreDependentsFromTrash(long, long)
 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 setWrappedService(MBThreadLocalService mbThreadLocalService)
           
 MBThread splitThread(long userId, 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.
 MBThread updateMessageCount(long threadId)
           
 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)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBThreadLocalServiceWrapper

public MBThreadLocalServiceWrapper(MBThreadLocalService mbThreadLocalService)
Method Detail

addMBThread

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

Specified by:
addMBThread in interface MBThreadLocalService
Parameters:
mbThread - the message boards thread
Returns:
the message boards thread that was added

addThread

public MBThread addThread(long categoryId,
                          MBMessage message,
                          ServiceContext serviceContext)
                   throws PortalException
Specified by:
addThread in interface MBThreadLocalService
Throws:
PortalException

createMBThread

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

Specified by:
createMBThread in interface MBThreadLocalService
Parameters:
threadId - the primary key for the new message boards thread
Returns:
the new message boards thread

deleteMBThread

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

Specified by:
deleteMBThread in interface MBThreadLocalService
Parameters:
mbThread - the message boards thread
Returns:
the message boards thread that was removed

deleteMBThread

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

Specified by:
deleteMBThread in interface MBThreadLocalService
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

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface MBThreadLocalService
Throws:
PortalException

deleteThread

public void deleteThread(MBThread thread)
                  throws PortalException
Specified by:
deleteThread in interface MBThreadLocalService
Throws:
PortalException

deleteThread

public void deleteThread(long threadId)
                  throws PortalException
Specified by:
deleteThread in interface MBThreadLocalService
Throws:
PortalException

deleteThreads

public void deleteThreads(long groupId,
                          long categoryId)
                   throws PortalException
Specified by:
deleteThreads in interface MBThreadLocalService
Throws:
PortalException

deleteThreads

public void deleteThreads(long groupId,
                          long categoryId,
                          boolean includeTrashedEntries)
                   throws PortalException
Specified by:
deleteThreads in interface MBThreadLocalService
Throws:
PortalException

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface MBThreadLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface MBThreadLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
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.

Specified by:
dynamicQuery in interface MBThreadLocalService
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

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator<T> orderByComparator)
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.

Specified by:
dynamicQuery in interface MBThreadLocalService
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

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface MBThreadLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface MBThreadLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchMBThread

public MBThread fetchMBThread(long threadId)
Specified by:
fetchMBThread in interface MBThreadLocalService

fetchMBThreadByUuidAndGroupId

public MBThread fetchMBThreadByUuidAndGroupId(String uuid,
                                              long groupId)
Returns the message boards thread matching the UUID and group.

Specified by:
fetchMBThreadByUuidAndGroupId in interface MBThreadLocalService
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

fetchThread

public MBThread fetchThread(long threadId)
Specified by:
fetchThread in interface MBThreadLocalService

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface MBThreadLocalService

getCategoryThreadsCount

public int getCategoryThreadsCount(long groupId,
                                   long categoryId,
                                   int status)
Specified by:
getCategoryThreadsCount in interface MBThreadLocalService

getExportActionableDynamicQuery

public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
Specified by:
getExportActionableDynamicQuery in interface MBThreadLocalService

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      QueryDefinition<MBThread> queryDefinition)
Specified by:
getGroupThreads in interface MBThreadLocalService

getGroupThreads

@Deprecated
public List<MBThread> getGroupThreads(long groupId,
                                                 int status,
                                                 int start,
                                                 int end)
Deprecated. As of 6.2.0, replaced by getGroupThreads(long, QueryDefinition)

Specified by:
getGroupThreads in interface MBThreadLocalService

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      QueryDefinition<MBThread> queryDefinition)
Specified by:
getGroupThreads in interface MBThreadLocalService

getGroupThreads

@Deprecated
public 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)

Specified by:
getGroupThreads in interface MBThreadLocalService

getGroupThreads

@Deprecated
public 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)

Specified by:
getGroupThreads in interface MBThreadLocalService

getGroupThreads

@Deprecated
public 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)

Specified by:
getGroupThreads in interface MBThreadLocalService

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      boolean subscribed,
                                      boolean includeAnonymous,
                                      QueryDefinition<MBThread> queryDefinition)
Specified by:
getGroupThreads in interface MBThreadLocalService

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      boolean subscribed,
                                      QueryDefinition<MBThread> queryDefinition)
Specified by:
getGroupThreads in interface MBThreadLocalService

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                QueryDefinition<MBThread> queryDefinition)
Specified by:
getGroupThreadsCount in interface MBThreadLocalService

getGroupThreadsCount

@Deprecated
public int getGroupThreadsCount(long groupId,
                                           int status)
Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, QueryDefinition)

Specified by:
getGroupThreadsCount in interface MBThreadLocalService

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                QueryDefinition<MBThread> queryDefinition)
Specified by:
getGroupThreadsCount in interface MBThreadLocalService

getGroupThreadsCount

@Deprecated
public int getGroupThreadsCount(long groupId,
                                           long userId,
                                           int status)
Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, long, QueryDefinition)

Specified by:
getGroupThreadsCount in interface MBThreadLocalService

getGroupThreadsCount

@Deprecated
public int getGroupThreadsCount(long groupId,
                                           long userId,
                                           int status,
                                           boolean subscribed)
Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long, long, boolean, QueryDefinition)

Specified by:
getGroupThreadsCount in interface MBThreadLocalService

getGroupThreadsCount

@Deprecated
public 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)

Specified by:
getGroupThreadsCount in interface MBThreadLocalService

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                boolean subscribed,
                                boolean includeAnonymous,
                                QueryDefinition<MBThread> queryDefinition)
Specified by:
getGroupThreadsCount in interface MBThreadLocalService

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                boolean subscribed,
                                QueryDefinition<MBThread> queryDefinition)
Specified by:
getGroupThreadsCount in interface MBThreadLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface MBThreadLocalService

getMBThread

public MBThread getMBThread(long threadId)
                     throws PortalException
Returns the message boards thread with the primary key.

Specified by:
getMBThread in interface MBThreadLocalService
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

getMBThreadByUuidAndGroupId

public MBThread getMBThreadByUuidAndGroupId(String uuid,
                                            long groupId)
                                     throws PortalException
Returns the message boards thread matching the UUID and group.

Specified by:
getMBThreadByUuidAndGroupId in interface MBThreadLocalService
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

getMBThreads

public List<MBThread> getMBThreads(int start,
                                   int end)
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.

Specified by:
getMBThreads in interface MBThreadLocalService
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

getMBThreadsByUuidAndCompanyId

public List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid,
                                                     long companyId)
Returns all the message boards threads matching the UUID and company.

Specified by:
getMBThreadsByUuidAndCompanyId in interface MBThreadLocalService
Parameters:
uuid - the UUID of the message boards threads
companyId - the primary key of the company
Returns:
the matching message boards threads, or an empty list if no matches were found

getMBThreadsByUuidAndCompanyId

public List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid,
                                                     long companyId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator<MBThread> orderByComparator)
Returns a range of message boards threads matching the UUID and company.

Specified by:
getMBThreadsByUuidAndCompanyId in interface MBThreadLocalService
Parameters:
uuid - the UUID of the message boards threads
companyId - the primary key of the company
start - the lower bound of the range of message boards threads
end - the upper bound of the range of message boards threads (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the range of matching message boards threads, or an empty list if no matches were found

getMBThreadsCount

public int getMBThreadsCount()
Returns the number of message boards threads.

Specified by:
getMBThreadsCount in interface MBThreadLocalService
Returns:
the number of message boards threads

getNoAssetThreads

public List<MBThread> getNoAssetThreads()
Specified by:
getNoAssetThreads in interface MBThreadLocalService

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface MBThreadLocalService
Returns:
the OSGi service identifier

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface MBThreadLocalService
Throws:
PortalException

getPriorityThreads

public List<MBThread> getPriorityThreads(long categoryId,
                                         double priority)
                                  throws PortalException
Specified by:
getPriorityThreads in interface MBThreadLocalService
Throws:
PortalException

getPriorityThreads

public List<MBThread> getPriorityThreads(long categoryId,
                                         double priority,
                                         boolean inherit)
                                  throws PortalException
Specified by:
getPriorityThreads in interface MBThreadLocalService
Throws:
PortalException

getThread

public MBThread getThread(long threadId)
                   throws PortalException
Specified by:
getThread in interface MBThreadLocalService
Throws:
PortalException

getThreads

public List<MBThread> getThreads(long groupId,
                                 long categoryId,
                                 int status,
                                 int start,
                                 int end)
Specified by:
getThreads in interface MBThreadLocalService

getThreadsCount

public int getThreadsCount(long groupId,
                           long categoryId,
                           int status)
Specified by:
getThreadsCount in interface MBThreadLocalService

hasAnswerMessage

public boolean hasAnswerMessage(long threadId)
Specified by:
hasAnswerMessage in interface MBThreadLocalService

incrementViewCounter

public void incrementViewCounter(long threadId,
                                 int increment)
                          throws PortalException
Specified by:
incrementViewCounter in interface MBThreadLocalService
Throws:
PortalException

moveDependentsToTrash

public void moveDependentsToTrash(long groupId,
                                  long threadId,
                                  long trashEntryId)
                           throws PortalException
Specified by:
moveDependentsToTrash in interface MBThreadLocalService
Throws:
PortalException

moveThread

public MBThread moveThread(long groupId,
                           long categoryId,
                           long threadId)
                    throws PortalException
Specified by:
moveThread in interface MBThreadLocalService
Throws:
PortalException

moveThreadFromTrash

public MBThread moveThreadFromTrash(long userId,
                                    long categoryId,
                                    long threadId)
                             throws PortalException
Specified by:
moveThreadFromTrash in interface MBThreadLocalService
Throws:
PortalException

moveThreadToTrash

public MBThread moveThreadToTrash(long userId,
                                  MBThread thread)
                           throws PortalException
Specified by:
moveThreadToTrash in interface MBThreadLocalService
Throws:
PortalException

moveThreadToTrash

public MBThread moveThreadToTrash(long userId,
                                  long threadId)
                           throws PortalException
Specified by:
moveThreadToTrash in interface MBThreadLocalService
Throws:
PortalException

moveThreadsToTrash

public void moveThreadsToTrash(long groupId,
                               long userId)
                        throws PortalException
Specified by:
moveThreadsToTrash in interface MBThreadLocalService
Throws:
PortalException

restoreDependentsFromTrash

public void restoreDependentsFromTrash(long groupId,
                                       long threadId)
                                throws PortalException
Specified by:
restoreDependentsFromTrash in interface MBThreadLocalService
Throws:
PortalException

restoreDependentsFromTrash

@Deprecated
public void restoreDependentsFromTrash(long groupId,
                                                  long threadId,
                                                  long trashEntryId)
                                throws PortalException
Deprecated. As of 7.0.0, replaced by restoreDependentsFromTrash(long, long)

Specified by:
restoreDependentsFromTrash in interface MBThreadLocalService
Throws:
PortalException

restoreThreadFromTrash

public void restoreThreadFromTrash(long userId,
                                   long threadId)
                            throws PortalException
Specified by:
restoreThreadFromTrash in interface MBThreadLocalService
Throws:
PortalException

search

public Hits search(long groupId,
                   long userId,
                   long creatorUserId,
                   long startDate,
                   long endDate,
                   int status,
                   int start,
                   int end)
            throws PortalException
Specified by:
search in interface MBThreadLocalService
Throws:
PortalException

search

public Hits search(long groupId,
                   long userId,
                   long creatorUserId,
                   int status,
                   int start,
                   int end)
            throws PortalException
Specified by:
search in interface MBThreadLocalService
Throws:
PortalException

splitThread

public MBThread splitThread(long userId,
                            long messageId,
                            String subject,
                            ServiceContext serviceContext)
                     throws PortalException
Specified by:
splitThread in interface MBThreadLocalService
Throws:
PortalException

updateMBThread

public MBThread updateMBThread(MBThread mbThread)
Updates the message boards thread in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateMBThread in interface MBThreadLocalService
Parameters:
mbThread - the message boards thread
Returns:
the message boards thread that was updated

updateMessageCount

public MBThread updateMessageCount(long threadId)
Specified by:
updateMessageCount in interface MBThreadLocalService

updateQuestion

public void updateQuestion(long threadId,
                           boolean question)
                    throws PortalException
Specified by:
updateQuestion in interface MBThreadLocalService
Throws:
PortalException

updateStatus

public MBThread updateStatus(long userId,
                             long threadId,
                             int status)
                      throws PortalException
Specified by:
updateStatus in interface MBThreadLocalService
Throws:
PortalException

updateThread

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

Specified by:
updateThread in interface MBThreadLocalService
Throws:
PortalException

getWrappedService

public MBThreadLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<MBThreadLocalService>

setWrappedService

public void setWrappedService(MBThreadLocalService mbThreadLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<MBThreadLocalService>

Liferay 7.0-ce-b4