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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreadsByUuidAndCompanyId(
376 java.lang.String uuid, long companyId);
377
378 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreadsByUuidAndCompanyId(
380 java.lang.String uuid, long companyId, int start, int end,
381 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBThread> orderByComparator);
382
383
388 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
389 public int getMBThreadsCount();
390
391 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getNoAssetThreads();
393
394 @Override
395 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396 public com.liferay.portal.model.PersistedModel getPersistedModel(
397 java.io.Serializable primaryKeyObj)
398 throws com.liferay.portal.kernel.exception.PortalException;
399
400 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
401 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
402 long categoryId, double priority)
403 throws com.liferay.portal.kernel.exception.PortalException;
404
405 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
407 long categoryId, double priority, boolean inherit)
408 throws com.liferay.portal.kernel.exception.PortalException;
409
410 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
411 public com.liferay.portlet.messageboards.model.MBThread getThread(
412 long threadId)
413 throws com.liferay.portal.kernel.exception.PortalException;
414
415 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
416 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
417 long groupId, long categoryId, int status, int start, int end);
418
419 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
420 public int getThreadsCount(long groupId, long categoryId, int status);
421
422 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423 public boolean hasAnswerMessage(long threadId);
424
425 @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "MBThread", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
426 public void incrementViewCounter(long threadId, int increment)
427 throws com.liferay.portal.kernel.exception.PortalException;
428
429 public void moveDependentsToTrash(long groupId, long threadId,
430 long trashEntryId)
431 throws com.liferay.portal.kernel.exception.PortalException;
432
433 public com.liferay.portlet.messageboards.model.MBThread moveThread(
434 long groupId, long categoryId, long threadId)
435 throws com.liferay.portal.kernel.exception.PortalException;
436
437 public com.liferay.portlet.messageboards.model.MBThread moveThreadFromTrash(
438 long userId, long categoryId, long threadId)
439 throws com.liferay.portal.kernel.exception.PortalException;
440
441 public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
442 long userId, com.liferay.portlet.messageboards.model.MBThread thread)
443 throws com.liferay.portal.kernel.exception.PortalException;
444
445 public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
446 long userId, long threadId)
447 throws com.liferay.portal.kernel.exception.PortalException;
448
449 public void moveThreadsToTrash(long groupId, long userId)
450 throws com.liferay.portal.kernel.exception.PortalException;
451
452 public void restoreDependentsFromTrash(long groupId, long threadId)
453 throws com.liferay.portal.kernel.exception.PortalException;
454
455
459 @java.lang.Deprecated
460 public void restoreDependentsFromTrash(long groupId, long threadId,
461 long trashEntryId)
462 throws com.liferay.portal.kernel.exception.PortalException;
463
464 public void restoreThreadFromTrash(long userId, long threadId)
465 throws com.liferay.portal.kernel.exception.PortalException;
466
467 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468 public com.liferay.portal.kernel.search.Hits search(long groupId,
469 long userId, long creatorUserId, long startDate, long endDate,
470 int status, int start, int end)
471 throws com.liferay.portal.kernel.exception.PortalException;
472
473 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474 public com.liferay.portal.kernel.search.Hits search(long groupId,
475 long userId, long creatorUserId, int status, int start, int end)
476 throws com.liferay.portal.kernel.exception.PortalException;
477
478
483 public void setBeanIdentifier(java.lang.String beanIdentifier);
484
485 public com.liferay.portlet.messageboards.model.MBThread splitThread(
486 long messageId, java.lang.String subject,
487 com.liferay.portal.service.ServiceContext serviceContext)
488 throws com.liferay.portal.kernel.exception.PortalException;
489
490
496 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
497 public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
498 com.liferay.portlet.messageboards.model.MBThread mbThread);
499
500 public void updateQuestion(long threadId, boolean question)
501 throws com.liferay.portal.kernel.exception.PortalException;
502
503 public com.liferay.portlet.messageboards.model.MBThread updateStatus(
504 long userId, long threadId, int status)
505 throws com.liferay.portal.kernel.exception.PortalException;
506
507
511 @java.lang.Deprecated
512 public com.liferay.portlet.messageboards.model.MBThread updateThread(
513 long threadId, int viewCount)
514 throws com.liferay.portal.kernel.exception.PortalException;
515 }