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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
053 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
054 long groupId, long userId, java.util.Date modifiedDate, int status,
055 int start, int end) throws PortalException;
056
057 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
058 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
059 long groupId, long userId, int status, int start, int end)
060 throws PortalException;
061
062 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
063 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
064 long groupId, long userId, int status, boolean subscribed,
065 boolean includeAnonymous, int start, int end) throws PortalException;
066
067 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
068 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
069 long groupId, long userId, int status, boolean subscribed, int start,
070 int end) throws PortalException;
071
072 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073 public int getGroupThreadsCount(long groupId, long userId,
074 java.util.Date modifiedDate, int status);
075
076 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077 public int getGroupThreadsCount(long groupId, long userId, int status);
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public int getGroupThreadsCount(long groupId, long userId, int status,
081 boolean subscribed);
082
083 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084 public int getGroupThreadsCount(long groupId, long userId, int status,
085 boolean subscribed, boolean includeAnonymous);
086
087
092 public java.lang.String getOSGiServiceIdentifier();
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 public com.liferay.portlet.messageboards.model.MBThread splitThread(
126 long messageId, java.lang.String subject,
127 com.liferay.portal.service.ServiceContext serviceContext)
128 throws PortalException;
129
130 public void unlockThread(long threadId) throws PortalException;
131 }