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.service.BaseService;
024
025
038 @JSONWebService
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface MBMessageService extends BaseService {
042
047
048
053 public java.lang.String getBeanIdentifier();
054
055
060 public void setBeanIdentifier(java.lang.String beanIdentifier);
061
062 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
063 long groupId, java.lang.String className, long classPK,
064 java.lang.String permissionClassName, long permissionClassPK,
065 long permissionOwnerId, long threadId, long parentMessageId,
066 java.lang.String subject, java.lang.String body,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException;
070
071
076 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
077 long groupId, long categoryId, long threadId, long parentMessageId,
078 java.lang.String subject, java.lang.String body,
079 java.lang.String format,
080 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
081 boolean anonymous, double priority, boolean allowPingbacks,
082 com.liferay.portal.service.ServiceContext serviceContext)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException;
085
086 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
087 long groupId, long categoryId, java.lang.String subject,
088 java.lang.String body, java.lang.String format,
089 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
090 boolean anonymous, double priority, boolean allowPingbacks,
091 com.liferay.portal.service.ServiceContext serviceContext)
092 throws com.liferay.portal.kernel.exception.PortalException,
093 com.liferay.portal.kernel.exception.SystemException;
094
095 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
096 long parentMessageId, java.lang.String subject, java.lang.String body,
097 java.lang.String format,
098 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
099 boolean anonymous, double priority, boolean allowPingbacks,
100 com.liferay.portal.service.ServiceContext serviceContext)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException;
103
104 public void deleteDiscussionMessage(long groupId,
105 java.lang.String className, long classPK,
106 java.lang.String permissionClassName, long permissionClassPK,
107 long permissionOwnerId, long messageId)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException;
110
111 public void deleteMessage(long messageId)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
117 long groupId, long categoryId, int status, int start, int end)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public int getCategoryMessagesCount(long groupId, long categoryId,
123 int status) throws com.liferay.portal.kernel.exception.SystemException;
124
125 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126 public java.lang.String getCategoryMessagesRSS(long groupId,
127 long categoryId, int status, int max, java.lang.String type,
128 double version, java.lang.String displayStyle,
129 java.lang.String feedURL, java.lang.String entryURL,
130 com.liferay.portal.theme.ThemeDisplay themeDisplay)
131 throws com.liferay.portal.kernel.exception.PortalException,
132 com.liferay.portal.kernel.exception.SystemException;
133
134 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135 public java.lang.String getCompanyMessagesRSS(long companyId, int status,
136 int max, java.lang.String type, double version,
137 java.lang.String displayStyle, java.lang.String feedURL,
138 java.lang.String entryURL,
139 com.liferay.portal.theme.ThemeDisplay themeDisplay)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public int getGroupMessagesCount(long groupId, int status)
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public java.lang.String getGroupMessagesRSS(long groupId, int status,
149 int max, java.lang.String type, double version,
150 java.lang.String displayStyle, java.lang.String feedURL,
151 java.lang.String entryURL,
152 com.liferay.portal.theme.ThemeDisplay themeDisplay)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public java.lang.String getGroupMessagesRSS(long groupId, long userId,
158 int status, int max, java.lang.String type, double version,
159 java.lang.String displayStyle, java.lang.String feedURL,
160 java.lang.String entryURL,
161 com.liferay.portal.theme.ThemeDisplay themeDisplay)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public com.liferay.portlet.messageboards.model.MBMessage getMessage(
167 long messageId)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
173 long messageId, int status, java.lang.String threadView,
174 boolean includePrevAndNext)
175 throws com.liferay.portal.kernel.exception.PortalException,
176 com.liferay.portal.kernel.exception.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public int getThreadAnswersCount(long groupId, long categoryId,
180 long threadId)
181 throws com.liferay.portal.kernel.exception.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
185 long groupId, long categoryId, long threadId, int status, int start,
186 int end) throws com.liferay.portal.kernel.exception.SystemException;
187
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public int getThreadMessagesCount(long groupId, long categoryId,
190 long threadId, int status)
191 throws com.liferay.portal.kernel.exception.SystemException;
192
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public java.lang.String getThreadMessagesRSS(long threadId, int status,
195 int max, java.lang.String type, double version,
196 java.lang.String displayStyle, java.lang.String feedURL,
197 java.lang.String entryURL,
198 com.liferay.portal.theme.ThemeDisplay themeDisplay)
199 throws com.liferay.portal.kernel.exception.PortalException,
200 com.liferay.portal.kernel.exception.SystemException;
201
202 public void subscribeMessage(long messageId)
203 throws com.liferay.portal.kernel.exception.PortalException,
204 com.liferay.portal.kernel.exception.SystemException;
205
206 public void unsubscribeMessage(long messageId)
207 throws com.liferay.portal.kernel.exception.PortalException,
208 com.liferay.portal.kernel.exception.SystemException;
209
210 public void updateAnswer(long messageId, boolean answer, boolean cascade)
211 throws com.liferay.portal.kernel.exception.PortalException,
212 com.liferay.portal.kernel.exception.SystemException;
213
214 public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
215 java.lang.String className, long classPK,
216 java.lang.String permissionClassName, long permissionClassPK,
217 long permissionOwnerId, long messageId, java.lang.String subject,
218 java.lang.String body,
219 com.liferay.portal.service.ServiceContext serviceContext)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException;
222
223 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
224 long messageId, java.lang.String subject, java.lang.String body,
225 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
226 java.util.List<java.lang.String> existingFiles, double priority,
227 boolean allowPingbacks,
228 com.liferay.portal.service.ServiceContext serviceContext)
229 throws com.liferay.portal.kernel.exception.PortalException,
230 com.liferay.portal.kernel.exception.SystemException;
231 }