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.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.PersistedModelLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface MBThreadLocalService extends PersistedModelLocalService {
040
045
046
053 public com.liferay.portlet.messageboards.model.MBThread addMBThread(
054 com.liferay.portlet.messageboards.model.MBThread mbThread)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portlet.messageboards.model.MBThread createMBThread(
064 long threadId);
065
066
073 public void deleteMBThread(long threadId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077
083 public void deleteMBThread(
084 com.liferay.portlet.messageboards.model.MBThread mbThread)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087
094 @SuppressWarnings("rawtypes")
095 public java.util.List dynamicQuery(
096 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099
112 @SuppressWarnings("rawtypes")
113 public java.util.List dynamicQuery(
114 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115 int end) throws com.liferay.portal.kernel.exception.SystemException;
116
117
131 @SuppressWarnings("rawtypes")
132 public java.util.List dynamicQuery(
133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134 int end,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138
145 public long dynamicQueryCount(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public com.liferay.portlet.messageboards.model.MBThread getMBThread(
159 long threadId)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portal.model.PersistedModel getPersistedModel(
165 java.io.Serializable primaryKeyObj)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
183 int start, int end)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public int getMBThreadsCount()
194 throws com.liferay.portal.kernel.exception.SystemException;
195
196
203 public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
204 com.liferay.portlet.messageboards.model.MBThread mbThread)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207
215 public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
216 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
217 throws com.liferay.portal.kernel.exception.SystemException;
218
219
224 public java.lang.String getBeanIdentifier();
225
226
231 public void setBeanIdentifier(java.lang.String beanIdentifier);
232
233 public void deleteThread(long threadId)
234 throws com.liferay.portal.kernel.exception.PortalException,
235 com.liferay.portal.kernel.exception.SystemException;
236
237 public void deleteThread(
238 com.liferay.portlet.messageboards.model.MBThread thread)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException;
241
242 public void deleteThreads(long groupId, long categoryId)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException;
245
246 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247 public int getCategoryThreadsCount(long groupId, long categoryId, int status)
248 throws com.liferay.portal.kernel.exception.SystemException;
249
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
252 long groupId, int status, int start, int end)
253 throws com.liferay.portal.kernel.exception.SystemException;
254
255 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
257 long groupId, long userId, int status, boolean subscribed,
258 boolean includeAnonymous, int start, int end)
259 throws com.liferay.portal.kernel.exception.PortalException,
260 com.liferay.portal.kernel.exception.SystemException;
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
264 long groupId, long userId, int status, boolean subscribed, int start,
265 int end)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException;
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
271 long groupId, long userId, int status, int start, int end)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException;
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public int getGroupThreadsCount(long groupId, int status)
277 throws com.liferay.portal.kernel.exception.SystemException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public int getGroupThreadsCount(long groupId, long userId, int status)
281 throws com.liferay.portal.kernel.exception.SystemException;
282
283 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284 public int getGroupThreadsCount(long groupId, long userId, int status,
285 boolean subscribed)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public int getGroupThreadsCount(long groupId, long userId, int status,
290 boolean subscribed, boolean includeAnonymous)
291 throws com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
295 long categoryId, double priority)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
301 long categoryId, double priority, boolean inherit)
302 throws com.liferay.portal.kernel.exception.PortalException,
303 com.liferay.portal.kernel.exception.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public com.liferay.portlet.messageboards.model.MBThread getThread(
307 long threadId)
308 throws com.liferay.portal.kernel.exception.PortalException,
309 com.liferay.portal.kernel.exception.SystemException;
310
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
313 long groupId, long categoryId, int status, int start, int end)
314 throws com.liferay.portal.kernel.exception.SystemException;
315
316 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317 public int getThreadsCount(long groupId, long categoryId, int status)
318 throws com.liferay.portal.kernel.exception.SystemException;
319
320 public com.liferay.portlet.messageboards.model.MBThread moveThread(
321 long groupId, long categoryId, long threadId)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException;
324
325 public com.liferay.portlet.messageboards.model.MBThread splitThread(
326 long messageId, com.liferay.portal.service.ServiceContext serviceContext)
327 throws com.liferay.portal.kernel.exception.PortalException,
328 com.liferay.portal.kernel.exception.SystemException;
329
330 public com.liferay.portlet.messageboards.model.MBThread updateThread(
331 long threadId, int viewCount)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException;
334 }