|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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. |
|
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()
|
|
|
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
|
|
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
|
|
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 |
|---|
public MBThreadLocalServiceWrapper(MBThreadLocalService mbThreadLocalService)
| Method Detail |
|---|
public MBThread addMBThread(MBThread mbThread)
addMBThread in interface MBThreadLocalServicembThread - the message boards thread
public MBThread addThread(long categoryId,
MBMessage message,
ServiceContext serviceContext)
throws PortalException
addThread in interface MBThreadLocalServicePortalExceptionpublic MBThread createMBThread(long threadId)
createMBThread in interface MBThreadLocalServicethreadId - the primary key for the new message boards thread
public MBThread deleteMBThread(MBThread mbThread)
deleteMBThread in interface MBThreadLocalServicembThread - the message boards thread
public MBThread deleteMBThread(long threadId)
throws PortalException
deleteMBThread in interface MBThreadLocalServicethreadId - the primary key of the message boards thread
PortalException - if a message boards thread with the primary key could not be found
public PersistedModel deletePersistedModel(PersistedModel persistedModel)
throws PortalException
deletePersistedModel in interface PersistedModelLocalServicedeletePersistedModel in interface MBThreadLocalServicePortalException
public void deleteThread(MBThread thread)
throws PortalException
deleteThread in interface MBThreadLocalServicePortalException
public void deleteThread(long threadId)
throws PortalException
deleteThread in interface MBThreadLocalServicePortalException
public void deleteThreads(long groupId,
long categoryId)
throws PortalException
deleteThreads in interface MBThreadLocalServicePortalException
public void deleteThreads(long groupId,
long categoryId,
boolean includeTrashedEntries)
throws PortalException
deleteThreads in interface MBThreadLocalServicePortalExceptionpublic DynamicQuery dynamicQuery()
dynamicQuery in interface MBThreadLocalServicepublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery in interface MBThreadLocalServicedynamicQuery - the dynamic query
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
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 MBThreadLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
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 MBThreadLocalServicedynamicQuery - 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)
public long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQueryCount in interface MBThreadLocalServicedynamicQuery - the dynamic query
public long dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
dynamicQueryCount in interface MBThreadLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the query
public MBThread fetchMBThread(long threadId)
fetchMBThread in interface MBThreadLocalService
public MBThread fetchMBThreadByUuidAndGroupId(String uuid,
long groupId)
fetchMBThreadByUuidAndGroupId in interface MBThreadLocalServiceuuid - the message boards thread's UUIDgroupId - the primary key of the group
null if a matching message boards thread could not be foundpublic MBThread fetchThread(long threadId)
fetchThread in interface MBThreadLocalServicepublic ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface MBThreadLocalService
public int getCategoryThreadsCount(long groupId,
long categoryId,
int status)
getCategoryThreadsCount in interface MBThreadLocalServicepublic ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
getExportActionableDynamicQuery in interface MBThreadLocalService
public List<MBThread> getGroupThreads(long groupId,
QueryDefinition<MBThread> queryDefinition)
getGroupThreads in interface MBThreadLocalService
@Deprecated
public List<MBThread> getGroupThreads(long groupId,
int status,
int start,
int end)
getGroupThreads(long,
QueryDefinition)
getGroupThreads in interface MBThreadLocalService
public List<MBThread> getGroupThreads(long groupId,
long userId,
QueryDefinition<MBThread> queryDefinition)
getGroupThreads in interface MBThreadLocalService
@Deprecated
public List<MBThread> getGroupThreads(long groupId,
long userId,
int status,
int start,
int end)
getGroupThreads(long, long,
QueryDefinition)
getGroupThreads in interface MBThreadLocalService
@Deprecated
public List<MBThread> getGroupThreads(long groupId,
long userId,
int status,
boolean subscribed,
boolean includeAnonymous,
int start,
int end)
getGroupThreads(long, long,
boolean, boolean, QueryDefinition)
getGroupThreads in interface MBThreadLocalService
@Deprecated
public List<MBThread> getGroupThreads(long groupId,
long userId,
int status,
boolean subscribed,
int start,
int end)
getGroupThreads(long, long,
boolean, QueryDefinition)
getGroupThreads in interface MBThreadLocalService
public List<MBThread> getGroupThreads(long groupId,
long userId,
boolean subscribed,
boolean includeAnonymous,
QueryDefinition<MBThread> queryDefinition)
getGroupThreads in interface MBThreadLocalService
public List<MBThread> getGroupThreads(long groupId,
long userId,
boolean subscribed,
QueryDefinition<MBThread> queryDefinition)
getGroupThreads in interface MBThreadLocalService
public int getGroupThreadsCount(long groupId,
QueryDefinition<MBThread> queryDefinition)
getGroupThreadsCount in interface MBThreadLocalService
@Deprecated
public int getGroupThreadsCount(long groupId,
int status)
getGroupThreadsCount(long,
QueryDefinition)
getGroupThreadsCount in interface MBThreadLocalService
public int getGroupThreadsCount(long groupId,
long userId,
QueryDefinition<MBThread> queryDefinition)
getGroupThreadsCount in interface MBThreadLocalService
@Deprecated
public int getGroupThreadsCount(long groupId,
long userId,
int status)
getGroupThreadsCount(long,
long, QueryDefinition)
getGroupThreadsCount in interface MBThreadLocalService
@Deprecated
public int getGroupThreadsCount(long groupId,
long userId,
int status,
boolean subscribed)
getGroupThreadsCount(long,
long, boolean, QueryDefinition)
getGroupThreadsCount in interface MBThreadLocalService
@Deprecated
public int getGroupThreadsCount(long groupId,
long userId,
int status,
boolean subscribed,
boolean includeAnonymous)
getGroupThreadsCount(long,
long, boolean, boolean, QueryDefinition)
getGroupThreadsCount in interface MBThreadLocalService
public int getGroupThreadsCount(long groupId,
long userId,
boolean subscribed,
boolean includeAnonymous,
QueryDefinition<MBThread> queryDefinition)
getGroupThreadsCount in interface MBThreadLocalService
public int getGroupThreadsCount(long groupId,
long userId,
boolean subscribed,
QueryDefinition<MBThread> queryDefinition)
getGroupThreadsCount in interface MBThreadLocalServicepublic IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface MBThreadLocalService
public MBThread getMBThread(long threadId)
throws PortalException
getMBThread in interface MBThreadLocalServicethreadId - the primary key of the message boards thread
PortalException - if a message boards thread with the primary key could not be found
public MBThread getMBThreadByUuidAndGroupId(String uuid,
long groupId)
throws PortalException
getMBThreadByUuidAndGroupId in interface MBThreadLocalServiceuuid - the message boards thread's UUIDgroupId - the primary key of the group
PortalException - if a matching message boards thread could not be found
public List<MBThread> getMBThreads(int start,
int end)
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 MBThreadLocalServicestart - the lower bound of the range of message boards threadsend - the upper bound of the range of message boards threads (not inclusive)
public List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid,
long companyId)
getMBThreadsByUuidAndCompanyId in interface MBThreadLocalServiceuuid - the UUID of the message boards threadscompanyId - the primary key of the company
public List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<MBThread> orderByComparator)
getMBThreadsByUuidAndCompanyId in interface MBThreadLocalServiceuuid - the UUID of the message boards threadscompanyId - the primary key of the companystart - the lower bound of the range of message boards threadsend - the upper bound of the range of message boards threads (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public int getMBThreadsCount()
getMBThreadsCount in interface MBThreadLocalServicepublic List<MBThread> getNoAssetThreads()
getNoAssetThreads in interface MBThreadLocalServicepublic String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface MBThreadLocalService
public PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException
getPersistedModel in interface PersistedModelLocalServicegetPersistedModel in interface MBThreadLocalServicePortalException
public List<MBThread> getPriorityThreads(long categoryId,
double priority)
throws PortalException
getPriorityThreads in interface MBThreadLocalServicePortalException
public List<MBThread> getPriorityThreads(long categoryId,
double priority,
boolean inherit)
throws PortalException
getPriorityThreads in interface MBThreadLocalServicePortalException
public MBThread getThread(long threadId)
throws PortalException
getThread in interface MBThreadLocalServicePortalException
public List<MBThread> getThreads(long groupId,
long categoryId,
int status,
int start,
int end)
getThreads in interface MBThreadLocalService
public int getThreadsCount(long groupId,
long categoryId,
int status)
getThreadsCount in interface MBThreadLocalServicepublic boolean hasAnswerMessage(long threadId)
hasAnswerMessage in interface MBThreadLocalService
public void incrementViewCounter(long threadId,
int increment)
throws PortalException
incrementViewCounter in interface MBThreadLocalServicePortalException
public void moveDependentsToTrash(long groupId,
long threadId,
long trashEntryId)
throws PortalException
moveDependentsToTrash in interface MBThreadLocalServicePortalException
public MBThread moveThread(long groupId,
long categoryId,
long threadId)
throws PortalException
moveThread in interface MBThreadLocalServicePortalException
public MBThread moveThreadFromTrash(long userId,
long categoryId,
long threadId)
throws PortalException
moveThreadFromTrash in interface MBThreadLocalServicePortalException
public MBThread moveThreadToTrash(long userId,
MBThread thread)
throws PortalException
moveThreadToTrash in interface MBThreadLocalServicePortalException
public MBThread moveThreadToTrash(long userId,
long threadId)
throws PortalException
moveThreadToTrash in interface MBThreadLocalServicePortalException
public void moveThreadsToTrash(long groupId,
long userId)
throws PortalException
moveThreadsToTrash in interface MBThreadLocalServicePortalException
public void restoreDependentsFromTrash(long groupId,
long threadId)
throws PortalException
restoreDependentsFromTrash in interface MBThreadLocalServicePortalException
@Deprecated
public void restoreDependentsFromTrash(long groupId,
long threadId,
long trashEntryId)
throws PortalException
restoreDependentsFromTrash(long, long)
restoreDependentsFromTrash in interface MBThreadLocalServicePortalException
public void restoreThreadFromTrash(long userId,
long threadId)
throws PortalException
restoreThreadFromTrash in interface MBThreadLocalServicePortalException
public Hits search(long groupId,
long userId,
long creatorUserId,
long startDate,
long endDate,
int status,
int start,
int end)
throws PortalException
search in interface MBThreadLocalServicePortalException
public Hits search(long groupId,
long userId,
long creatorUserId,
int status,
int start,
int end)
throws PortalException
search in interface MBThreadLocalServicePortalException
public MBThread splitThread(long userId,
long messageId,
String subject,
ServiceContext serviceContext)
throws PortalException
splitThread in interface MBThreadLocalServicePortalExceptionpublic MBThread updateMBThread(MBThread mbThread)
updateMBThread in interface MBThreadLocalServicembThread - the message boards thread
public MBThread updateMessageCount(long threadId)
updateMessageCount in interface MBThreadLocalService
public void updateQuestion(long threadId,
boolean question)
throws PortalException
updateQuestion in interface MBThreadLocalServicePortalException
public MBThread updateStatus(long userId,
long threadId,
int status)
throws PortalException
updateStatus in interface MBThreadLocalServicePortalException
@Deprecated
public MBThread updateThread(long threadId,
int viewCount)
throws PortalException
incrementViewCounter(long,
int)
updateThread in interface MBThreadLocalServicePortalExceptionpublic MBThreadLocalService getWrappedService()
getWrappedService in interface ServiceWrapper<MBThreadLocalService>public void setWrappedService(MBThreadLocalService mbThreadLocalService)
setWrappedService in interface ServiceWrapper<MBThreadLocalService>
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||