001
014
015 package com.liferay.portlet.asset.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.transaction.Isolation;
022 import com.liferay.portal.kernel.transaction.Propagation;
023 import com.liferay.portal.kernel.transaction.Transactional;
024 import com.liferay.portal.service.BaseLocalService;
025 import com.liferay.portal.service.PersistedModelLocalService;
026
027
039 @ProviderType
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface AssetCategoryLocalService extends BaseLocalService,
043 PersistedModelLocalService {
044
049
050
057 public com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
058 com.liferay.portlet.asset.model.AssetCategory assetCategory)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061
067 public com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
068 long categoryId);
069
070
078 public com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
079 long categoryId)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException;
082
083
090 public com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
091 com.liferay.portlet.asset.model.AssetCategory assetCategory)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
095
096
103 @SuppressWarnings("rawtypes")
104 public java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108
121 @SuppressWarnings("rawtypes")
122 public java.util.List dynamicQuery(
123 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
124 int end) throws com.liferay.portal.kernel.exception.SystemException;
125
126
140 @SuppressWarnings("rawtypes")
141 public java.util.List dynamicQuery(
142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143 int end,
144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147
154 public long dynamicQueryCount(
155 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158
166 public long dynamicQueryCount(
167 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
168 com.liferay.portal.kernel.dao.orm.Projection projection)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portlet.asset.model.AssetCategory fetchAssetCategory(
173 long categoryId)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portlet.asset.model.AssetCategory fetchAssetCategoryByUuidAndCompanyId(
186 java.lang.String uuid, long companyId)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public com.liferay.portlet.asset.model.AssetCategory fetchAssetCategoryByUuidAndGroupId(
199 java.lang.String uuid, long groupId)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
210 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211 public com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
212 long categoryId)
213 throws com.liferay.portal.kernel.exception.PortalException,
214 com.liferay.portal.kernel.exception.SystemException;
215
216 @Override
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public com.liferay.portal.model.PersistedModel getPersistedModel(
219 java.io.Serializable primaryKeyObj)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException;
222
223
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndCompanyId(
234 java.lang.String uuid, long companyId)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException;
237
238
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
249 java.lang.String uuid, long groupId)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException;
252
253
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
267 int start, int end)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public int getAssetCategoriesCount()
278 throws com.liferay.portal.kernel.exception.SystemException;
279
280
287 public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
288 com.liferay.portlet.asset.model.AssetCategory assetCategory)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291
294 public void addAssetEntryAssetCategory(long entryId, long categoryId)
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297
300 public void addAssetEntryAssetCategory(long entryId,
301 com.liferay.portlet.asset.model.AssetCategory assetCategory)
302 throws com.liferay.portal.kernel.exception.SystemException;
303
304
307 public void addAssetEntryAssetCategories(long entryId, long[] categoryIds)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310
313 public void addAssetEntryAssetCategories(long entryId,
314 java.util.List<com.liferay.portlet.asset.model.AssetCategory> AssetCategories)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317
320 public void clearAssetEntryAssetCategories(long entryId)
321 throws com.liferay.portal.kernel.exception.SystemException;
322
323
326 public void deleteAssetEntryAssetCategory(long entryId, long categoryId)
327 throws com.liferay.portal.kernel.exception.SystemException;
328
329
332 public void deleteAssetEntryAssetCategory(long entryId,
333 com.liferay.portlet.asset.model.AssetCategory assetCategory)
334 throws com.liferay.portal.kernel.exception.SystemException;
335
336
339 public void deleteAssetEntryAssetCategories(long entryId, long[] categoryIds)
340 throws com.liferay.portal.kernel.exception.SystemException;
341
342
345 public void deleteAssetEntryAssetCategories(long entryId,
346 java.util.List<com.liferay.portlet.asset.model.AssetCategory> AssetCategories)
347 throws com.liferay.portal.kernel.exception.SystemException;
348
349
352 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
354 long entryId)
355 throws com.liferay.portal.kernel.exception.SystemException;
356
357
360 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
362 long entryId, int start, int end)
363 throws com.liferay.portal.kernel.exception.SystemException;
364
365
368 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
370 long entryId, int start, int end,
371 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372 throws com.liferay.portal.kernel.exception.SystemException;
373
374
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public int getAssetEntryAssetCategoriesCount(long entryId)
379 throws com.liferay.portal.kernel.exception.SystemException;
380
381
384 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385 public boolean hasAssetEntryAssetCategory(long entryId, long categoryId)
386 throws com.liferay.portal.kernel.exception.SystemException;
387
388
391 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392 public boolean hasAssetEntryAssetCategories(long entryId)
393 throws com.liferay.portal.kernel.exception.SystemException;
394
395
398 public void setAssetEntryAssetCategories(long entryId, long[] categoryIds)
399 throws com.liferay.portal.kernel.exception.SystemException;
400
401
406 public java.lang.String getBeanIdentifier();
407
408
413 public void setBeanIdentifier(java.lang.String beanIdentifier);
414
415 public com.liferay.portlet.asset.model.AssetCategory addCategory(
416 long userId, long parentCategoryId,
417 java.util.Map<java.util.Locale, java.lang.String> titleMap,
418 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
419 long vocabularyId, java.lang.String[] categoryProperties,
420 com.liferay.portal.service.ServiceContext serviceContext)
421 throws com.liferay.portal.kernel.exception.PortalException,
422 com.liferay.portal.kernel.exception.SystemException;
423
424 public com.liferay.portlet.asset.model.AssetCategory addCategory(
425 long userId, java.lang.String title, long vocabularyId,
426 com.liferay.portal.service.ServiceContext serviceContext)
427 throws com.liferay.portal.kernel.exception.PortalException,
428 com.liferay.portal.kernel.exception.SystemException;
429
430 public void addCategoryResources(
431 com.liferay.portlet.asset.model.AssetCategory category,
432 boolean addGroupPermissions, boolean addGuestPermissions)
433 throws com.liferay.portal.kernel.exception.PortalException,
434 com.liferay.portal.kernel.exception.SystemException;
435
436 public void addCategoryResources(
437 com.liferay.portlet.asset.model.AssetCategory category,
438 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
439 throws com.liferay.portal.kernel.exception.PortalException,
440 com.liferay.portal.kernel.exception.SystemException;
441
442 public void deleteCategory(
443 com.liferay.portlet.asset.model.AssetCategory category)
444 throws com.liferay.portal.kernel.exception.PortalException,
445 com.liferay.portal.kernel.exception.SystemException;
446
447 public void deleteCategory(long categoryId)
448 throws com.liferay.portal.kernel.exception.PortalException,
449 com.liferay.portal.kernel.exception.SystemException;
450
451 public void deleteVocabularyCategories(long vocabularyId)
452 throws com.liferay.portal.kernel.exception.PortalException,
453 com.liferay.portal.kernel.exception.SystemException;
454
455 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456 public com.liferay.portlet.asset.model.AssetCategory fetchCategory(
457 long categoryId)
458 throws com.liferay.portal.kernel.exception.SystemException;
459
460 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
462 throws com.liferay.portal.kernel.exception.SystemException;
463
464 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
465 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
466 long classNameId, long classPK)
467 throws com.liferay.portal.kernel.exception.SystemException;
468
469 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
470 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
471 java.lang.String className, long classPK)
472 throws com.liferay.portal.kernel.exception.SystemException;
473
474 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
475 public com.liferay.portlet.asset.model.AssetCategory getCategory(
476 long categoryId)
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.asset.model.AssetCategory getCategory(
482 java.lang.String uuid, long groupId)
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 long[] getCategoryIds(java.lang.String className, long classPK)
488 throws com.liferay.portal.kernel.exception.SystemException;
489
490 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491 public java.lang.String[] getCategoryNames()
492 throws com.liferay.portal.kernel.exception.SystemException;
493
494 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495 public java.lang.String[] getCategoryNames(long classNameId, long classPK)
496 throws com.liferay.portal.kernel.exception.SystemException;
497
498 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
499 public java.lang.String[] getCategoryNames(java.lang.String className,
500 long classPK)
501 throws com.liferay.portal.kernel.exception.SystemException;
502
503 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
504 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
505 long parentCategoryId)
506 throws com.liferay.portal.kernel.exception.SystemException;
507
508 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
509 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
510 long parentCategoryId, int start, int end,
511 com.liferay.portal.kernel.util.OrderByComparator obc)
512 throws com.liferay.portal.kernel.exception.SystemException;
513
514 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
515 public int getChildCategoriesCount(long parentCategoryId)
516 throws com.liferay.portal.kernel.exception.SystemException;
517
518 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
519 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
520 long entryId)
521 throws com.liferay.portal.kernel.exception.SystemException;
522
523 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
524 public java.util.List<java.lang.Long> getSubcategoryIds(
525 long parentCategoryId)
526 throws com.liferay.portal.kernel.exception.SystemException;
527
528 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
529 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
530 long vocabularyId, int start, int end,
531 com.liferay.portal.kernel.util.OrderByComparator obc)
532 throws com.liferay.portal.kernel.exception.SystemException;
533
534 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
535 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
536 long parentCategoryId, long vocabularyId, int start, int end,
537 com.liferay.portal.kernel.util.OrderByComparator obc)
538 throws com.liferay.portal.kernel.exception.SystemException;
539
540 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
541 public int getVocabularyCategoriesCount(long vocabularyId)
542 throws com.liferay.portal.kernel.exception.SystemException;
543
544 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
545 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
546 long vocabularyId, int start, int end,
547 com.liferay.portal.kernel.util.OrderByComparator obc)
548 throws com.liferay.portal.kernel.exception.SystemException;
549
550 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
551 public int getVocabularyRootCategoriesCount(long vocabularyId)
552 throws com.liferay.portal.kernel.exception.SystemException;
553
554 public void mergeCategories(long fromCategoryId, long toCategoryId)
555 throws com.liferay.portal.kernel.exception.PortalException,
556 com.liferay.portal.kernel.exception.SystemException;
557
558 public com.liferay.portlet.asset.model.AssetCategory moveCategory(
559 long categoryId, long parentCategoryId, long vocabularyId,
560 com.liferay.portal.service.ServiceContext serviceContext)
561 throws com.liferay.portal.kernel.exception.PortalException,
562 com.liferay.portal.kernel.exception.SystemException;
563
564 public void rebuildTree(long groupId, boolean force)
565 throws com.liferay.portal.kernel.exception.SystemException;
566
567 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
568 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
569 long groupId, java.lang.String name,
570 java.lang.String[] categoryProperties, int start, int end)
571 throws com.liferay.portal.kernel.exception.SystemException;
572
573 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
574 long userId, long categoryId, long parentCategoryId,
575 java.util.Map<java.util.Locale, java.lang.String> titleMap,
576 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
577 long vocabularyId, java.lang.String[] categoryProperties,
578 com.liferay.portal.service.ServiceContext serviceContext)
579 throws com.liferay.portal.kernel.exception.PortalException,
580 com.liferay.portal.kernel.exception.SystemException;
581 }