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
024
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface MBThreadService {
041
046 public void deleteThread(long threadId)
047 throws com.liferay.portal.kernel.exception.PortalException,
048 com.liferay.portal.kernel.exception.SystemException;
049
050 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
051 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
052 long groupId, long userId, int status, boolean subscribed,
053 boolean includeAnonymous, int start, int end)
054 throws com.liferay.portal.kernel.exception.PortalException,
055 com.liferay.portal.kernel.exception.SystemException;
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, boolean subscribed, int start,
060 int end)
061 throws com.liferay.portal.kernel.exception.PortalException,
062 com.liferay.portal.kernel.exception.SystemException;
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 com.liferay.portal.kernel.exception.PortalException,
068 com.liferay.portal.kernel.exception.SystemException;
069
070 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
071 public int getGroupThreadsCount(long groupId, long userId, int status)
072 throws com.liferay.portal.kernel.exception.SystemException;
073
074 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075 public int getGroupThreadsCount(long groupId, long userId, int status,
076 boolean subscribed)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public int getGroupThreadsCount(long groupId, long userId, int status,
081 boolean subscribed, boolean includeAnonymous)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
086 long groupId, long categoryId, int status, int start, int end)
087 throws com.liferay.portal.kernel.exception.SystemException;
088
089 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
090 public int getThreadsCount(long groupId, long categoryId, int status)
091 throws com.liferay.portal.kernel.exception.SystemException;
092
093 public com.liferay.portal.model.Lock lockThread(long threadId)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException;
096
097 public com.liferay.portlet.messageboards.model.MBThread moveThread(
098 long categoryId, long threadId)
099 throws com.liferay.portal.kernel.exception.PortalException,
100 com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.messageboards.model.MBThread splitThread(
103 long messageId, java.lang.String subject,
104 com.liferay.portal.service.ServiceContext serviceContext)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException;
107
108 public void unlockThread(long threadId)
109 throws com.liferay.portal.kernel.exception.PortalException,
110 com.liferay.portal.kernel.exception.SystemException;
111 }