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