001
014
015 package com.liferay.portlet.messageboards.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface MBThreadService {
043 public void deleteThread(long threadId)
044 throws com.liferay.portal.kernel.exception.PortalException,
045 com.liferay.portal.kernel.exception.SystemException;
046
047 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
048 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
049 long groupId, long userId, int status, boolean subscribed,
050 boolean includeAnonymous, int start, int end)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
055 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
056 long groupId, long userId, int status, boolean subscribed, int start,
057 int end)
058 throws com.liferay.portal.kernel.exception.PortalException,
059 com.liferay.portal.kernel.exception.SystemException;
060
061 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
062 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
063 long groupId, long userId, int status, int start, int end)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException;
066
067 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
068 public int getGroupThreadsCount(long groupId, long userId, int status)
069 throws com.liferay.portal.kernel.exception.SystemException;
070
071 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
072 public int getGroupThreadsCount(long groupId, long userId, int status,
073 boolean subscribed)
074 throws com.liferay.portal.kernel.exception.SystemException;
075
076 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077 public int getGroupThreadsCount(long groupId, long userId, int status,
078 boolean subscribed, boolean includeAnonymous)
079 throws com.liferay.portal.kernel.exception.SystemException;
080
081 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
083 long groupId, long categoryId, int status, int start, int end)
084 throws com.liferay.portal.kernel.exception.SystemException;
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public int getThreadsCount(long groupId, long categoryId, int status)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 public com.liferay.portal.model.Lock lockThread(long threadId)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portlet.messageboards.model.MBThread moveThread(
095 long categoryId, long threadId)
096 throws com.liferay.portal.kernel.exception.PortalException,
097 com.liferay.portal.kernel.exception.SystemException;
098
099 public com.liferay.portlet.messageboards.model.MBThread splitThread(
100 long messageId, com.liferay.portal.service.ServiceContext serviceContext)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException;
103
104 public void unlockThread(long threadId)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException;
107 }