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.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.BaseLocalService;
023 import com.liferay.portal.service.PersistedModelLocalService;
024
025
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface MBMessageLocalService extends BaseLocalService,
041 PersistedModelLocalService {
042
047
048
055 public com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
056 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059
065 public com.liferay.portlet.messageboards.model.MBMessage createMBMessage(
066 long messageId);
067
068
076 public com.liferay.portlet.messageboards.model.MBMessage deleteMBMessage(
077 long messageId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081
088 public com.liferay.portlet.messageboards.model.MBMessage deleteMBMessage(
089 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
093
094
101 @SuppressWarnings("rawtypes")
102 public java.util.List dynamicQuery(
103 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106
119 @SuppressWarnings("rawtypes")
120 public java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException;
123
124
138 @SuppressWarnings("rawtypes")
139 public java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145
152 public long dynamicQueryCount(
153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.messageboards.model.MBMessage fetchMBMessage(
158 long messageId)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.messageboards.model.MBMessage getMBMessage(
171 long messageId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portal.model.PersistedModel getPersistedModel(
177 java.io.Serializable primaryKeyObj)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public com.liferay.portlet.messageboards.model.MBMessage getMBMessageByUuidAndGroupId(
192 java.lang.String uuid, long groupId)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException;
195
196
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMBMessages(
210 int start, int end)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public int getMBMessagesCount()
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223
230 public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
231 com.liferay.portlet.messageboards.model.MBMessage mbMessage)
232 throws com.liferay.portal.kernel.exception.SystemException;
233
234
242 public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
243 com.liferay.portlet.messageboards.model.MBMessage mbMessage,
244 boolean merge)
245 throws com.liferay.portal.kernel.exception.SystemException;
246
247
252 public java.lang.String getBeanIdentifier();
253
254
259 public void setBeanIdentifier(java.lang.String beanIdentifier);
260
261 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
262 long userId, java.lang.String userName, long groupId,
263 java.lang.String className, long classPK, int workflowAction)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException;
266
267 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
268 long userId, java.lang.String userName, long groupId,
269 java.lang.String className, long classPK, long threadId,
270 long parentMessageId, java.lang.String subject, java.lang.String body,
271 com.liferay.portal.service.ServiceContext serviceContext)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException;
274
275 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
276 long userId, java.lang.String userName, long groupId, long categoryId,
277 long threadId, long parentMessageId, java.lang.String subject,
278 java.lang.String body, java.lang.String format,
279 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
280 boolean anonymous, double priority, boolean allowPingbacks,
281 com.liferay.portal.service.ServiceContext serviceContext)
282 throws com.liferay.portal.kernel.exception.PortalException,
283 com.liferay.portal.kernel.exception.SystemException;
284
285 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
286 long userId, java.lang.String userName, long groupId, long categoryId,
287 java.lang.String subject, java.lang.String body,
288 java.lang.String format,
289 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
290 boolean anonymous, double priority, boolean allowPingbacks,
291 com.liferay.portal.service.ServiceContext serviceContext)
292 throws com.liferay.portal.kernel.exception.PortalException,
293 com.liferay.portal.kernel.exception.SystemException;
294
295 public void addMessageResources(long messageId,
296 boolean addGroupPermissions, boolean addGuestPermissions)
297 throws com.liferay.portal.kernel.exception.PortalException,
298 com.liferay.portal.kernel.exception.SystemException;
299
300 public void addMessageResources(long messageId,
301 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
302 throws com.liferay.portal.kernel.exception.PortalException,
303 com.liferay.portal.kernel.exception.SystemException;
304
305 public void addMessageResources(
306 com.liferay.portlet.messageboards.model.MBMessage message,
307 boolean addGroupPermissions, boolean addGuestPermissions)
308 throws com.liferay.portal.kernel.exception.PortalException,
309 com.liferay.portal.kernel.exception.SystemException;
310
311 public void addMessageResources(
312 com.liferay.portlet.messageboards.model.MBMessage message,
313 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
314 throws com.liferay.portal.kernel.exception.PortalException,
315 com.liferay.portal.kernel.exception.SystemException;
316
317 public void deleteDiscussionMessage(long messageId)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException;
320
321 public void deleteDiscussionMessages(java.lang.String className,
322 long classPK)
323 throws com.liferay.portal.kernel.exception.PortalException,
324 com.liferay.portal.kernel.exception.SystemException;
325
326 public void deleteMessage(long messageId)
327 throws com.liferay.portal.kernel.exception.PortalException,
328 com.liferay.portal.kernel.exception.SystemException;
329
330 public void deleteMessage(
331 com.liferay.portlet.messageboards.model.MBMessage message)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException;
334
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
337 long groupId, long categoryId, int status, int start, int end)
338 throws com.liferay.portal.kernel.exception.SystemException;
339
340 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
342 long groupId, long categoryId, int status, int start, int end,
343 com.liferay.portal.kernel.util.OrderByComparator obc)
344 throws com.liferay.portal.kernel.exception.SystemException;
345
346 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347 public int getCategoryMessagesCount(long groupId, long categoryId,
348 int status) throws com.liferay.portal.kernel.exception.SystemException;
349
350 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
352 long companyId, int status, int start, int end)
353 throws com.liferay.portal.kernel.exception.SystemException;
354
355 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCompanyMessages(
357 long companyId, int status, int start, int end,
358 com.liferay.portal.kernel.util.OrderByComparator obc)
359 throws com.liferay.portal.kernel.exception.SystemException;
360
361 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362 public int getCompanyMessagesCount(long companyId, int status)
363 throws com.liferay.portal.kernel.exception.SystemException;
364
365 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366 public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
367 long userId, long groupId, java.lang.String className, long classPK,
368 int status)
369 throws com.liferay.portal.kernel.exception.PortalException,
370 com.liferay.portal.kernel.exception.SystemException;
371
372 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373 public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
374 long userId, long groupId, java.lang.String className, long classPK,
375 int status, java.lang.String threadView)
376 throws com.liferay.portal.kernel.exception.PortalException,
377 com.liferay.portal.kernel.exception.SystemException;
378
379 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380 public int getDiscussionMessagesCount(long classNameId, long classPK,
381 int status) throws com.liferay.portal.kernel.exception.SystemException;
382
383 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384 public int getDiscussionMessagesCount(java.lang.String className,
385 long classPK, int status)
386 throws com.liferay.portal.kernel.exception.SystemException;
387
388 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
389 public java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> getDiscussions(
390 java.lang.String className)
391 throws com.liferay.portal.kernel.exception.SystemException;
392
393 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
395 long groupId, int status, int start, int end)
396 throws com.liferay.portal.kernel.exception.SystemException;
397
398 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
399 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
400 long groupId, int status, int start, int end,
401 com.liferay.portal.kernel.util.OrderByComparator obc)
402 throws com.liferay.portal.kernel.exception.SystemException;
403
404 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
406 long groupId, long userId, int status, int start, int end)
407 throws com.liferay.portal.kernel.exception.SystemException;
408
409 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
410 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getGroupMessages(
411 long groupId, long userId, int status, int start, int end,
412 com.liferay.portal.kernel.util.OrderByComparator obc)
413 throws com.liferay.portal.kernel.exception.SystemException;
414
415 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
416 public int getGroupMessagesCount(long groupId, int status)
417 throws com.liferay.portal.kernel.exception.SystemException;
418
419 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
420 public int getGroupMessagesCount(long groupId, long userId, int status)
421 throws com.liferay.portal.kernel.exception.SystemException;
422
423 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
424 public com.liferay.portlet.messageboards.model.MBMessage getMessage(
425 long messageId)
426 throws com.liferay.portal.kernel.exception.PortalException,
427 com.liferay.portal.kernel.exception.SystemException;
428
429 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
431 long userId, long messageId, int status, java.lang.String threadView,
432 boolean includePrevAndNext)
433 throws com.liferay.portal.kernel.exception.PortalException,
434 com.liferay.portal.kernel.exception.SystemException;
435
436 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
438 long userId, com.liferay.portlet.messageboards.model.MBMessage message,
439 int status, java.lang.String threadView, boolean includePrevAndNext)
440 throws com.liferay.portal.kernel.exception.PortalException,
441 com.liferay.portal.kernel.exception.SystemException;
442
443 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
444 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getMessages(
445 java.lang.String className, long classPK, int status)
446 throws com.liferay.portal.kernel.exception.SystemException;
447
448 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getNoAssetMessages()
450 throws com.liferay.portal.kernel.exception.SystemException;
451
452 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
453 public int getPositionInThread(long messageId)
454 throws com.liferay.portal.kernel.exception.PortalException,
455 com.liferay.portal.kernel.exception.SystemException;
456
457 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
458 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
459 long threadId, int status)
460 throws com.liferay.portal.kernel.exception.SystemException;
461
462 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
463 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
464 long threadId, int status,
465 java.util.Comparator<com.liferay.portlet.messageboards.model.MBMessage> comparator)
466 throws com.liferay.portal.kernel.exception.SystemException;
467
468 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
470 long threadId, int status, int start, int end)
471 throws com.liferay.portal.kernel.exception.SystemException;
472
473 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474 public int getThreadMessagesCount(long threadId, int status)
475 throws com.liferay.portal.kernel.exception.SystemException;
476
477 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
478 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadRepliesMessages(
479 long threadId, int status, int start, int end)
480 throws com.liferay.portal.kernel.exception.SystemException;
481
482 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
483 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
484 long userId, long classNameId, long classPK, int status, int start,
485 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
486 throws com.liferay.portal.kernel.exception.SystemException;
487
488 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
489 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
490 long userId, long[] classNameIds, int status, int start, int end,
491 com.liferay.portal.kernel.util.OrderByComparator obc)
492 throws com.liferay.portal.kernel.exception.SystemException;
493
494 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getUserDiscussionMessages(
496 long userId, java.lang.String className, long classPK, int status,
497 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
498 throws com.liferay.portal.kernel.exception.SystemException;
499
500 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
501 public int getUserDiscussionMessagesCount(long userId, long classNameId,
502 long classPK, int status)
503 throws com.liferay.portal.kernel.exception.SystemException;
504
505 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
506 public int getUserDiscussionMessagesCount(long userId, long[] classNameIds,
507 int status) throws com.liferay.portal.kernel.exception.SystemException;
508
509 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
510 public int getUserDiscussionMessagesCount(long userId,
511 java.lang.String className, long classPK, int status)
512 throws com.liferay.portal.kernel.exception.SystemException;
513
514 public void subscribeMessage(long userId, long messageId)
515 throws com.liferay.portal.kernel.exception.PortalException,
516 com.liferay.portal.kernel.exception.SystemException;
517
518 public void unsubscribeMessage(long userId, long messageId)
519 throws com.liferay.portal.kernel.exception.PortalException,
520 com.liferay.portal.kernel.exception.SystemException;
521
522 public void updateAnswer(long messageId, boolean answer, boolean cascade)
523 throws com.liferay.portal.kernel.exception.PortalException,
524 com.liferay.portal.kernel.exception.SystemException;
525
526 public void updateAnswer(
527 com.liferay.portlet.messageboards.model.MBMessage message,
528 boolean answer, boolean cascade)
529 throws com.liferay.portal.kernel.exception.PortalException,
530 com.liferay.portal.kernel.exception.SystemException;
531
532 public void updateAsset(long userId,
533 com.liferay.portlet.messageboards.model.MBMessage message,
534 long[] assetCategoryIds, java.lang.String[] assetTagNames,
535 long[] assetLinkEntryIds)
536 throws com.liferay.portal.kernel.exception.PortalException,
537 com.liferay.portal.kernel.exception.SystemException;
538
539 public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
540 long userId, long messageId, java.lang.String className, long classPK,
541 java.lang.String subject, java.lang.String body,
542 com.liferay.portal.service.ServiceContext serviceContext)
543 throws com.liferay.portal.kernel.exception.PortalException,
544 com.liferay.portal.kernel.exception.SystemException;
545
546 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
547 long userId, long messageId, java.lang.String subject,
548 java.lang.String body,
549 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs,
550 java.util.List<java.lang.String> existingFiles, double priority,
551 boolean allowPingbacks,
552 com.liferay.portal.service.ServiceContext serviceContext)
553 throws com.liferay.portal.kernel.exception.PortalException,
554 com.liferay.portal.kernel.exception.SystemException;
555
556 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
557 long messageId, java.lang.String body)
558 throws com.liferay.portal.kernel.exception.PortalException,
559 com.liferay.portal.kernel.exception.SystemException;
560
561 public com.liferay.portlet.messageboards.model.MBMessage updateStatus(
562 long userId, long messageId, int status,
563 com.liferay.portal.service.ServiceContext serviceContext)
564 throws com.liferay.portal.kernel.exception.PortalException,
565 com.liferay.portal.kernel.exception.SystemException;
566
567 public void updateUserName(long userId, java.lang.String userName)
568 throws com.liferay.portal.kernel.exception.SystemException;
569 }