Liferay 6.1.2-ce-ga3

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

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

This class is a wrapper for MBThreadLocalService.

See Also:
MBThreadLocalService

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)
           
 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)
           
 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.
 MBThread fetchMBThread(long threadId)
           
 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)
           
 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)
          Returns the message boards thread with the primary key.
 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)
           
 MBThreadLocalService getWrappedMBThreadLocalService()
          Deprecated. Renamed to getWrappedService()
 MBThreadLocalService getWrappedService()
           
 boolean hasAnswerMessage(long threadId)
           
 MBThread incrementViewCounter(long threadId, int increment)
           
 MBThread moveThread(long groupId, long categoryId, long threadId)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedMBThreadLocalService(MBThreadLocalService mbThreadLocalService)
          Deprecated. Renamed to setWrappedService(com.liferay.portlet.messageboards.service.MBThreadLocalService)
 void setWrappedService(MBThreadLocalService mbThreadLocalService)
           
 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.
 MBThread updateMBThread(MBThread mbThread, boolean merge)
          Updates the message boards thread in the database or adds it if it does not yet exist.
 void updateQuestion(long threadId, boolean question)
           
 MBThread updateThread(long threadId, int viewCount)
          Deprecated. 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)
                     throws SystemException
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
Throws:
SystemException - if a system exception occurred

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(long threadId)
                        throws PortalException,
                               SystemException
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
SystemException - if a system exception occurred

deleteMBThread

public MBThread deleteMBThread(MBThread mbThread)
                        throws SystemException
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
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

dynamicQuery

public 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.

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
Throws:
SystemException - if a system exception occurred

dynamicQuery

public 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.

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
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

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

Specified by:
dynamicQueryCount in interface MBThreadLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

fetchMBThread

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

getMBThread

public MBThread getMBThread(long threadId)
                     throws PortalException,
                            SystemException
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
SystemException - if a system exception occurred

getPersistedModel

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

getMBThreads

public 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.

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
Throws:
SystemException - if a system exception occurred

getMBThreadsCount

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

Specified by:
getMBThreadsCount in interface MBThreadLocalService
Returns:
the number of message boards threads
Throws:
SystemException - if a system exception occurred

updateMBThread

public 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.

Specified by:
updateMBThread in interface MBThreadLocalService
Parameters:
mbThread - the message boards thread
Returns:
the message boards thread that was updated
Throws:
SystemException - if a system exception occurred

updateMBThread

public MBThread updateMBThread(MBThread mbThread,
                               boolean merge)
                        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.

Specified by:
updateMBThread in interface MBThreadLocalService
Parameters:
mbThread - the message boards thread
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

getBeanIdentifier

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

Specified by:
getBeanIdentifier in interface MBThreadLocalService
Returns:
the Spring bean ID for this bean

setBeanIdentifier

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

Specified by:
setBeanIdentifier in interface MBThreadLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

addThread

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

deleteThread

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

deleteThread

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

deleteThreads

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

fetchThread

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

getCategoryThreadsCount

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

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      int status,
                                      int start,
                                      int end)
                               throws SystemException
Specified by:
getGroupThreads in interface MBThreadLocalService
Throws:
SystemException

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      int status,
                                      boolean subscribed,
                                      boolean includeAnonymous,
                                      int start,
                                      int end)
                               throws PortalException,
                                      SystemException
Specified by:
getGroupThreads in interface MBThreadLocalService
Throws:
PortalException
SystemException

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      int status,
                                      boolean subscribed,
                                      int start,
                                      int end)
                               throws PortalException,
                                      SystemException
Specified by:
getGroupThreads in interface MBThreadLocalService
Throws:
PortalException
SystemException

getGroupThreads

public List<MBThread> getGroupThreads(long groupId,
                                      long userId,
                                      int status,
                                      int start,
                                      int end)
                               throws PortalException,
                                      SystemException
Specified by:
getGroupThreads in interface MBThreadLocalService
Throws:
PortalException
SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                int status)
                         throws SystemException
Specified by:
getGroupThreadsCount in interface MBThreadLocalService
Throws:
SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                int status)
                         throws SystemException
Specified by:
getGroupThreadsCount in interface MBThreadLocalService
Throws:
SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                int status,
                                boolean subscribed)
                         throws SystemException
Specified by:
getGroupThreadsCount in interface MBThreadLocalService
Throws:
SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                int status,
                                boolean subscribed,
                                boolean includeAnonymous)
                         throws SystemException
Specified by:
getGroupThreadsCount in interface MBThreadLocalService
Throws:
SystemException

getNoAssetThreads

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

getPriorityThreads

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

getPriorityThreads

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

getThread

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

getThreads

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

getThreadsCount

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

hasAnswerMessage

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

incrementViewCounter

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

moveThread

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

splitThread

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

updateQuestion

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

updateThread

public MBThread updateThread(long threadId,
                             int viewCount)
                      throws PortalException,
                             SystemException
Deprecated. incrementViewCounter(long, int)

Specified by:
updateThread in interface MBThreadLocalService
Throws:
PortalException
SystemException

getWrappedMBThreadLocalService

public MBThreadLocalService getWrappedMBThreadLocalService()
Deprecated. Renamed to getWrappedService()


setWrappedMBThreadLocalService

public void setWrappedMBThreadLocalService(MBThreadLocalService mbThreadLocalService)
Deprecated. Renamed to setWrappedService(com.liferay.portlet.messageboards.service.MBThreadLocalService)


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 6.1.2-ce-ga3