001
014
015 package com.liferay.portlet.messageboards.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022 import com.liferay.portal.kernel.security.access.control.AccessControlled;
023 import com.liferay.portal.kernel.transaction.Isolation;
024 import com.liferay.portal.kernel.transaction.Propagation;
025 import com.liferay.portal.kernel.transaction.Transactional;
026 import com.liferay.portal.service.BaseService;
027
028
039 @AccessControlled
040 @JSONWebService
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface MBThreadService extends BaseService {
045
050 public void deleteThread(long threadId) throws PortalException;
051
052
057 public java.lang.String getBeanIdentifier();
058
059 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
060 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
061 long groupId, long userId, java.util.Date modifiedDate, int status,
062 int start, int end) throws PortalException;
063
064 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
065 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
066 long groupId, long userId, int status, int start, int end)
067 throws PortalException;
068
069 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
071 long groupId, long userId, int status, boolean subscribed,
072 boolean includeAnonymous, int start, int end) throws PortalException;
073
074 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
076 long groupId, long userId, int status, boolean subscribed, int start,
077 int end) throws PortalException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public int getGroupThreadsCount(long groupId, long userId,
081 java.util.Date modifiedDate, int status);
082
083 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084 public int getGroupThreadsCount(long groupId, long userId, int status);
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public int getGroupThreadsCount(long groupId, long userId, int status,
088 boolean subscribed);
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public int getGroupThreadsCount(long groupId, long userId, int status,
092 boolean subscribed, boolean includeAnonymous);
093
094 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
096 long groupId, long categoryId, int status, int start, int end);
097
098 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099 public int getThreadsCount(long groupId, long categoryId, int status);
100
101 public com.liferay.portal.kernel.lock.Lock lockThread(long threadId)
102 throws PortalException;
103
104 public com.liferay.portlet.messageboards.model.MBThread moveThread(
105 long categoryId, long threadId) throws PortalException;
106
107 public com.liferay.portlet.messageboards.model.MBThread moveThreadFromTrash(
108 long categoryId, long threadId) throws PortalException;
109
110 public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
111 long threadId) throws PortalException;
112
113 public void restoreThreadFromTrash(long threadId) throws PortalException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public com.liferay.portal.kernel.search.Hits search(long groupId,
117 long creatorUserId, long startDate, long endDate, int status,
118 int start, int end) throws PortalException;
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public com.liferay.portal.kernel.search.Hits search(long groupId,
122 long creatorUserId, int status, int start, int end)
123 throws PortalException;
124
125
130 public void setBeanIdentifier(java.lang.String beanIdentifier);
131
132 public com.liferay.portlet.messageboards.model.MBThread splitThread(
133 long messageId, java.lang.String subject,
134 com.liferay.portal.service.ServiceContext serviceContext)
135 throws PortalException;
136
137 public void unlockThread(long threadId) throws PortalException;
138 }