|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.messageboards.service.MBThreadLocalServiceWrapper
@ProviderType public class MBThreadLocalServiceWrapper
Provides a wrapper for MBThreadLocalService
.
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,
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)
|
MBThreadLocalService |
getWrappedMBThreadLocalService()
Deprecated. As of 6.1.0, replaced by getWrappedService() |
MBThreadLocalService |
getWrappedService()
|
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. |
void |
setWrappedMBThreadLocalService(MBThreadLocalService mbThreadLocalService)
Deprecated. As of 6.1.0, replaced by 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. |
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 |
---|
public MBThreadLocalServiceWrapper(MBThreadLocalService mbThreadLocalService)
Method Detail |
---|
public MBThread addMBThread(MBThread mbThread) throws SystemException
addMBThread
in interface MBThreadLocalService
mbThread
- the message boards thread
SystemException
- if a system exception occurredpublic MBThread createMBThread(long threadId)
createMBThread
in interface MBThreadLocalService
threadId
- the primary key for the new message boards thread
public MBThread deleteMBThread(long threadId) throws PortalException, SystemException
deleteMBThread
in interface MBThreadLocalService
threadId
- the primary key of the message boards thread
PortalException
- if a message boards thread with the primary key could not be found
SystemException
- if a system exception occurredpublic MBThread deleteMBThread(MBThread mbThread) throws SystemException
deleteMBThread
in interface MBThreadLocalService
mbThread
- the message boards thread
SystemException
- if a system exception occurredpublic DynamicQuery dynamicQuery()
dynamicQuery
in interface MBThreadLocalService
public List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
in interface MBThreadLocalService
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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.
dynamicQuery
in interface MBThreadLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
dynamicQuery
in interface MBThreadLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQueryCount
in interface MBThreadLocalService
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQueryCount
in interface MBThreadLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query
SystemException
- if a system exception occurredpublic MBThread fetchMBThread(long threadId) throws SystemException
fetchMBThread
in interface MBThreadLocalService
SystemException
public MBThread fetchMBThreadByUuidAndCompanyId(String uuid, long companyId) throws SystemException
fetchMBThreadByUuidAndCompanyId
in interface MBThreadLocalService
uuid
- the message boards thread's UUIDcompanyId
- the primary key of the company
null
if a matching message boards thread could not be found
SystemException
- if a system exception occurredpublic MBThread fetchMBThreadByUuidAndGroupId(String uuid, long groupId) throws SystemException
fetchMBThreadByUuidAndGroupId
in interface MBThreadLocalService
uuid
- the message boards thread's UUIDgroupId
- the primary key of the group
null
if a matching message boards thread could not be found
SystemException
- if a system exception occurredpublic MBThread getMBThread(long threadId) throws PortalException, SystemException
getMBThread
in interface MBThreadLocalService
threadId
- the primary key of the message boards thread
PortalException
- if a message boards thread with the primary key could not be found
SystemException
- if a system exception occurredpublic PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException, SystemException
getPersistedModel
in interface PersistedModelLocalService
getPersistedModel
in interface MBThreadLocalService
PortalException
SystemException
public MBThread getMBThreadByUuidAndCompanyId(String uuid, long companyId) throws PortalException, SystemException
getMBThreadByUuidAndCompanyId
in interface MBThreadLocalService
uuid
- the message boards thread's UUIDcompanyId
- the primary key of the company
PortalException
- if a matching message boards thread could not be found
SystemException
- if a system exception occurredpublic MBThread getMBThreadByUuidAndGroupId(String uuid, long groupId) throws PortalException, SystemException
getMBThreadByUuidAndGroupId
in interface MBThreadLocalService
uuid
- the message boards thread's UUIDgroupId
- the primary key of the group
PortalException
- if a matching message boards thread could not be found
SystemException
- if a system exception occurredpublic List<MBThread> getMBThreads(int start, int end) throws SystemException
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.
getMBThreads
in interface MBThreadLocalService
start
- the lower bound of the range of message boards threadsend
- the upper bound of the range of message boards threads (not inclusive)
SystemException
- if a system exception occurredpublic int getMBThreadsCount() throws SystemException
getMBThreadsCount
in interface MBThreadLocalService
SystemException
- if a system exception occurredpublic MBThread updateMBThread(MBThread mbThread) throws SystemException
updateMBThread
in interface MBThreadLocalService
mbThread
- the message boards thread
SystemException
- if a system exception occurredpublic String getBeanIdentifier()
getBeanIdentifier
in interface MBThreadLocalService
public void setBeanIdentifier(String beanIdentifier)
setBeanIdentifier
in interface MBThreadLocalService
beanIdentifier
- the Spring bean ID for this beanpublic MBThread addThread(long categoryId, MBMessage message, ServiceContext serviceContext) throws PortalException, SystemException
addThread
in interface MBThreadLocalService
PortalException
SystemException
public void deleteThread(long threadId) throws PortalException, SystemException
deleteThread
in interface MBThreadLocalService
PortalException
SystemException
public void deleteThread(MBThread thread) throws PortalException, SystemException
deleteThread
in interface MBThreadLocalService
PortalException
SystemException
public void deleteThreads(long groupId, long categoryId) throws PortalException, SystemException
deleteThreads
in interface MBThreadLocalService
PortalException
SystemException
public void deleteThreads(long groupId, long categoryId, boolean includeTrashedEntries) throws PortalException, SystemException
deleteThreads
in interface MBThreadLocalService
PortalException
SystemException
public MBThread fetchThread(long threadId) throws SystemException
fetchThread
in interface MBThreadLocalService
SystemException
public int getCategoryThreadsCount(long groupId, long categoryId, int status) throws SystemException
getCategoryThreadsCount
in interface MBThreadLocalService
SystemException
public List<MBThread> getGroupThreads(long groupId, int status, int start, int end) throws SystemException
getGroupThreads(long,
QueryDefinition)
getGroupThreads
in interface MBThreadLocalService
SystemException
public List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, boolean includeAnonymous, QueryDefinition queryDefinition) throws SystemException
getGroupThreads
in interface MBThreadLocalService
SystemException
public List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, QueryDefinition queryDefinition) throws SystemException
getGroupThreads
in interface MBThreadLocalService
SystemException
public List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous, int start, int end) throws SystemException
getGroupThreads(long, long,
boolean, boolean, QueryDefinition)
getGroupThreads
in interface MBThreadLocalService
SystemException
public List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, int start, int end) throws SystemException
getGroupThreads(long, long,
boolean, QueryDefinition)
getGroupThreads
in interface MBThreadLocalService
SystemException
public List<MBThread> getGroupThreads(long groupId, long userId, int status, int start, int end) throws SystemException
getGroupThreads(long, long,
QueryDefinition)
getGroupThreads
in interface MBThreadLocalService
SystemException
public List<MBThread> getGroupThreads(long groupId, long userId, QueryDefinition queryDefinition) throws SystemException
getGroupThreads
in interface MBThreadLocalService
SystemException
public List<MBThread> getGroupThreads(long groupId, QueryDefinition queryDefinition) throws SystemException
getGroupThreads
in interface MBThreadLocalService
SystemException
public int getGroupThreadsCount(long groupId, int status) throws SystemException
getGroupThreadsCount(long,
QueryDefinition)
getGroupThreadsCount
in interface MBThreadLocalService
SystemException
public int getGroupThreadsCount(long groupId, long userId, boolean subscribed, boolean includeAnonymous, QueryDefinition queryDefinition) throws SystemException
getGroupThreadsCount
in interface MBThreadLocalService
SystemException
public int getGroupThreadsCount(long groupId, long userId, boolean subscribed, QueryDefinition queryDefinition) throws SystemException
getGroupThreadsCount
in interface MBThreadLocalService
SystemException
public int getGroupThreadsCount(long groupId, long userId, int status) throws SystemException
getGroupThreadsCount(long,
long, QueryDefinition)
getGroupThreadsCount
in interface MBThreadLocalService
SystemException
public int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed) throws SystemException
getGroupThreadsCount(long,
long, boolean, QueryDefinition)
getGroupThreadsCount
in interface MBThreadLocalService
SystemException
public int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous) throws SystemException
getGroupThreadsCount(long,
long, boolean, boolean, QueryDefinition)
getGroupThreadsCount
in interface MBThreadLocalService
SystemException
public int getGroupThreadsCount(long groupId, long userId, QueryDefinition queryDefinition) throws SystemException
getGroupThreadsCount
in interface MBThreadLocalService
SystemException
public int getGroupThreadsCount(long groupId, QueryDefinition queryDefinition) throws SystemException
getGroupThreadsCount
in interface MBThreadLocalService
SystemException
public List<MBThread> getNoAssetThreads() throws SystemException
getNoAssetThreads
in interface MBThreadLocalService
SystemException
public List<MBThread> getPriorityThreads(long categoryId, double priority) throws PortalException, SystemException
getPriorityThreads
in interface MBThreadLocalService
PortalException
SystemException
public List<MBThread> getPriorityThreads(long categoryId, double priority, boolean inherit) throws PortalException, SystemException
getPriorityThreads
in interface MBThreadLocalService
PortalException
SystemException
public MBThread getThread(long threadId) throws PortalException, SystemException
getThread
in interface MBThreadLocalService
PortalException
SystemException
public List<MBThread> getThreads(long groupId, long categoryId, int status, int start, int end) throws SystemException
getThreads
in interface MBThreadLocalService
SystemException
public int getThreadsCount(long groupId, long categoryId, int status) throws SystemException
getThreadsCount
in interface MBThreadLocalService
SystemException
public boolean hasAnswerMessage(long threadId) throws SystemException
hasAnswerMessage
in interface MBThreadLocalService
SystemException
public MBThread incrementViewCounter(long threadId, int increment) throws PortalException, SystemException
incrementViewCounter
in interface MBThreadLocalService
PortalException
SystemException
public void moveDependentsToTrash(long groupId, long threadId, long trashEntryId) throws PortalException, SystemException
moveDependentsToTrash
in interface MBThreadLocalService
PortalException
SystemException
public MBThread moveThread(long groupId, long categoryId, long threadId) throws PortalException, SystemException
moveThread
in interface MBThreadLocalService
PortalException
SystemException
public MBThread moveThreadFromTrash(long userId, long categoryId, long threadId) throws PortalException, SystemException
moveThreadFromTrash
in interface MBThreadLocalService
PortalException
SystemException
public void moveThreadsToTrash(long groupId, long userId) throws PortalException, SystemException
moveThreadsToTrash
in interface MBThreadLocalService
PortalException
SystemException
public MBThread moveThreadToTrash(long userId, long threadId) throws PortalException, SystemException
moveThreadToTrash
in interface MBThreadLocalService
PortalException
SystemException
public MBThread moveThreadToTrash(long userId, MBThread thread) throws PortalException, SystemException
moveThreadToTrash
in interface MBThreadLocalService
PortalException
SystemException
public void restoreDependentsFromTrash(long groupId, long threadId, long trashEntryId) throws PortalException, SystemException
restoreDependentsFromTrash
in interface MBThreadLocalService
PortalException
SystemException
public void restoreThreadFromTrash(long userId, long threadId) throws PortalException, SystemException
restoreThreadFromTrash
in interface MBThreadLocalService
PortalException
SystemException
public Hits search(long groupId, long userId, long creatorUserId, int status, int start, int end) throws PortalException, SystemException
search
in interface MBThreadLocalService
PortalException
SystemException
public Hits search(long groupId, long userId, long creatorUserId, long startDate, long endDate, int status, int start, int end) throws PortalException, SystemException
search
in interface MBThreadLocalService
PortalException
SystemException
public MBThread splitThread(long messageId, String subject, ServiceContext serviceContext) throws PortalException, SystemException
splitThread
in interface MBThreadLocalService
PortalException
SystemException
public void updateQuestion(long threadId, boolean question) throws PortalException, SystemException
updateQuestion
in interface MBThreadLocalService
PortalException
SystemException
public MBThread updateStatus(long userId, long threadId, int status) throws PortalException, SystemException
updateStatus
in interface MBThreadLocalService
PortalException
SystemException
public MBThread updateThread(long threadId, int viewCount) throws PortalException, SystemException
incrementViewCounter(long,
int)
updateThread
in interface MBThreadLocalService
PortalException
SystemException
public MBThreadLocalService getWrappedMBThreadLocalService()
getWrappedService()
public void setWrappedMBThreadLocalService(MBThreadLocalService mbThreadLocalService)
setWrappedService(com.liferay.portlet.messageboards.service.MBThreadLocalService)
public MBThreadLocalService getWrappedService()
getWrappedService
in interface ServiceWrapper<MBThreadLocalService>
public void setWrappedService(MBThreadLocalService mbThreadLocalService)
setWrappedService
in interface ServiceWrapper<MBThreadLocalService>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |