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 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) throws PortalException;
097
098
101 @Override
102 public com.liferay.portal.model.PersistedModel deletePersistedModel(
103 com.liferay.portal.model.PersistedModel persistedModel)
104 throws PortalException;
105
106 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
107 public void deleteThread(
108 com.liferay.portlet.messageboards.model.MBThread thread)
109 throws PortalException;
110
111 public void deleteThread(long threadId) throws PortalException;
112
113 public void deleteThreads(long groupId, long categoryId)
114 throws PortalException;
115
116 public void deleteThreads(long groupId, long categoryId,
117 boolean includeTrashedEntries) throws PortalException;
118
119 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
120
121
127 public <T> java.util.List<T> dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
129
130
142 public <T> java.util.List<T> dynamicQuery(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
144 int end);
145
146
159 public <T> java.util.List<T> dynamicQuery(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
161 int end,
162 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
163
164
170 public long dynamicQueryCount(
171 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
172
173
180 public long dynamicQueryCount(
181 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
182 com.liferay.portal.kernel.dao.orm.Projection projection);
183
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portlet.messageboards.model.MBThread fetchMBThread(
186 long threadId);
187
188
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public com.liferay.portlet.messageboards.model.MBThread fetchMBThreadByUuidAndGroupId(
197 java.lang.String uuid, long groupId);
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public com.liferay.portlet.messageboards.model.MBThread fetchThread(
201 long threadId);
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
205
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public int getCategoryThreadsCount(long groupId, long categoryId, int status);
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
211 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext);
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
215 long groupId,
216 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
217
218
222 @java.lang.Deprecated
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
225 long groupId, int status, int start, int end);
226
227 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
229 long groupId, long userId,
230 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
231
232
236 @java.lang.Deprecated
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
239 long groupId, long userId, int status, int start, int end);
240
241
245 @java.lang.Deprecated
246 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
248 long groupId, long userId, int status, boolean subscribed,
249 boolean includeAnonymous, 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, int start,
259 int end);
260
261 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
263 long groupId, long userId, boolean subscribed,
264 boolean includeAnonymous,
265 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
269 long groupId, long userId, boolean subscribed,
270 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
271
272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273 public int getGroupThreadsCount(long groupId,
274 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
275
276
280 @java.lang.Deprecated
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int getGroupThreadsCount(long groupId, int status);
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public int getGroupThreadsCount(long groupId, long userId,
286 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
287
288
292 @java.lang.Deprecated
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public int getGroupThreadsCount(long groupId, long userId, int status);
295
296
300 @java.lang.Deprecated
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public int getGroupThreadsCount(long groupId, long userId, int status,
303 boolean subscribed);
304
305
309 @java.lang.Deprecated
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public int getGroupThreadsCount(long groupId, long userId, int status,
312 boolean subscribed, boolean includeAnonymous);
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public int getGroupThreadsCount(long groupId, long userId,
316 boolean subscribed, boolean includeAnonymous,
317 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public int getGroupThreadsCount(long groupId, long userId,
321 boolean subscribed,
322 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition);
323
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
326
327
334 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
335 public com.liferay.portlet.messageboards.model.MBThread getMBThread(
336 long threadId) throws PortalException;
337
338
346 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347 public com.liferay.portlet.messageboards.model.MBThread getMBThreadByUuidAndGroupId(
348 java.lang.String uuid, long groupId) throws PortalException;
349
350
361 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
363 int start, int end);
364
365
372 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreadsByUuidAndCompanyId(
374 java.lang.String uuid, long companyId);
375
376
386 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreadsByUuidAndCompanyId(
388 java.lang.String uuid, long companyId, int start, int end,
389 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBThread> orderByComparator);
390
391
396 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
397 public int getMBThreadsCount();
398
399 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
400 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getNoAssetThreads();
401
402
407 public java.lang.String getOSGiServiceIdentifier();
408
409 @Override
410 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
411 public com.liferay.portal.model.PersistedModel getPersistedModel(
412 java.io.Serializable primaryKeyObj) throws PortalException;
413
414 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
416 long categoryId, double priority) throws PortalException;
417
418 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
419 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getPriorityThreads(
420 long categoryId, double priority, boolean inherit)
421 throws PortalException;
422
423 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
424 public com.liferay.portlet.messageboards.model.MBThread getThread(
425 long threadId) throws PortalException;
426
427 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
429 long groupId, long categoryId, int status, int start, int end);
430
431 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432 public int getThreadsCount(long groupId, long categoryId, int status);
433
434 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
435 public boolean hasAnswerMessage(long threadId);
436
437 @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "MBThread", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
438 public void incrementViewCounter(long threadId, int increment)
439 throws PortalException;
440
441 public void moveDependentsToTrash(long groupId, long threadId,
442 long trashEntryId) throws PortalException;
443
444 public com.liferay.portlet.messageboards.model.MBThread moveThread(
445 long groupId, long categoryId, long threadId) throws PortalException;
446
447 public com.liferay.portlet.messageboards.model.MBThread moveThreadFromTrash(
448 long userId, long categoryId, long threadId) throws PortalException;
449
450 public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
451 long userId, com.liferay.portlet.messageboards.model.MBThread thread)
452 throws PortalException;
453
454 public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
455 long userId, long threadId) throws PortalException;
456
457 public void moveThreadsToTrash(long groupId, long userId)
458 throws PortalException;
459
460 public void restoreDependentsFromTrash(long groupId, long threadId)
461 throws PortalException;
462
463
467 @java.lang.Deprecated
468 public void restoreDependentsFromTrash(long groupId, long threadId,
469 long trashEntryId) throws PortalException;
470
471 public void restoreThreadFromTrash(long userId, long threadId)
472 throws PortalException;
473
474 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
475 public com.liferay.portal.kernel.search.Hits search(long groupId,
476 long userId, long creatorUserId, long startDate, long endDate,
477 int status, int start, int end) throws PortalException;
478
479 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
480 public com.liferay.portal.kernel.search.Hits search(long groupId,
481 long userId, long creatorUserId, int status, int start, int end)
482 throws PortalException;
483
484 public com.liferay.portlet.messageboards.model.MBThread splitThread(
485 long userId, long messageId, java.lang.String subject,
486 com.liferay.portal.service.ServiceContext serviceContext)
487 throws PortalException;
488
489
495 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
496 public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
497 com.liferay.portlet.messageboards.model.MBThread mbThread);
498
499 public com.liferay.portlet.messageboards.model.MBThread updateMessageCount(
500 long threadId);
501
502 public void updateQuestion(long threadId, boolean question)
503 throws PortalException;
504
505 public com.liferay.portlet.messageboards.model.MBThread updateStatus(
506 long userId, long threadId, int status) throws PortalException;
507
508
512 @java.lang.Deprecated
513 public com.liferay.portlet.messageboards.model.MBThread updateThread(
514 long threadId, int viewCount) throws PortalException;
515 }