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
058 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059 public com.liferay.portlet.messageboards.model.MBThread addMBThread(
060 com.liferay.portlet.messageboards.model.MBThread mbThread);
061
062 public com.liferay.portlet.messageboards.model.MBThread addThread(
063 long categoryId,
064 com.liferay.portlet.messageboards.model.MBMessage message,
065 com.liferay.portal.service.ServiceContext serviceContext)
066 throws com.liferay.portal.kernel.exception.PortalException;
067
068
074 public com.liferay.portlet.messageboards.model.MBThread createMBThread(
075 long threadId);
076
077
083 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
084 public com.liferay.portlet.messageboards.model.MBThread deleteMBThread(
085 com.liferay.portlet.messageboards.model.MBThread mbThread);
086
087
094 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
095 public com.liferay.portlet.messageboards.model.MBThread deleteMBThread(
096 long threadId)
097 throws com.liferay.portal.kernel.exception.PortalException;
098
099
102 @Override
103 public com.liferay.portal.model.PersistedModel deletePersistedModel(
104 com.liferay.portal.model.PersistedModel persistedModel)
105 throws com.liferay.portal.kernel.exception.PortalException;
106
107 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
108 public void deleteThread(
109 com.liferay.portlet.messageboards.model.MBThread thread)
110 throws com.liferay.portal.kernel.exception.PortalException;
111
112 public void deleteThread(long threadId)
113 throws com.liferay.portal.kernel.exception.PortalException;
114
115 public void deleteThreads(long groupId, long categoryId)
116 throws com.liferay.portal.kernel.exception.PortalException;
117
118 public void deleteThreads(long groupId, long categoryId,
119 boolean includeTrashedEntries)
120 throws com.liferay.portal.kernel.exception.PortalException;
121
122 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
123
124
130 public <T> java.util.List<T> dynamicQuery(
131 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
132
133
145 public <T> java.util.List<T> dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end);
148
149
162 public <T> java.util.List<T> dynamicQuery(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
164 int end,
165 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
166
167
173 public long dynamicQueryCount(
174 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
175
176
183 public long dynamicQueryCount(
184 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
185 com.liferay.portal.kernel.dao.orm.Projection projection);
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public com.liferay.portlet.messageboards.model.MBThread fetchMBThread(
189 long threadId);
190
191
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public com.liferay.portlet.messageboards.model.MBThread fetchMBThreadByUuidAndGroupId(
200 java.lang.String uuid, long groupId);
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public com.liferay.portlet.messageboards.model.MBThread fetchThread(
204 long threadId);
205
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
208
209
214 public java.lang.String getBeanIdentifier();
215
216 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217 public int getCategoryThreadsCount(long groupId, long categoryId, int status);
218
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
221 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
225 long groupId,
226 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
227
228
232 @java.lang.Deprecated
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
235 long groupId, int status, int start, int end);
236
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
239 long groupId, long userId,
240 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
241
242
246 @java.lang.Deprecated
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
249 long groupId, long userId, int status, int start, int end);
250
251
255 @java.lang.Deprecated
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
258 long groupId, long userId, int status, boolean subscribed,
259 boolean includeAnonymous, int start, int end);
260
261
265 @java.lang.Deprecated
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
268 long groupId, long userId, int status, boolean subscribed, int start,
269 int end);
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
273 long groupId, long userId, boolean subscribed,
274 boolean includeAnonymous,
275 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
276
277 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
279 long groupId, long userId, boolean subscribed,
280 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public int getGroupThreadsCount(long groupId,
284 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
285
286
290 @java.lang.Deprecated
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public int getGroupThreadsCount(long groupId, int status);
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public int getGroupThreadsCount(long groupId, long userId,
296 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
297
298
302 @java.lang.Deprecated
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public int getGroupThreadsCount(long groupId, long userId, int status);
305
306
310 @java.lang.Deprecated
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public int getGroupThreadsCount(long groupId, long userId, int status,
313 boolean subscribed);
314
315
319 @java.lang.Deprecated
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public int getGroupThreadsCount(long groupId, long userId, int status,
322 boolean subscribed, boolean includeAnonymous);
323
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public int getGroupThreadsCount(long groupId, long userId,
326 boolean subscribed, boolean includeAnonymous,
327 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
328
329 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330 public int getGroupThreadsCount(long groupId, long userId,
331 boolean subscribed,
332 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
333
334
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public com.liferay.portlet.messageboards.model.MBThread getMBThread(
343 long threadId)
344 throws com.liferay.portal.kernel.exception.PortalException;
345
346
354 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355 public com.liferay.portlet.messageboards.model.MBThread getMBThreadByUuidAndGroupId(
356 java.lang.String uuid, long groupId)
357 throws com.liferay.portal.kernel.exception.PortalException;
358
359
370 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
371 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
372 int start, int end);
373
374
381 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
382 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreadsByUuidAndCompanyId(
383 java.lang.String uuid, long companyId);
384
385
395 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreadsByUuidAndCompanyId(
397 java.lang.String uuid, long companyId, int start, int end,
398 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBThread> orderByComparator);
399
400
405 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406 public int getMBThreadsCount();
407
408 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
409 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getNoAssetThreads();
410
411 @Override
412 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
413 public com.liferay.portal.model.PersistedModel getPersistedModel(
414 java.io.Serializable primaryKeyObj)
415 throws com.liferay.portal.kernel.exception.PortalException;
416
417 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
418 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
419 long categoryId, double priority)
420 throws com.liferay.portal.kernel.exception.PortalException;
421
422 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
424 long categoryId, double priority, boolean inherit)
425 throws com.liferay.portal.kernel.exception.PortalException;
426
427 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428 public com.liferay.portlet.messageboards.model.MBThread getThread(
429 long threadId)
430 throws com.liferay.portal.kernel.exception.PortalException;
431
432 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
433 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
434 long groupId, long categoryId, int status, int start, int end);
435
436 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437 public int getThreadsCount(long groupId, long categoryId, int status);
438
439 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440 public boolean hasAnswerMessage(long threadId);
441
442 @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "MBThread", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
443 public void incrementViewCounter(long threadId, int increment)
444 throws com.liferay.portal.kernel.exception.PortalException;
445
446 public void moveDependentsToTrash(long groupId, long threadId,
447 long trashEntryId)
448 throws com.liferay.portal.kernel.exception.PortalException;
449
450 public com.liferay.portlet.messageboards.model.MBThread moveThread(
451 long groupId, long categoryId, long threadId)
452 throws com.liferay.portal.kernel.exception.PortalException;
453
454 public com.liferay.portlet.messageboards.model.MBThread moveThreadFromTrash(
455 long userId, long categoryId, long threadId)
456 throws com.liferay.portal.kernel.exception.PortalException;
457
458 public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
459 long userId, com.liferay.portlet.messageboards.model.MBThread thread)
460 throws com.liferay.portal.kernel.exception.PortalException;
461
462 public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
463 long userId, long threadId)
464 throws com.liferay.portal.kernel.exception.PortalException;
465
466 public void moveThreadsToTrash(long groupId, long userId)
467 throws com.liferay.portal.kernel.exception.PortalException;
468
469 public void restoreDependentsFromTrash(long groupId, long threadId)
470 throws com.liferay.portal.kernel.exception.PortalException;
471
472
476 @java.lang.Deprecated
477 public void restoreDependentsFromTrash(long groupId, long threadId,
478 long trashEntryId)
479 throws com.liferay.portal.kernel.exception.PortalException;
480
481 public void restoreThreadFromTrash(long userId, long threadId)
482 throws com.liferay.portal.kernel.exception.PortalException;
483
484 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
485 public com.liferay.portal.kernel.search.Hits search(long groupId,
486 long userId, long creatorUserId, long startDate, long endDate,
487 int status, int start, int end)
488 throws com.liferay.portal.kernel.exception.PortalException;
489
490 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491 public com.liferay.portal.kernel.search.Hits search(long groupId,
492 long userId, long creatorUserId, int status, int start, int end)
493 throws com.liferay.portal.kernel.exception.PortalException;
494
495
500 public void setBeanIdentifier(java.lang.String beanIdentifier);
501
502 public com.liferay.portlet.messageboards.model.MBThread splitThread(
503 long messageId, java.lang.String subject,
504 com.liferay.portal.service.ServiceContext serviceContext)
505 throws com.liferay.portal.kernel.exception.PortalException;
506
507
513 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
514 public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
515 com.liferay.portlet.messageboards.model.MBThread mbThread);
516
517 public void updateQuestion(long threadId, boolean question)
518 throws com.liferay.portal.kernel.exception.PortalException;
519
520 public com.liferay.portlet.messageboards.model.MBThread updateStatus(
521 long userId, long threadId, int status)
522 throws com.liferay.portal.kernel.exception.PortalException;
523
524
528 @java.lang.Deprecated
529 public com.liferay.portlet.messageboards.model.MBThread updateThread(
530 long threadId, int viewCount)
531 throws com.liferay.portal.kernel.exception.PortalException;
532 }