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.search.IndexableType;
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.model.SystemEventConstants;
026 import com.liferay.portal.service.BaseLocalService;
027 import com.liferay.portal.service.PersistedModelLocalService;
028
029
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface MBThreadLocalService extends BaseLocalService,
045 PersistedModelLocalService {
046
051
052
059 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
060 public com.liferay.portlet.messageboards.model.MBThread addMBThread(
061 com.liferay.portlet.messageboards.model.MBThread mbThread)
062 throws com.liferay.portal.kernel.exception.SystemException;
063
064
070 public com.liferay.portlet.messageboards.model.MBThread createMBThread(
071 long threadId);
072
073
081 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
082 public com.liferay.portlet.messageboards.model.MBThread deleteMBThread(
083 long threadId)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException;
086
087
094 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
095 public com.liferay.portlet.messageboards.model.MBThread deleteMBThread(
096 com.liferay.portlet.messageboards.model.MBThread mbThread)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
100
101
108 @SuppressWarnings("rawtypes")
109 public java.util.List dynamicQuery(
110 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113
126 @SuppressWarnings("rawtypes")
127 public java.util.List dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129 int end) throws com.liferay.portal.kernel.exception.SystemException;
130
131
145 @SuppressWarnings("rawtypes")
146 public java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152
159 public long dynamicQueryCount(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
161 throws com.liferay.portal.kernel.exception.SystemException;
162
163
171 public long dynamicQueryCount(
172 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
173 com.liferay.portal.kernel.dao.orm.Projection projection)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public com.liferay.portlet.messageboards.model.MBThread fetchMBThread(
178 long threadId)
179 throws com.liferay.portal.kernel.exception.SystemException;
180
181
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public com.liferay.portlet.messageboards.model.MBThread fetchMBThreadByUuidAndCompanyId(
191 java.lang.String uuid, long companyId)
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public com.liferay.portlet.messageboards.model.MBThread fetchMBThreadByUuidAndGroupId(
204 java.lang.String uuid, long groupId)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public com.liferay.portlet.messageboards.model.MBThread getMBThread(
217 long threadId)
218 throws com.liferay.portal.kernel.exception.PortalException,
219 com.liferay.portal.kernel.exception.SystemException;
220
221 @Override
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public com.liferay.portal.model.PersistedModel getPersistedModel(
224 java.io.Serializable primaryKeyObj)
225 throws com.liferay.portal.kernel.exception.PortalException,
226 com.liferay.portal.kernel.exception.SystemException;
227
228
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public com.liferay.portlet.messageboards.model.MBThread getMBThreadByUuidAndCompanyId(
239 java.lang.String uuid, long companyId)
240 throws com.liferay.portal.kernel.exception.PortalException,
241 com.liferay.portal.kernel.exception.SystemException;
242
243
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public com.liferay.portlet.messageboards.model.MBThread getMBThreadByUuidAndGroupId(
254 java.lang.String uuid, long groupId)
255 throws com.liferay.portal.kernel.exception.PortalException,
256 com.liferay.portal.kernel.exception.SystemException;
257
258
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
272 int start, int end)
273 throws com.liferay.portal.kernel.exception.SystemException;
274
275
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int getMBThreadsCount()
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285
292 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
293 public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
294 com.liferay.portlet.messageboards.model.MBThread mbThread)
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297
302 public java.lang.String getBeanIdentifier();
303
304
309 public void setBeanIdentifier(java.lang.String beanIdentifier);
310
311 public com.liferay.portlet.messageboards.model.MBThread addThread(
312 long categoryId,
313 com.liferay.portlet.messageboards.model.MBMessage message,
314 com.liferay.portal.service.ServiceContext serviceContext)
315 throws com.liferay.portal.kernel.exception.PortalException,
316 com.liferay.portal.kernel.exception.SystemException;
317
318 public void deleteThread(long threadId)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException;
321
322 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, send = false, type = SystemEventConstants.TYPE_DELETE)
323 public void deleteThread(
324 com.liferay.portlet.messageboards.model.MBThread thread)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException;
327
328 public void deleteThreads(long groupId, long categoryId)
329 throws com.liferay.portal.kernel.exception.PortalException,
330 com.liferay.portal.kernel.exception.SystemException;
331
332 public void deleteThreads(long groupId, long categoryId,
333 boolean includeTrashedEntries)
334 throws com.liferay.portal.kernel.exception.PortalException,
335 com.liferay.portal.kernel.exception.SystemException;
336
337 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338 public com.liferay.portlet.messageboards.model.MBThread fetchThread(
339 long threadId)
340 throws com.liferay.portal.kernel.exception.SystemException;
341
342 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
343 public int getCategoryThreadsCount(long groupId, long categoryId, int status)
344 throws com.liferay.portal.kernel.exception.SystemException;
345
346
350 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
352 long groupId, 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.MBThread> getGroupThreads(
357 long groupId, long userId, boolean subscribed,
358 boolean includeAnonymous,
359 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
360 throws com.liferay.portal.kernel.exception.SystemException;
361
362 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
364 long groupId, long userId, boolean subscribed,
365 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
366 throws com.liferay.portal.kernel.exception.SystemException;
367
368
372 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
374 long groupId, long userId, int status, boolean subscribed,
375 boolean includeAnonymous, int start, int end)
376 throws com.liferay.portal.kernel.exception.SystemException;
377
378
382 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
383 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
384 long groupId, long userId, int status, boolean subscribed, int start,
385 int end) throws com.liferay.portal.kernel.exception.SystemException;
386
387
391 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
393 long groupId, long userId, int status, int start, int end)
394 throws com.liferay.portal.kernel.exception.SystemException;
395
396 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
397 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
398 long groupId, long userId,
399 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
400 throws com.liferay.portal.kernel.exception.SystemException;
401
402 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
403 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
404 long groupId,
405 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
406 throws com.liferay.portal.kernel.exception.SystemException;
407
408
412 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
413 public int getGroupThreadsCount(long groupId, int status)
414 throws com.liferay.portal.kernel.exception.SystemException;
415
416 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417 public int getGroupThreadsCount(long groupId, long userId,
418 boolean subscribed, boolean includeAnonymous,
419 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
420 throws com.liferay.portal.kernel.exception.SystemException;
421
422 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423 public int getGroupThreadsCount(long groupId, long userId,
424 boolean subscribed,
425 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
426 throws com.liferay.portal.kernel.exception.SystemException;
427
428
432 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
433 public int getGroupThreadsCount(long groupId, long userId, int status)
434 throws com.liferay.portal.kernel.exception.SystemException;
435
436
440 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
441 public int getGroupThreadsCount(long groupId, long userId, int status,
442 boolean subscribed)
443 throws com.liferay.portal.kernel.exception.SystemException;
444
445
449 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
450 public int getGroupThreadsCount(long groupId, long userId, int status,
451 boolean subscribed, boolean includeAnonymous)
452 throws com.liferay.portal.kernel.exception.SystemException;
453
454 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
455 public int getGroupThreadsCount(long groupId, long userId,
456 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
457 throws com.liferay.portal.kernel.exception.SystemException;
458
459 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
460 public int getGroupThreadsCount(long groupId,
461 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
462 throws com.liferay.portal.kernel.exception.SystemException;
463
464 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
465 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getNoAssetThreads()
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.MBThread> getPriorityThreads(
470 long categoryId, double priority)
471 throws com.liferay.portal.kernel.exception.PortalException,
472 com.liferay.portal.kernel.exception.SystemException;
473
474 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
475 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
476 long categoryId, double priority, boolean inherit)
477 throws com.liferay.portal.kernel.exception.PortalException,
478 com.liferay.portal.kernel.exception.SystemException;
479
480 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
481 public com.liferay.portlet.messageboards.model.MBThread getThread(
482 long threadId)
483 throws com.liferay.portal.kernel.exception.PortalException,
484 com.liferay.portal.kernel.exception.SystemException;
485
486 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
488 long groupId, long categoryId, int status, int start, int end)
489 throws com.liferay.portal.kernel.exception.SystemException;
490
491 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
492 public int getThreadsCount(long groupId, long categoryId, int status)
493 throws com.liferay.portal.kernel.exception.SystemException;
494
495 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
496 public boolean hasAnswerMessage(long threadId)
497 throws com.liferay.portal.kernel.exception.SystemException;
498
499 @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "MBThread", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
500 public com.liferay.portlet.messageboards.model.MBThread incrementViewCounter(
501 long threadId, int increment)
502 throws com.liferay.portal.kernel.exception.PortalException,
503 com.liferay.portal.kernel.exception.SystemException;
504
505 public void moveDependentsToTrash(long groupId, long threadId,
506 long trashEntryId)
507 throws com.liferay.portal.kernel.exception.PortalException,
508 com.liferay.portal.kernel.exception.SystemException;
509
510 public com.liferay.portlet.messageboards.model.MBThread moveThread(
511 long groupId, long categoryId, long threadId)
512 throws com.liferay.portal.kernel.exception.PortalException,
513 com.liferay.portal.kernel.exception.SystemException;
514
515 public com.liferay.portlet.messageboards.model.MBThread moveThreadFromTrash(
516 long userId, long categoryId, long threadId)
517 throws com.liferay.portal.kernel.exception.PortalException,
518 com.liferay.portal.kernel.exception.SystemException;
519
520 public void moveThreadsToTrash(long groupId, long userId)
521 throws com.liferay.portal.kernel.exception.PortalException,
522 com.liferay.portal.kernel.exception.SystemException;
523
524 public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
525 long userId, long threadId)
526 throws com.liferay.portal.kernel.exception.PortalException,
527 com.liferay.portal.kernel.exception.SystemException;
528
529 public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
530 long userId, com.liferay.portlet.messageboards.model.MBThread thread)
531 throws com.liferay.portal.kernel.exception.PortalException,
532 com.liferay.portal.kernel.exception.SystemException;
533
534 public void restoreDependentsFromTrash(long groupId, long threadId,
535 long trashEntryId)
536 throws com.liferay.portal.kernel.exception.PortalException,
537 com.liferay.portal.kernel.exception.SystemException;
538
539 public void restoreThreadFromTrash(long userId, long threadId)
540 throws com.liferay.portal.kernel.exception.PortalException,
541 com.liferay.portal.kernel.exception.SystemException;
542
543 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
544 public com.liferay.portal.kernel.search.Hits search(long groupId,
545 long userId, long creatorUserId, int status, int start, int end)
546 throws com.liferay.portal.kernel.exception.PortalException,
547 com.liferay.portal.kernel.exception.SystemException;
548
549 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
550 public com.liferay.portal.kernel.search.Hits search(long groupId,
551 long userId, long creatorUserId, long startDate, long endDate,
552 int status, int start, int end)
553 throws com.liferay.portal.kernel.exception.PortalException,
554 com.liferay.portal.kernel.exception.SystemException;
555
556 public com.liferay.portlet.messageboards.model.MBThread splitThread(
557 long messageId, java.lang.String subject,
558 com.liferay.portal.service.ServiceContext serviceContext)
559 throws com.liferay.portal.kernel.exception.PortalException,
560 com.liferay.portal.kernel.exception.SystemException;
561
562 public void updateQuestion(long threadId, boolean question)
563 throws com.liferay.portal.kernel.exception.PortalException,
564 com.liferay.portal.kernel.exception.SystemException;
565
566 public com.liferay.portlet.messageboards.model.MBThread updateStatus(
567 long userId, long threadId, int status)
568 throws com.liferay.portal.kernel.exception.PortalException,
569 com.liferay.portal.kernel.exception.SystemException;
570
571
575 public com.liferay.portlet.messageboards.model.MBThread updateThread(
576 long threadId, int viewCount)
577 throws com.liferay.portal.kernel.exception.PortalException,
578 com.liferay.portal.kernel.exception.SystemException;
579 }