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.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.security.ac.AccessControlled;
026 import com.liferay.portal.service.BaseService;
027
028
039 @ProviderType
040 @AccessControlled
041 @JSONWebService
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface MBMessageService extends BaseService {
045
050
051
056 public java.lang.String getBeanIdentifier();
057
058
063 public void setBeanIdentifier(java.lang.String beanIdentifier);
064
065 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
066 long groupId, java.lang.String className, long classPK,
067 java.lang.String permissionClassName, long permissionClassPK,
068 long permissionOwnerId, long threadId, long parentMessageId,
069 java.lang.String subject, java.lang.String body,
070 com.liferay.portal.service.ServiceContext serviceContext)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
079 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
080 long groupId, long categoryId, long threadId, long parentMessageId,
081 java.lang.String subject, java.lang.String body,
082 java.lang.String format,
083 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
084 boolean anonymous, double priority, boolean allowPingbacks,
085 com.liferay.portal.service.ServiceContext serviceContext)
086 throws com.liferay.portal.kernel.exception.PortalException,
087 com.liferay.portal.kernel.exception.SystemException;
088
089 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
090 long groupId, long categoryId, java.lang.String subject,
091 java.lang.String body, java.lang.String format,
092 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
093 boolean anonymous, double priority, boolean allowPingbacks,
094 com.liferay.portal.service.ServiceContext serviceContext)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
099 long categoryId, java.lang.String subject, java.lang.String body,
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 com.liferay.portlet.messageboards.model.MBMessage addMessage(
105 long parentMessageId, java.lang.String subject, java.lang.String body,
106 java.lang.String format,
107 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
108 boolean anonymous, double priority, boolean allowPingbacks,
109 com.liferay.portal.service.ServiceContext serviceContext)
110 throws com.liferay.portal.kernel.exception.PortalException,
111 com.liferay.portal.kernel.exception.SystemException;
112
113 public void deleteDiscussionMessage(long groupId,
114 java.lang.String className, long classPK,
115 java.lang.String permissionClassName, long permissionClassPK,
116 long permissionOwnerId, long messageId)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException;
119
120 public void deleteMessage(long messageId)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException;
123
124 public void deleteMessageAttachments(long messageId)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException;
127
128 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
130 long groupId, long categoryId, int status, int start, int end)
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 int getCategoryMessagesCount(long groupId, long categoryId,
136 int status) throws com.liferay.portal.kernel.exception.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public java.lang.String getCategoryMessagesRSS(long groupId,
140 long categoryId, int status, int max, java.lang.String type,
141 double version, java.lang.String displayStyle,
142 java.lang.String feedURL, java.lang.String entryURL,
143 com.liferay.portal.theme.ThemeDisplay themeDisplay)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public java.lang.String getCompanyMessagesRSS(long companyId, 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 int getGroupMessagesCount(long groupId, int status)
158 throws com.liferay.portal.kernel.exception.SystemException;
159
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public java.lang.String getGroupMessagesRSS(long groupId, int status,
162 int max, java.lang.String type, double version,
163 java.lang.String displayStyle, java.lang.String feedURL,
164 java.lang.String entryURL,
165 com.liferay.portal.theme.ThemeDisplay themeDisplay)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.lang.String getGroupMessagesRSS(long groupId, long userId,
171 int status, int max, java.lang.String type, double version,
172 java.lang.String displayStyle, java.lang.String feedURL,
173 java.lang.String entryURL,
174 com.liferay.portal.theme.ThemeDisplay themeDisplay)
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 com.liferay.portlet.messageboards.model.MBMessage getMessage(
180 long messageId)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException;
183
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
186 long messageId, int status, java.lang.String threadView,
187 boolean includePrevAndNext)
188 throws com.liferay.portal.kernel.exception.PortalException,
189 com.liferay.portal.kernel.exception.SystemException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public int getThreadAnswersCount(long groupId, long categoryId,
193 long threadId)
194 throws com.liferay.portal.kernel.exception.SystemException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
198 long groupId, long categoryId, long threadId, int status, int start,
199 int end) throws com.liferay.portal.kernel.exception.SystemException;
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public int getThreadMessagesCount(long groupId, long categoryId,
203 long threadId, int status)
204 throws com.liferay.portal.kernel.exception.SystemException;
205
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public java.lang.String getThreadMessagesRSS(long threadId, int status,
208 int max, java.lang.String type, double version,
209 java.lang.String displayStyle, java.lang.String feedURL,
210 java.lang.String entryURL,
211 com.liferay.portal.theme.ThemeDisplay themeDisplay)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException;
214
215 public void restoreMessageAttachmentFromTrash(long messageId,
216 java.lang.String fileName)
217 throws com.liferay.portal.kernel.exception.PortalException,
218 com.liferay.portal.kernel.exception.SystemException;
219
220 public void subscribeMessage(long messageId)
221 throws com.liferay.portal.kernel.exception.PortalException,
222 com.liferay.portal.kernel.exception.SystemException;
223
224 public void unsubscribeMessage(long messageId)
225 throws com.liferay.portal.kernel.exception.PortalException,
226 com.liferay.portal.kernel.exception.SystemException;
227
228 public void updateAnswer(long messageId, boolean answer, boolean cascade)
229 throws com.liferay.portal.kernel.exception.PortalException,
230 com.liferay.portal.kernel.exception.SystemException;
231
232 public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
233 java.lang.String className, long classPK,
234 java.lang.String permissionClassName, long permissionClassPK,
235 long permissionOwnerId, long messageId, java.lang.String subject,
236 java.lang.String body,
237 com.liferay.portal.service.ServiceContext serviceContext)
238 throws com.liferay.portal.kernel.exception.PortalException,
239 com.liferay.portal.kernel.exception.SystemException;
240
241 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
242 long messageId, java.lang.String subject, java.lang.String body,
243 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
244 java.util.List<java.lang.String> existingFiles, double priority,
245 boolean allowPingbacks,
246 com.liferay.portal.service.ServiceContext serviceContext)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException;
249 }