com.liferay.portlet.messageboards.service
Interface MBThreadLocalService
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface MBThreadLocalService
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This interface defines the service. The default implementation is
com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl
.
Modify methods in that class and rerun ServiceBuilder to populate this class
and all other generated classes.
This is a local service. 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.
- Author:
- Brian Wing Shun Chan
- See Also:
MBThreadLocalServiceUtil
Method Summary |
MBThread |
addMBThread(MBThread mbThread)
|
MBThread |
createMBThread(long threadId)
|
void |
deleteMBThread(long threadId)
|
void |
deleteMBThread(MBThread mbThread)
|
void |
deleteThread(long threadId)
|
void |
deleteThread(MBThread thread)
|
void |
deleteThreads(long categoryId)
|
java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
int |
getCategoriesThreadsCount(java.util.List<java.lang.Long> categoryIds)
|
java.util.List<MBThread> |
getGroupThreads(long groupId,
int start,
int end)
|
java.util.List<MBThread> |
getGroupThreads(long groupId,
long userId,
boolean subscribed,
boolean includeAnonymous,
int start,
int end)
|
java.util.List<MBThread> |
getGroupThreads(long groupId,
long userId,
boolean subscribed,
int start,
int end)
|
java.util.List<MBThread> |
getGroupThreads(long groupId,
long userId,
int start,
int end)
|
int |
getGroupThreadsCount(long groupId)
|
int |
getGroupThreadsCount(long groupId,
long userId)
|
int |
getGroupThreadsCount(long groupId,
long userId,
boolean subscribed)
|
int |
getGroupThreadsCount(long groupId,
long userId,
boolean subscribed,
boolean includeAnonymous)
|
MBThread |
getMBThread(long threadId)
|
java.util.List<MBThread> |
getMBThreads(int start,
int end)
|
int |
getMBThreadsCount()
|
MBThread |
getThread(long threadId)
|
java.util.List<MBThread> |
getThreads(long categoryId,
int start,
int end)
|
int |
getThreadsCount(long categoryId)
|
boolean |
hasReadThread(long userId,
long threadId)
|
MBThread |
moveThread(long categoryId,
long threadId)
|
MBThread |
splitThread(long messageId,
ServiceContext serviceContext)
|
MBThread |
updateMBThread(MBThread mbThread)
|
MBThread |
updateThread(long threadId,
int viewCount)
|
addMBThread
MBThread addMBThread(MBThread mbThread)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createMBThread
MBThread createMBThread(long threadId)
deleteMBThread
void deleteMBThread(long threadId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteMBThread
void deleteMBThread(MBThread mbThread)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getMBThread
@Transactional(propagation=SUPPORTS,
readOnly=true)
MBThread getMBThread(long threadId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getMBThreads
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<MBThread> getMBThreads(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getMBThreadsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getMBThreadsCount()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateMBThread
MBThread updateMBThread(MBThread mbThread)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
deleteThread
void deleteThread(long threadId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteThread
void deleteThread(MBThread thread)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteThreads
void deleteThreads(long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getCategoriesThreadsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getCategoriesThreadsCount(java.util.List<java.lang.Long> categoryIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupThreads
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<MBThread> getGroupThreads(long groupId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupThreads
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<MBThread> getGroupThreads(long groupId,
long userId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupThreads
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<MBThread> getGroupThreads(long groupId,
long userId,
boolean subscribed,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupThreads
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<MBThread> getGroupThreads(long groupId,
long userId,
boolean subscribed,
boolean includeAnonymous,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupThreadsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getGroupThreadsCount(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupThreadsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getGroupThreadsCount(long groupId,
long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupThreadsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getGroupThreadsCount(long groupId,
long userId,
boolean subscribed)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupThreadsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getGroupThreadsCount(long groupId,
long userId,
boolean subscribed,
boolean includeAnonymous)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getThread
@Transactional(propagation=SUPPORTS,
readOnly=true)
MBThread getThread(long threadId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getThreads
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<MBThread> getThreads(long categoryId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getThreadsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getThreadsCount(long categoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasReadThread
boolean hasReadThread(long userId,
long threadId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
moveThread
MBThread moveThread(long categoryId,
long threadId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
splitThread
MBThread splitThread(long messageId,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateThread
MBThread updateThread(long threadId,
int viewCount)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException