1
14
15 package com.liferay.portlet.messageboards.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface MBMessageLocalService {
50 public com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
51 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
55 long messageId);
56
57 public void deleteMBMessage(long messageId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteMBMessage(
62 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.kernel.exception.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
85 long messageId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
91 int start, int end)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getMBMessagesCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
99 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
103 com.liferay.portlet.messageboards.model.MBMessage mbMessage,
104 boolean merge)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
108 long userId, java.lang.String userName, java.lang.String className,
109 long classPK, int status)
110 throws com.liferay.portal.kernel.exception.PortalException,
111 com.liferay.portal.kernel.exception.SystemException;
112
113 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
114 long userId, java.lang.String userName, java.lang.String className,
115 long classPK, long threadId, long parentMessageId,
116 java.lang.String subject, java.lang.String body,
117 com.liferay.portal.service.ServiceContext serviceContext)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
122 long userId, java.lang.String userName, long groupId, long categoryId,
123 java.lang.String subject, java.lang.String body,
124 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
125 boolean anonymous, double priority, boolean allowPingbacks,
126 com.liferay.portal.service.ServiceContext serviceContext)
127 throws com.liferay.portal.kernel.exception.PortalException,
128 com.liferay.portal.kernel.exception.SystemException;
129
130 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
131 long userId, java.lang.String userName, long groupId, long categoryId,
132 long threadId, long parentMessageId, java.lang.String subject,
133 java.lang.String body,
134 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
135 boolean anonymous, double priority, boolean allowPingbacks,
136 com.liferay.portal.service.ServiceContext serviceContext)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException;
139
140 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
141 java.lang.String uuid, long userId, java.lang.String userName,
142 long groupId, long categoryId, long threadId, long parentMessageId,
143 java.lang.String subject, java.lang.String body,
144 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
145 boolean anonymous, double priority, boolean allowPingbacks,
146 com.liferay.portal.service.ServiceContext serviceContext)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException;
149
150 public void addMessageResources(long messageId,
151 boolean addCommunityPermissions, boolean addGuestPermissions)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException;
154
155 public void addMessageResources(
156 com.liferay.portlet.messageboards.model.MBMessage message,
157 boolean addCommunityPermissions, boolean addGuestPermissions)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException;
160
161 public void addMessageResources(long messageId,
162 java.lang.String[] communityPermissions,
163 java.lang.String[] guestPermissions)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException;
166
167 public void addMessageResources(
168 com.liferay.portlet.messageboards.model.MBMessage message,
169 java.lang.String[] communityPermissions,
170 java.lang.String[] guestPermissions)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException;
173
174 public void deleteDiscussionMessage(long messageId)
175 throws com.liferay.portal.kernel.exception.PortalException,
176 com.liferay.portal.kernel.exception.SystemException;
177
178 public void deleteDiscussionMessages(java.lang.String className,
179 long classPK)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.SystemException;
182
183 public void deleteMessage(long messageId)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException;
186
187 public void deleteMessage(
188 com.liferay.portlet.messageboards.model.MBMessage message)
189 throws com.liferay.portal.kernel.exception.PortalException,
190 com.liferay.portal.kernel.exception.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
194 long groupId, long categoryId, int status, int start, int end)
195 throws com.liferay.portal.kernel.exception.SystemException;
196
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
199 long groupId, long categoryId, int status, int start, int end,
200 com.liferay.portal.kernel.util.OrderByComparator obc)
201 throws com.liferay.portal.kernel.exception.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public int getCategoryMessagesCount(long groupId, long categoryId,
205 int status) throws com.liferay.portal.kernel.exception.SystemException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
209 long companyId, int status, int start, int end)
210 throws com.liferay.portal.kernel.exception.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
214 long companyId, int status, int start, int end,
215 com.liferay.portal.kernel.util.OrderByComparator obc)
216 throws com.liferay.portal.kernel.exception.SystemException;
217
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public int getCompanyMessagesCount(long companyId, int status)
220 throws com.liferay.portal.kernel.exception.SystemException;
221
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
224 long userId, java.lang.String className, long classPK, int status)
225 throws com.liferay.portal.kernel.exception.PortalException,
226 com.liferay.portal.kernel.exception.SystemException;
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
230 long userId, java.lang.String className, long classPK, int status,
231 java.lang.String threadView)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException;
234
235 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236 public int getDiscussionMessagesCount(long classNameId, long classPK,
237 int status) throws com.liferay.portal.kernel.exception.SystemException;
238
239 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240 public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
241 java.lang.String className)
242 throws com.liferay.portal.kernel.exception.SystemException;
243
244 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
246 long groupId, int status, int start, int end)
247 throws com.liferay.portal.kernel.exception.SystemException;
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
251 long groupId, int status, int start, int end,
252 com.liferay.portal.kernel.util.OrderByComparator obc)
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.MBMessage> getGroupMessages(
257 long groupId, long userId, int status, int start, int end)
258 throws com.liferay.portal.kernel.exception.SystemException;
259
260 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
262 long groupId, long userId, int status, int start, int end,
263 com.liferay.portal.kernel.util.OrderByComparator obc)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public int getGroupMessagesCount(long groupId, int status)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public int getGroupMessagesCount(long groupId, long userId, int status)
272 throws com.liferay.portal.kernel.exception.SystemException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public com.liferay.portlet.messageboards.model.MBMessage getMessage(
276 long messageId)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException;
279
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
282 java.lang.String className, long classPK, int status)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
287 long messageId, int status, java.lang.String threadView)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
293 com.liferay.portlet.messageboards.model.MBMessage message, int status,
294 java.lang.String threadView)
295 throws com.liferay.portal.kernel.exception.PortalException,
296 com.liferay.portal.kernel.exception.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
300 throws com.liferay.portal.kernel.exception.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public int getPositionInThread(long messageId)
304 throws com.liferay.portal.kernel.exception.PortalException,
305 com.liferay.portal.kernel.exception.SystemException;
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
309 long threadId, int status)
310 throws com.liferay.portal.kernel.exception.SystemException;
311
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
314 long threadId, int status,
315 java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
316 throws com.liferay.portal.kernel.exception.SystemException;
317
318 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
320 long threadId, int status, int start, int end)
321 throws com.liferay.portal.kernel.exception.SystemException;
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public int getThreadMessagesCount(long threadId, int status)
325 throws com.liferay.portal.kernel.exception.SystemException;
326
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
329 long threadId, int status, int start, int end)
330 throws com.liferay.portal.kernel.exception.SystemException;
331
332 public void subscribeMessage(long userId, long messageId)
333 throws com.liferay.portal.kernel.exception.PortalException,
334 com.liferay.portal.kernel.exception.SystemException;
335
336 public void unsubscribeMessage(long userId, long messageId)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException;
339
340 public void updateAsset(long userId,
341 com.liferay.portlet.messageboards.model.MBMessage message,
342 long[] assetCategoryIds, java.lang.String[] assetTagNames)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException;
345
346 public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
347 long userId, long messageId, java.lang.String subject,
348 java.lang.String body, int status)
349 throws com.liferay.portal.kernel.exception.PortalException,
350 com.liferay.portal.kernel.exception.SystemException;
351
352 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
353 long userId, long messageId, java.lang.String subject,
354 java.lang.String body,
355 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
356 java.util.List<String> existingFiles, double priority,
357 boolean allowPingbacks,
358 com.liferay.portal.service.ServiceContext serviceContext)
359 throws com.liferay.portal.kernel.exception.PortalException,
360 com.liferay.portal.kernel.exception.SystemException;
361
362 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
363 long messageId, java.util.Date createDate, java.util.Date modifiedDate)
364 throws com.liferay.portal.kernel.exception.PortalException,
365 com.liferay.portal.kernel.exception.SystemException;
366
367 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
368 long messageId, java.lang.String body)
369 throws com.liferay.portal.kernel.exception.PortalException,
370 com.liferay.portal.kernel.exception.SystemException;
371
372 public com.liferay.portlet.messageboards.model.MBMessage updateStatus(
373 long userId, com.liferay.portlet.messageboards.model.MBMessage message,
374 com.liferay.portal.service.ServiceContext serviceContext,
375 boolean reindex)
376 throws com.liferay.portal.kernel.exception.PortalException,
377 com.liferay.portal.kernel.exception.SystemException;
378
379 public com.liferay.portlet.messageboards.model.MBMessage updateStatus(
380 long userId, long messageId,
381 com.liferay.portal.service.ServiceContext serviceContext)
382 throws com.liferay.portal.kernel.exception.PortalException,
383 com.liferay.portal.kernel.exception.SystemException;
384 }