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.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 AssetCategoryLocalService extends BaseLocalService,
045 PersistedModelLocalService {
046
051
052
058 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059 public com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
060 com.liferay.portlet.asset.model.AssetCategory assetCategory);
061
062 public void addAssetEntryAssetCategories(long entryId,
063 java.util.List<com.liferay.portlet.asset.model.AssetCategory> AssetCategories);
064
065 public void addAssetEntryAssetCategories(long entryId, long[] categoryIds);
066
067 public void addAssetEntryAssetCategory(long entryId,
068 com.liferay.portlet.asset.model.AssetCategory assetCategory);
069
070 public void addAssetEntryAssetCategory(long entryId, long categoryId);
071
072 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
073 public com.liferay.portlet.asset.model.AssetCategory addCategory(
074 long userId, long parentCategoryId,
075 java.util.Map<java.util.Locale, java.lang.String> titleMap,
076 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
077 long vocabularyId, java.lang.String[] categoryProperties,
078 com.liferay.portal.service.ServiceContext serviceContext)
079 throws com.liferay.portal.kernel.exception.PortalException;
080
081 public com.liferay.portlet.asset.model.AssetCategory addCategory(
082 long userId, java.lang.String title, long vocabularyId,
083 com.liferay.portal.service.ServiceContext serviceContext)
084 throws com.liferay.portal.kernel.exception.PortalException;
085
086 public void addCategoryResources(
087 com.liferay.portlet.asset.model.AssetCategory category,
088 boolean addGroupPermissions, boolean addGuestPermissions)
089 throws com.liferay.portal.kernel.exception.PortalException;
090
091 public void addCategoryResources(
092 com.liferay.portlet.asset.model.AssetCategory category,
093 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
094 throws com.liferay.portal.kernel.exception.PortalException;
095
096 public void clearAssetEntryAssetCategories(long entryId);
097
098
104 public com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
105 long categoryId);
106
107
113 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
114 public com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
115 com.liferay.portlet.asset.model.AssetCategory assetCategory);
116
117
124 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
125 public com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
126 long categoryId)
127 throws com.liferay.portal.kernel.exception.PortalException;
128
129 public void deleteAssetEntryAssetCategories(long entryId,
130 java.util.List<com.liferay.portlet.asset.model.AssetCategory> AssetCategories);
131
132 public void deleteAssetEntryAssetCategories(long entryId, long[] categoryIds);
133
134 public void deleteAssetEntryAssetCategory(long entryId,
135 com.liferay.portlet.asset.model.AssetCategory assetCategory);
136
137 public void deleteAssetEntryAssetCategory(long entryId, long categoryId);
138
139 public void deleteCategories(
140 java.util.List<com.liferay.portlet.asset.model.AssetCategory> categories)
141 throws com.liferay.portal.kernel.exception.PortalException;
142
143 public void deleteCategories(long[] categoryIds)
144 throws com.liferay.portal.kernel.exception.PortalException;
145
146 @com.liferay.portal.kernel.systemevent.SystemEvent(type = SystemEventConstants.TYPE_DELETE)
147 public com.liferay.portlet.asset.model.AssetCategory deleteCategory(
148 com.liferay.portlet.asset.model.AssetCategory category)
149 throws com.liferay.portal.kernel.exception.PortalException;
150
151 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
152 public com.liferay.portlet.asset.model.AssetCategory deleteCategory(
153 com.liferay.portlet.asset.model.AssetCategory category,
154 boolean skipRebuildTree)
155 throws com.liferay.portal.kernel.exception.PortalException;
156
157 public com.liferay.portlet.asset.model.AssetCategory deleteCategory(
158 long categoryId)
159 throws com.liferay.portal.kernel.exception.PortalException;
160
161
164 @Override
165 public com.liferay.portal.model.PersistedModel deletePersistedModel(
166 com.liferay.portal.model.PersistedModel persistedModel)
167 throws com.liferay.portal.kernel.exception.PortalException;
168
169 public void deleteVocabularyCategories(long vocabularyId)
170 throws com.liferay.portal.kernel.exception.PortalException;
171
172 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
173
174
180 public <T> java.util.List<T> dynamicQuery(
181 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
182
183
195 public <T> java.util.List<T> dynamicQuery(
196 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
197 int end);
198
199
212 public <T> java.util.List<T> dynamicQuery(
213 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
214 int end,
215 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
216
217
223 public long dynamicQueryCount(
224 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
225
226
233 public long dynamicQueryCount(
234 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
235 com.liferay.portal.kernel.dao.orm.Projection projection);
236
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public com.liferay.portlet.asset.model.AssetCategory fetchAssetCategory(
239 long categoryId);
240
241
248 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
249 public com.liferay.portlet.asset.model.AssetCategory fetchAssetCategoryByUuidAndGroupId(
250 java.lang.String uuid, long groupId);
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public com.liferay.portlet.asset.model.AssetCategory fetchCategory(
254 long categoryId);
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
258
259
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
272 int start, int end);
273
274
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategoriesByUuidAndCompanyId(
283 java.lang.String uuid, long companyId);
284
285
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategoriesByUuidAndCompanyId(
297 java.lang.String uuid, long companyId, int start, int end,
298 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> orderByComparator);
299
300
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public int getAssetCategoriesCount();
307
308
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
317 long categoryId)
318 throws com.liferay.portal.kernel.exception.PortalException;
319
320
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
330 java.lang.String uuid, long groupId)
331 throws com.liferay.portal.kernel.exception.PortalException;
332
333 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
335 long entryId);
336
337 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
339 long entryId, int start, int end);
340
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
343 long entryId, int start, int end,
344 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> orderByComparator);
345
346 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347 public int getAssetEntryAssetCategoriesCount(long entryId);
348
349
355 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356 public long[] getAssetEntryPrimaryKeys(long categoryId);
357
358
363 public java.lang.String getBeanIdentifier();
364
365 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories();
367
368 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
370 java.lang.String className, long classPK);
371
372 @com.liferay.portal.kernel.cache.ThreadLocalCachable
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
375 long classNameId, long classPK);
376
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public com.liferay.portlet.asset.model.AssetCategory getCategory(
379 long categoryId)
380 throws com.liferay.portal.kernel.exception.PortalException;
381
382 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
383 public com.liferay.portlet.asset.model.AssetCategory getCategory(
384 java.lang.String uuid, long groupId)
385 throws com.liferay.portal.kernel.exception.PortalException;
386
387 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
388 public long[] getCategoryIds(java.lang.String className, long classPK);
389
390 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
391 public java.lang.String[] getCategoryNames();
392
393 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394 public java.lang.String[] getCategoryNames(java.lang.String className,
395 long classPK);
396
397 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398 public java.lang.String[] getCategoryNames(long classNameId, long classPK);
399
400 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
401 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
402 long parentCategoryId);
403
404 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
406 long parentCategoryId, int start, int end,
407 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
408
409 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
410 public int getChildCategoriesCount(long parentCategoryId);
411
412 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
413 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
414 long entryId);
415
416 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
418 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
419
420 @Override
421 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422 public com.liferay.portal.model.PersistedModel getPersistedModel(
423 java.io.Serializable primaryKeyObj)
424 throws com.liferay.portal.kernel.exception.PortalException;
425
426 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
427 public java.util.List<java.lang.Long> getSubcategoryIds(
428 long parentCategoryId);
429
430 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
432 long parentCategoryId, long vocabularyId, int start, int end,
433 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
434
435 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
437 long vocabularyId, int start, int end,
438 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
439
440 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
441 public int getVocabularyCategoriesCount(long vocabularyId);
442
443 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
444 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
445 long vocabularyId, int start, int end,
446 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
447
448 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449 public int getVocabularyRootCategoriesCount(long vocabularyId);
450
451 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
452 public boolean hasAssetEntryAssetCategories(long entryId);
453
454 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
455 public boolean hasAssetEntryAssetCategory(long entryId, long categoryId);
456
457 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
458 public com.liferay.portlet.asset.model.AssetCategory mergeCategories(
459 long fromCategoryId, long toCategoryId)
460 throws com.liferay.portal.kernel.exception.PortalException;
461
462 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
463 public com.liferay.portlet.asset.model.AssetCategory moveCategory(
464 long categoryId, long parentCategoryId, long vocabularyId,
465 com.liferay.portal.service.ServiceContext serviceContext)
466 throws com.liferay.portal.kernel.exception.PortalException;
467
468 public void rebuildTree(long groupId, boolean force);
469
470 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
471 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
472 long groupId, java.lang.String name,
473 java.lang.String[] categoryProperties, int start, int end);
474
475 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
476 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetCategory> searchCategories(
477 long companyId, long[] groupIds, java.lang.String title,
478 long[] parentCategoryIds, long[] vocabularyIds, int start, int end)
479 throws com.liferay.portal.kernel.exception.PortalException;
480
481 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
482 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetCategory> searchCategories(
483 long companyId, long groupIds, java.lang.String title,
484 long vocabularyId, int start, int end)
485 throws com.liferay.portal.kernel.exception.PortalException;
486
487 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
488 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetCategory> searchCategories(
489 long companyId, long[] groupIds, java.lang.String title,
490 long[] vocabularyIds, int start, int end)
491 throws com.liferay.portal.kernel.exception.PortalException;
492
493 public void setAssetEntryAssetCategories(long entryId, long[] categoryIds);
494
495
500 public void setBeanIdentifier(java.lang.String beanIdentifier);
501
502
508 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
509 public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
510 com.liferay.portlet.asset.model.AssetCategory assetCategory);
511
512 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
513 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
514 long userId, long categoryId, long parentCategoryId,
515 java.util.Map<java.util.Locale, java.lang.String> titleMap,
516 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
517 long vocabularyId, java.lang.String[] categoryProperties,
518 com.liferay.portal.service.ServiceContext serviceContext)
519 throws com.liferay.portal.kernel.exception.PortalException;
520 }