|
Liferay 6.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface MBThreadLocalService
Provides the local service interface for MBThread. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
MBThreadLocalServiceUtil
,
MBThreadLocalServiceBaseImpl
,
MBThreadLocalServiceImpl
Method Summary | |
---|---|
abstract MBThread |
addMBThread(MBThread mbThread)
Adds the message boards thread to the database. |
abstract MBThread |
addThread(long categoryId,
MBMessage message,
ServiceContext serviceContext)
|
abstract MBThread |
createMBThread(long threadId)
Creates a new message boards thread with the primary key. |
abstract MBThread |
deleteMBThread(long threadId)
Deletes the message boards thread with the primary key from the database. |
abstract MBThread |
deleteMBThread(MBThread mbThread)
Deletes the message boards thread from the database. |
abstract void |
deleteThread(long threadId)
|
abstract void |
deleteThread(MBThread thread)
|
abstract void |
deleteThreads(long groupId,
long categoryId)
|
abstract void |
deleteThreads(long groupId,
long categoryId,
boolean includeTrashedEntries)
|
abstract DynamicQuery |
dynamicQuery()
|
abstract List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
abstract List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
abstract 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. |
abstract long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query. |
abstract long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows that match the dynamic query. |
abstract MBThread |
fetchMBThread(long threadId)
|
abstract MBThread |
fetchMBThreadByUuidAndCompanyId(String uuid,
long companyId)
Returns the message boards thread with the matching UUID and company. |
abstract MBThread |
fetchMBThreadByUuidAndGroupId(String uuid,
long groupId)
Returns the message boards thread matching the UUID and group. |
abstract MBThread |
fetchThread(long threadId)
|
abstract String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
abstract int |
getCategoryThreadsCount(long groupId,
long categoryId,
int status)
|
abstract List<MBThread> |
getGroupThreads(long groupId,
int status,
int start,
int end)
Deprecated. As of 6.2.0, replaced by getGroupThreads(long,
QueryDefinition) |
abstract List<MBThread> |
getGroupThreads(long groupId,
long userId,
boolean subscribed,
boolean includeAnonymous,
QueryDefinition queryDefinition)
|
abstract List<MBThread> |
getGroupThreads(long groupId,
long userId,
boolean subscribed,
QueryDefinition queryDefinition)
|
abstract 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) |
abstract 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) |
abstract 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) |
abstract List<MBThread> |
getGroupThreads(long groupId,
long userId,
QueryDefinition queryDefinition)
|
abstract List<MBThread> |
getGroupThreads(long groupId,
QueryDefinition queryDefinition)
|
abstract int |
getGroupThreadsCount(long groupId,
int status)
Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long,
QueryDefinition) |
abstract int |
getGroupThreadsCount(long groupId,
long userId,
boolean subscribed,
boolean includeAnonymous,
QueryDefinition queryDefinition)
|
abstract int |
getGroupThreadsCount(long groupId,
long userId,
boolean subscribed,
QueryDefinition queryDefinition)
|
abstract int |
getGroupThreadsCount(long groupId,
long userId,
int status)
Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long,
long, QueryDefinition) |
abstract int |
getGroupThreadsCount(long groupId,
long userId,
int status,
boolean subscribed)
Deprecated. As of 6.2.0, replaced by getGroupThreadsCount(long,
long, boolean, QueryDefinition) |
abstract 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) |
abstract int |
getGroupThreadsCount(long groupId,
long userId,
QueryDefinition queryDefinition)
|
abstract int |
getGroupThreadsCount(long groupId,
QueryDefinition queryDefinition)
|
abstract MBThread |
getMBThread(long threadId)
Returns the message boards thread with the primary key. |
abstract MBThread |
getMBThreadByUuidAndCompanyId(String uuid,
long companyId)
Returns the message boards thread with the matching UUID and company. |
abstract MBThread |
getMBThreadByUuidAndGroupId(String uuid,
long groupId)
Returns the message boards thread matching the UUID and group. |
abstract List<MBThread> |
getMBThreads(int start,
int end)
Returns a range of all the message boards threads. |
abstract int |
getMBThreadsCount()
Returns the number of message boards threads. |
abstract List<MBThread> |
getNoAssetThreads()
|
abstract PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
abstract List<MBThread> |
getPriorityThreads(long categoryId,
double priority)
|
abstract List<MBThread> |
getPriorityThreads(long categoryId,
double priority,
boolean inherit)
|
abstract MBThread |
getThread(long threadId)
|
abstract List<MBThread> |
getThreads(long groupId,
long categoryId,
int status,
int start,
int end)
|
abstract int |
getThreadsCount(long groupId,
long categoryId,
int status)
|
abstract boolean |
hasAnswerMessage(long threadId)
|
abstract MBThread |
incrementViewCounter(long threadId,
int increment)
|
abstract void |
moveDependentsToTrash(long groupId,
long threadId,
long trashEntryId)
|
abstract MBThread |
moveThread(long groupId,
long categoryId,
long threadId)
|
abstract MBThread |
moveThreadFromTrash(long userId,
long categoryId,
long threadId)
|
abstract void |
moveThreadsToTrash(long groupId,
long userId)
|
abstract MBThread |
moveThreadToTrash(long userId,
long threadId)
|
abstract MBThread |
moveThreadToTrash(long userId,
MBThread thread)
|
abstract void |
restoreDependentsFromTrash(long groupId,
long threadId,
long trashEntryId)
|
abstract void |
restoreThreadFromTrash(long userId,
long threadId)
|
abstract Hits |
search(long groupId,
long userId,
long creatorUserId,
int status,
int start,
int end)
|
abstract Hits |
search(long groupId,
long userId,
long creatorUserId,
long startDate,
long endDate,
int status,
int start,
int end)
|
abstract void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
abstract MBThread |
splitThread(long messageId,
String subject,
ServiceContext serviceContext)
|
abstract MBThread |
updateMBThread(MBThread mbThread)
Updates the message boards thread in the database or adds it if it does not yet exist. |
abstract void |
updateQuestion(long threadId,
boolean question)
|
abstract MBThread |
updateStatus(long userId,
long threadId,
int status)
|
abstract MBThread |
updateThread(long threadId,
int viewCount)
Deprecated. As of 6.2.0, replaced by incrementViewCounter(long,
int) |
Method Detail |
---|
MBThread addMBThread(MBThread mbThread) throws SystemException
mbThread
- the message boards thread
SystemException
- if a system exception occurredMBThread createMBThread(long threadId)
threadId
- the primary key for the new message boards thread
MBThread deleteMBThread(long threadId) throws PortalException, SystemException
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 occurredMBThread deleteMBThread(MBThread mbThread) throws SystemException
mbThread
- the message boards thread
SystemException
- if a system exception occurredDynamicQuery dynamicQuery()
List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredList 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
- 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 occurredList 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
- 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 occurredlong dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredlong dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) MBThread fetchMBThread(long threadId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) MBThread fetchMBThreadByUuidAndCompanyId(String uuid, long companyId) throws SystemException
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 occurred@Transactional(propagation=SUPPORTS, readOnly=true) MBThread fetchMBThreadByUuidAndGroupId(String uuid, long groupId) throws SystemException
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 occurred@Transactional(propagation=SUPPORTS, readOnly=true) MBThread getMBThread(long threadId) throws PortalException, SystemException
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 occurred@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException, SystemException
getPersistedModel
in interface PersistedModelLocalService
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) MBThread getMBThreadByUuidAndCompanyId(String uuid, long companyId) throws PortalException, SystemException
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 occurred@Transactional(propagation=SUPPORTS, readOnly=true) MBThread getMBThreadByUuidAndGroupId(String uuid, long groupId) throws PortalException, SystemException
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 occurred@Transactional(propagation=SUPPORTS, readOnly=true) 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.
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 occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getMBThreadsCount() throws SystemException
SystemException
- if a system exception occurredMBThread updateMBThread(MBThread mbThread) throws SystemException
mbThread
- the message boards thread
SystemException
- if a system exception occurredString getBeanIdentifier()
void setBeanIdentifier(String beanIdentifier)
beanIdentifier
- the Spring bean ID for this beanMBThread addThread(long categoryId, MBMessage message, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
void deleteThread(long threadId) throws PortalException, SystemException
PortalException
SystemException
void deleteThread(MBThread thread) throws PortalException, SystemException
PortalException
SystemException
void deleteThreads(long groupId, long categoryId) throws PortalException, SystemException
PortalException
SystemException
void deleteThreads(long groupId, long categoryId, boolean includeTrashedEntries) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) MBThread fetchThread(long threadId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getCategoryThreadsCount(long groupId, long categoryId, int status) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getGroupThreads(long groupId, int status, int start, int end) throws SystemException
getGroupThreads(long,
QueryDefinition)
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, boolean includeAnonymous, QueryDefinition queryDefinition) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getGroupThreads(long groupId, long userId, boolean subscribed, QueryDefinition queryDefinition) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) 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)
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getGroupThreads(long groupId, long userId, int status, boolean subscribed, int start, int end) throws SystemException
getGroupThreads(long, long,
boolean, QueryDefinition)
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getGroupThreads(long groupId, long userId, int status, int start, int end) throws SystemException
getGroupThreads(long, long,
QueryDefinition)
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getGroupThreads(long groupId, long userId, QueryDefinition queryDefinition) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getGroupThreads(long groupId, QueryDefinition queryDefinition) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupThreadsCount(long groupId, int status) throws SystemException
getGroupThreadsCount(long,
QueryDefinition)
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupThreadsCount(long groupId, long userId, boolean subscribed, boolean includeAnonymous, QueryDefinition queryDefinition) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupThreadsCount(long groupId, long userId, boolean subscribed, QueryDefinition queryDefinition) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupThreadsCount(long groupId, long userId, int status) throws SystemException
getGroupThreadsCount(long,
long, QueryDefinition)
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed) throws SystemException
getGroupThreadsCount(long,
long, boolean, QueryDefinition)
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupThreadsCount(long groupId, long userId, int status, boolean subscribed, boolean includeAnonymous) throws SystemException
getGroupThreadsCount(long,
long, boolean, boolean, QueryDefinition)
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupThreadsCount(long groupId, long userId, QueryDefinition queryDefinition) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupThreadsCount(long groupId, QueryDefinition queryDefinition) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getNoAssetThreads() throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getPriorityThreads(long categoryId, double priority) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getPriorityThreads(long categoryId, double priority, boolean inherit) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) MBThread getThread(long threadId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<MBThread> getThreads(long groupId, long categoryId, int status, int start, int end) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getThreadsCount(long groupId, long categoryId, int status) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasAnswerMessage(long threadId) throws SystemException
SystemException
MBThread incrementViewCounter(long threadId, int increment) throws PortalException, SystemException
PortalException
SystemException
void moveDependentsToTrash(long groupId, long threadId, long trashEntryId) throws PortalException, SystemException
PortalException
SystemException
MBThread moveThread(long groupId, long categoryId, long threadId) throws PortalException, SystemException
PortalException
SystemException
MBThread moveThreadFromTrash(long userId, long categoryId, long threadId) throws PortalException, SystemException
PortalException
SystemException
void moveThreadsToTrash(long groupId, long userId) throws PortalException, SystemException
PortalException
SystemException
MBThread moveThreadToTrash(long userId, long threadId) throws PortalException, SystemException
PortalException
SystemException
MBThread moveThreadToTrash(long userId, MBThread thread) throws PortalException, SystemException
PortalException
SystemException
void restoreDependentsFromTrash(long groupId, long threadId, long trashEntryId) throws PortalException, SystemException
PortalException
SystemException
void restoreThreadFromTrash(long userId, long threadId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) Hits search(long groupId, long userId, long creatorUserId, int status, int start, int end) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) Hits search(long groupId, long userId, long creatorUserId, long startDate, long endDate, int status, int start, int end) throws PortalException, SystemException
PortalException
SystemException
MBThread splitThread(long messageId, String subject, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
void updateQuestion(long threadId, boolean question) throws PortalException, SystemException
PortalException
SystemException
MBThread updateStatus(long userId, long threadId, int status) throws PortalException, SystemException
PortalException
SystemException
MBThread updateThread(long threadId, int viewCount) throws PortalException, SystemException
incrementViewCounter(long,
int)
PortalException
SystemException
|
Liferay 6.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |