1
14
15 package com.liferay.portlet.messageboards.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
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.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.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deleteMBMessage(
62 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.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.SystemException;
72
73 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74 public com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
75 long messageId)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
81 int start, int end) throws com.liferay.portal.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public int getMBMessagesCount() throws com.liferay.portal.SystemException;
85
86 public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
87 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
88 throws com.liferay.portal.SystemException;
89
90 public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
91 com.liferay.portlet.messageboards.model.MBMessage mbMessage,
92 boolean merge) throws com.liferay.portal.SystemException;
93
94 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
95 long userId, java.lang.String userName, long groupId,
96 java.lang.String className, long classPK, long threadId,
97 long parentMessageId, java.lang.String subject, java.lang.String body)
98 throws com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException;
100
101 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
102 long userId, java.lang.String userName, long groupId,
103 java.lang.String className, long classPK, long threadId,
104 long parentMessageId, java.lang.String subject, java.lang.String body,
105 com.liferay.portal.theme.ThemeDisplay themeDisplay)
106 throws com.liferay.portal.PortalException,
107 com.liferay.portal.SystemException;
108
109 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
110 long userId, java.lang.String userName, java.lang.String className,
111 long classPK)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException;
114
115 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
116 long userId, java.lang.String userName, long categoryId, long threadId,
117 long parentMessageId, java.lang.String subject, java.lang.String body,
118 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
119 boolean anonymous, double priority, java.lang.String[] tagsEntries,
120 javax.portlet.PortletPreferences prefs,
121 boolean addCommunityPermissions, boolean addGuestPermissions,
122 com.liferay.portal.theme.ThemeDisplay themeDisplay)
123 throws com.liferay.portal.PortalException,
124 com.liferay.portal.SystemException;
125
126 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
127 long userId, java.lang.String userName, long categoryId, long threadId,
128 long parentMessageId, java.lang.String subject, java.lang.String body,
129 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
130 boolean anonymous, double priority, java.lang.String[] tagsEntries,
131 javax.portlet.PortletPreferences prefs,
132 java.lang.String[] communityPermissions,
133 java.lang.String[] guestPermissions,
134 com.liferay.portal.theme.ThemeDisplay themeDisplay)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException;
137
138 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
139 long userId, java.lang.String userName, long categoryId,
140 java.lang.String subject, java.lang.String body,
141 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
142 boolean anonymous, double priority, java.lang.String[] tagsEntries,
143 javax.portlet.PortletPreferences prefs,
144 boolean addCommunityPermissions, boolean addGuestPermissions,
145 com.liferay.portal.theme.ThemeDisplay themeDisplay)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException;
148
149 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
150 long userId, java.lang.String userName, long categoryId,
151 java.lang.String subject, java.lang.String body,
152 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
153 boolean anonymous, double priority, java.lang.String[] tagsEntries,
154 javax.portlet.PortletPreferences prefs,
155 java.lang.Boolean addCommunityPermissions,
156 java.lang.Boolean addGuestPermissions,
157 java.lang.String[] communityPermissions,
158 java.lang.String[] guestPermissions,
159 com.liferay.portal.theme.ThemeDisplay themeDisplay)
160 throws com.liferay.portal.PortalException,
161 com.liferay.portal.SystemException;
162
163 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
164 long userId, java.lang.String userName, long categoryId,
165 java.lang.String subject, java.lang.String body,
166 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
167 boolean anonymous, double priority, java.lang.String[] tagsEntries,
168 javax.portlet.PortletPreferences prefs,
169 java.lang.String[] communityPermissions,
170 java.lang.String[] guestPermissions,
171 com.liferay.portal.theme.ThemeDisplay themeDisplay)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException;
174
175 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
176 java.lang.String uuid, long userId, java.lang.String userName,
177 long categoryId, long threadId, long parentMessageId,
178 java.lang.String subject, java.lang.String body,
179 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
180 boolean anonymous, double priority, java.lang.String[] tagsEntries,
181 javax.portlet.PortletPreferences prefs,
182 boolean addCommunityPermissions, boolean addGuestPermissions,
183 com.liferay.portal.theme.ThemeDisplay themeDisplay)
184 throws com.liferay.portal.PortalException,
185 com.liferay.portal.SystemException;
186
187 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
188 java.lang.String uuid, long userId, java.lang.String userName,
189 long categoryId, long threadId, long parentMessageId,
190 java.lang.String subject, java.lang.String body,
191 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
192 boolean anonymous, double priority, java.lang.String[] tagsEntries,
193 javax.portlet.PortletPreferences prefs,
194 java.lang.Boolean addCommunityPermissions,
195 java.lang.Boolean addGuestPermissions,
196 java.lang.String[] communityPermissions,
197 java.lang.String[] guestPermissions,
198 com.liferay.portal.theme.ThemeDisplay themeDisplay)
199 throws com.liferay.portal.PortalException,
200 com.liferay.portal.SystemException;
201
202 public void addMessageResources(long messageId,
203 boolean addCommunityPermissions, boolean addGuestPermissions)
204 throws com.liferay.portal.PortalException,
205 com.liferay.portal.SystemException;
206
207 public void addMessageResources(long messageId,
208 java.lang.String[] communityPermissions,
209 java.lang.String[] guestPermissions)
210 throws com.liferay.portal.PortalException,
211 com.liferay.portal.SystemException;
212
213 public void addMessageResources(
214 com.liferay.portlet.messageboards.model.MBMessage message,
215 boolean addCommunityPermissions, boolean addGuestPermissions)
216 throws com.liferay.portal.PortalException,
217 com.liferay.portal.SystemException;
218
219 public void addMessageResources(
220 com.liferay.portlet.messageboards.model.MBMessage message,
221 java.lang.String[] communityPermissions,
222 java.lang.String[] guestPermissions)
223 throws com.liferay.portal.PortalException,
224 com.liferay.portal.SystemException;
225
226 public void deleteDiscussionMessage(long messageId)
227 throws com.liferay.portal.PortalException,
228 com.liferay.portal.SystemException;
229
230 public void deleteDiscussionMessages(java.lang.String className,
231 long classPK)
232 throws com.liferay.portal.PortalException,
233 com.liferay.portal.SystemException;
234
235 public void deleteMessage(long messageId)
236 throws com.liferay.portal.PortalException,
237 com.liferay.portal.SystemException;
238
239 public void deleteMessage(
240 com.liferay.portlet.messageboards.model.MBMessage message)
241 throws com.liferay.portal.PortalException,
242 com.liferay.portal.SystemException;
243
244 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245 public int getCategoriesMessagesCount(java.util.List<Long> categoryIds)
246 throws com.liferay.portal.SystemException;
247
248 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
249 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
250 long categoryId, int start, int end)
251 throws com.liferay.portal.SystemException;
252
253 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
255 long categoryId, int start, int end,
256 com.liferay.portal.kernel.util.OrderByComparator obc)
257 throws com.liferay.portal.SystemException;
258
259 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260 public int getCategoryMessagesCount(long categoryId)
261 throws com.liferay.portal.SystemException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
265 long companyId, int start, int end)
266 throws com.liferay.portal.SystemException;
267
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
270 long companyId, int start, int end,
271 com.liferay.portal.kernel.util.OrderByComparator obc)
272 throws com.liferay.portal.SystemException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public int getCompanyMessagesCount(long companyId)
276 throws com.liferay.portal.SystemException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
280 long userId, java.lang.String className, long classPK)
281 throws com.liferay.portal.PortalException,
282 com.liferay.portal.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
286 long userId, java.lang.String className, long classPK,
287 java.lang.String threadView)
288 throws com.liferay.portal.PortalException,
289 com.liferay.portal.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public int getDiscussionMessagesCount(long classNameId, long classPK)
293 throws com.liferay.portal.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
297 java.lang.String className) throws com.liferay.portal.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
301 long groupId, int start, int end)
302 throws com.liferay.portal.SystemException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
306 long groupId, int start, int end,
307 com.liferay.portal.kernel.util.OrderByComparator obc)
308 throws com.liferay.portal.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
312 long groupId, long userId, int start, int end)
313 throws com.liferay.portal.SystemException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
317 long groupId, long userId, int start, int end,
318 com.liferay.portal.kernel.util.OrderByComparator obc)
319 throws com.liferay.portal.SystemException;
320
321 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322 public int getGroupMessagesCount(long groupId)
323 throws com.liferay.portal.SystemException;
324
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public int getGroupMessagesCount(long groupId, long userId)
327 throws com.liferay.portal.SystemException;
328
329 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330 public com.liferay.portlet.messageboards.model.MBMessage getMessage(
331 long messageId)
332 throws com.liferay.portal.PortalException,
333 com.liferay.portal.SystemException;
334
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
337 long messageId)
338 throws com.liferay.portal.PortalException,
339 com.liferay.portal.SystemException;
340
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
343 long messageId, java.lang.String threadView)
344 throws com.liferay.portal.PortalException,
345 com.liferay.portal.SystemException;
346
347 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
349 com.liferay.portlet.messageboards.model.MBMessage message)
350 throws com.liferay.portal.PortalException,
351 com.liferay.portal.SystemException;
352
353 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
355 com.liferay.portlet.messageboards.model.MBMessage message,
356 java.lang.String threadView)
357 throws com.liferay.portal.PortalException,
358 com.liferay.portal.SystemException;
359
360 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
362 java.lang.String className, long classPK)
363 throws com.liferay.portal.SystemException;
364
365 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
367 throws com.liferay.portal.SystemException;
368
369 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370 public int getPositionInThread(long messageId)
371 throws com.liferay.portal.PortalException,
372 com.liferay.portal.SystemException;
373
374 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
376 long threadId) throws com.liferay.portal.SystemException;
377
378 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
380 long threadId,
381 java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
382 throws com.liferay.portal.SystemException;
383
384 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
386 long threadId, int start, int end)
387 throws com.liferay.portal.SystemException;
388
389 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390 public int getThreadMessagesCount(long threadId)
391 throws com.liferay.portal.SystemException;
392
393 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
395 long threadId, int start, int end)
396 throws com.liferay.portal.SystemException;
397
398 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
399 public void reIndex(long messageId)
400 throws com.liferay.portal.SystemException;
401
402 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
403 public void reIndex(
404 com.liferay.portlet.messageboards.model.MBMessage message)
405 throws com.liferay.portal.SystemException;
406
407 public void subscribeMessage(long userId, long messageId)
408 throws com.liferay.portal.PortalException,
409 com.liferay.portal.SystemException;
410
411 public void unsubscribeMessage(long userId, long messageId)
412 throws com.liferay.portal.PortalException,
413 com.liferay.portal.SystemException;
414
415 public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
416 long userId, long messageId, java.lang.String subject,
417 java.lang.String body)
418 throws com.liferay.portal.PortalException,
419 com.liferay.portal.SystemException;
420
421 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
422 long messageId, java.util.Date createDate, java.util.Date modifiedDate)
423 throws com.liferay.portal.PortalException,
424 com.liferay.portal.SystemException;
425
426 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
427 long userId, long messageId, java.lang.String subject,
428 java.lang.String body,
429 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files,
430 java.util.List<String> existingFiles, double priority,
431 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
432 com.liferay.portal.theme.ThemeDisplay themeDisplay)
433 throws com.liferay.portal.PortalException,
434 com.liferay.portal.SystemException;
435
436 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
437 long messageId, java.lang.String body)
438 throws com.liferay.portal.PortalException,
439 com.liferay.portal.SystemException;
440
441 public void updateTagsAsset(long userId,
442 com.liferay.portlet.messageboards.model.MBMessage message,
443 java.lang.String[] tagsEntries)
444 throws com.liferay.portal.PortalException,
445 com.liferay.portal.SystemException;
446 }