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 MBCategoryLocalService extends BaseLocalService,
045 PersistedModelLocalService {
046
051
052
059 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
060 public com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
061 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
062 throws com.liferay.portal.kernel.exception.SystemException;
063
064
070 public com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
071 long categoryId);
072
073
081 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
082 public com.liferay.portlet.messageboards.model.MBCategory deleteMBCategory(
083 long categoryId)
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.MBCategory deleteMBCategory(
096 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
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.MBCategory fetchMBCategory(
178 long categoryId)
179 throws com.liferay.portal.kernel.exception.SystemException;
180
181
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public com.liferay.portlet.messageboards.model.MBCategory fetchMBCategoryByUuidAndCompanyId(
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.MBCategory fetchMBCategoryByUuidAndGroupId(
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.MBCategory getMBCategory(
217 long categoryId)
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.MBCategory getMBCategoryByUuidAndCompanyId(
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.MBCategory getMBCategoryByUuidAndGroupId(
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.MBCategory> getMBCategories(
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 getMBCategoriesCount()
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.MBCategory updateMBCategory(
294 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
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.MBCategory addCategory(
312 long userId, long parentCategoryId, java.lang.String name,
313 java.lang.String description,
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 com.liferay.portlet.messageboards.model.MBCategory addCategory(
319 long userId, long parentCategoryId, java.lang.String name,
320 java.lang.String description, java.lang.String displayStyle,
321 java.lang.String emailAddress, java.lang.String inProtocol,
322 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
323 java.lang.String inUserName, java.lang.String inPassword,
324 int inReadInterval, java.lang.String outEmailAddress,
325 boolean outCustom, java.lang.String outServerName, int outServerPort,
326 boolean outUseSSL, java.lang.String outUserName,
327 java.lang.String outPassword, boolean allowAnonymous,
328 boolean mailingListActive,
329 com.liferay.portal.service.ServiceContext serviceContext)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException;
332
333 public void addCategoryResources(long categoryId,
334 boolean addGroupPermissions, boolean addGuestPermissions)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException;
337
338 public void addCategoryResources(long categoryId,
339 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
340 throws com.liferay.portal.kernel.exception.PortalException,
341 com.liferay.portal.kernel.exception.SystemException;
342
343 public void addCategoryResources(
344 com.liferay.portlet.messageboards.model.MBCategory category,
345 boolean addGroupPermissions, boolean addGuestPermissions)
346 throws com.liferay.portal.kernel.exception.PortalException,
347 com.liferay.portal.kernel.exception.SystemException;
348
349 public void addCategoryResources(
350 com.liferay.portlet.messageboards.model.MBCategory category,
351 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
352 throws com.liferay.portal.kernel.exception.PortalException,
353 com.liferay.portal.kernel.exception.SystemException;
354
355 public void deleteCategories(long groupId)
356 throws com.liferay.portal.kernel.exception.PortalException,
357 com.liferay.portal.kernel.exception.SystemException;
358
359 public void deleteCategory(long categoryId)
360 throws com.liferay.portal.kernel.exception.PortalException,
361 com.liferay.portal.kernel.exception.SystemException;
362
363 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
364 public void deleteCategory(
365 com.liferay.portlet.messageboards.model.MBCategory category)
366 throws com.liferay.portal.kernel.exception.PortalException,
367 com.liferay.portal.kernel.exception.SystemException;
368
369 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
370 public void deleteCategory(
371 com.liferay.portlet.messageboards.model.MBCategory category,
372 boolean includeTrashedEntries)
373 throws com.liferay.portal.kernel.exception.PortalException,
374 com.liferay.portal.kernel.exception.SystemException;
375
376 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
377 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
378 long groupId)
379 throws com.liferay.portal.kernel.exception.SystemException;
380
381 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
382 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
383 long groupId, int status)
384 throws com.liferay.portal.kernel.exception.SystemException;
385
386 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
388 long groupId, long parentCategoryId, int start, int end)
389 throws com.liferay.portal.kernel.exception.SystemException;
390
391 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
393 long groupId, long parentCategoryId, 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.MBCategory> getCategories(
398 long groupId, long[] parentCategoryIds, int start, int end)
399 throws com.liferay.portal.kernel.exception.SystemException;
400
401 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
403 long groupId, long[] parentCategoryIds, int status, int start, int end)
404 throws com.liferay.portal.kernel.exception.SystemException;
405
406 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
407 public java.util.List<java.lang.Object> getCategoriesAndThreads(
408 long groupId, long categoryId)
409 throws com.liferay.portal.kernel.exception.SystemException;
410
411 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
412 public int getCategoriesCount(long groupId)
413 throws com.liferay.portal.kernel.exception.SystemException;
414
415 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
416 public int getCategoriesCount(long groupId, int status)
417 throws com.liferay.portal.kernel.exception.SystemException;
418
419 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
420 public int getCategoriesCount(long groupId, long parentCategoryId)
421 throws com.liferay.portal.kernel.exception.SystemException;
422
423 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
424 public int getCategoriesCount(long groupId, long parentCategoryId,
425 int status) throws com.liferay.portal.kernel.exception.SystemException;
426
427 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428 public int getCategoriesCount(long groupId, long[] parentCategoryIds)
429 throws com.liferay.portal.kernel.exception.SystemException;
430
431 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432 public int getCategoriesCount(long groupId, long[] parentCategoryIds,
433 int status) throws com.liferay.portal.kernel.exception.SystemException;
434
435 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436 public com.liferay.portlet.messageboards.model.MBCategory getCategory(
437 long categoryId)
438 throws com.liferay.portal.kernel.exception.PortalException,
439 com.liferay.portal.kernel.exception.SystemException;
440
441 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
442 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
443 long companyId, int start, int end)
444 throws com.liferay.portal.kernel.exception.SystemException;
445
446 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
447 public int getCompanyCategoriesCount(long companyId)
448 throws com.liferay.portal.kernel.exception.SystemException;
449
450 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
451 public java.util.List<java.lang.Long> getSubcategoryIds(
452 java.util.List<java.lang.Long> categoryIds, long groupId,
453 long categoryId)
454 throws com.liferay.portal.kernel.exception.SystemException;
455
456 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
457 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
458 long groupId, long userId, int start, int end)
459 throws com.liferay.portal.kernel.exception.SystemException;
460
461 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
462 public int getSubscribedCategoriesCount(long groupId, long userId)
463 throws com.liferay.portal.kernel.exception.SystemException;
464
465 public void moveCategoriesToTrash(long groupId, long userId)
466 throws com.liferay.portal.kernel.exception.PortalException,
467 com.liferay.portal.kernel.exception.SystemException;
468
469 public com.liferay.portlet.messageboards.model.MBCategory moveCategory(
470 long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
471 throws com.liferay.portal.kernel.exception.PortalException,
472 com.liferay.portal.kernel.exception.SystemException;
473
474 public com.liferay.portlet.messageboards.model.MBCategory moveCategoryFromTrash(
475 long userId, long categoryId, long newCategoryId)
476 throws com.liferay.portal.kernel.exception.PortalException,
477 com.liferay.portal.kernel.exception.SystemException;
478
479 public com.liferay.portlet.messageboards.model.MBCategory moveCategoryToTrash(
480 long userId, long categoryId)
481 throws com.liferay.portal.kernel.exception.PortalException,
482 com.liferay.portal.kernel.exception.SystemException;
483
484 public void restoreCategoryFromTrash(long userId, long categoryId)
485 throws com.liferay.portal.kernel.exception.PortalException,
486 com.liferay.portal.kernel.exception.SystemException;
487
488 public void subscribeCategory(long userId, long groupId, long categoryId)
489 throws com.liferay.portal.kernel.exception.PortalException,
490 com.liferay.portal.kernel.exception.SystemException;
491
492 public void unsubscribeCategory(long userId, long groupId, long categoryId)
493 throws com.liferay.portal.kernel.exception.PortalException,
494 com.liferay.portal.kernel.exception.SystemException;
495
496 public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
497 long categoryId, long parentCategoryId, java.lang.String name,
498 java.lang.String description, java.lang.String displayStyle,
499 java.lang.String emailAddress, java.lang.String inProtocol,
500 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
501 java.lang.String inUserName, java.lang.String inPassword,
502 int inReadInterval, java.lang.String outEmailAddress,
503 boolean outCustom, java.lang.String outServerName, int outServerPort,
504 boolean outUseSSL, java.lang.String outUserName,
505 java.lang.String outPassword, boolean allowAnonymous,
506 boolean mailingListActive, boolean mergeWithParentCategory,
507 com.liferay.portal.service.ServiceContext serviceContext)
508 throws com.liferay.portal.kernel.exception.PortalException,
509 com.liferay.portal.kernel.exception.SystemException;
510
511 public com.liferay.portlet.messageboards.model.MBCategory updateStatus(
512 long userId, long categoryId, int status)
513 throws com.liferay.portal.kernel.exception.PortalException,
514 com.liferay.portal.kernel.exception.SystemException;
515 }