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