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 @com.liferay.portal.kernel.systemevent.SystemEvent(type = SystemEventConstants.TYPE_DELETE)
140 public com.liferay.portlet.asset.model.AssetCategory deleteCategory(
141 com.liferay.portlet.asset.model.AssetCategory category)
142 throws com.liferay.portal.kernel.exception.PortalException;
143
144 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
145 public com.liferay.portlet.asset.model.AssetCategory deleteCategory(
146 com.liferay.portlet.asset.model.AssetCategory category,
147 boolean childCategory)
148 throws com.liferay.portal.kernel.exception.PortalException;
149
150 public com.liferay.portlet.asset.model.AssetCategory deleteCategory(
151 long categoryId)
152 throws com.liferay.portal.kernel.exception.PortalException;
153
154
157 @Override
158 public com.liferay.portal.model.PersistedModel deletePersistedModel(
159 com.liferay.portal.model.PersistedModel persistedModel)
160 throws com.liferay.portal.kernel.exception.PortalException;
161
162 public void deleteVocabularyCategories(long vocabularyId)
163 throws com.liferay.portal.kernel.exception.PortalException;
164
165 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
166
167
173 public <T> java.util.List<T> dynamicQuery(
174 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
175
176
188 public <T> java.util.List<T> dynamicQuery(
189 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
190 int end);
191
192
205 public <T> java.util.List<T> dynamicQuery(
206 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
207 int end,
208 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
209
210
216 public long dynamicQueryCount(
217 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
218
219
226 public long dynamicQueryCount(
227 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
228 com.liferay.portal.kernel.dao.orm.Projection projection);
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public com.liferay.portlet.asset.model.AssetCategory fetchAssetCategory(
232 long categoryId);
233
234
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public com.liferay.portlet.asset.model.AssetCategory fetchAssetCategoryByUuidAndGroupId(
243 java.lang.String uuid, long groupId);
244
245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246 public com.liferay.portlet.asset.model.AssetCategory fetchCategory(
247 long categoryId);
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
251
252
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
265 int start, int end);
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategoriesByUuidAndCompanyId(
269 java.lang.String uuid, long companyId);
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategoriesByUuidAndCompanyId(
273 java.lang.String uuid, long companyId, int start, int end,
274 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> orderByComparator);
275
276
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int getAssetCategoriesCount();
283
284
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
293 long categoryId)
294 throws com.liferay.portal.kernel.exception.PortalException;
295
296
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
306 java.lang.String uuid, long groupId)
307 throws com.liferay.portal.kernel.exception.PortalException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
311 long entryId);
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
315 long entryId, int start, int end);
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
319 long entryId, int start, int end,
320 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> orderByComparator);
321
322 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323 public int getAssetEntryAssetCategoriesCount(long entryId);
324
325
331 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332 public long[] getAssetEntryPrimaryKeys(long categoryId);
333
334
339 public java.lang.String getBeanIdentifier();
340
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories();
343
344 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
346 java.lang.String className, long classPK);
347
348 @com.liferay.portal.kernel.cache.ThreadLocalCachable
349 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
351 long classNameId, long classPK);
352
353 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354 public com.liferay.portlet.asset.model.AssetCategory getCategory(
355 long categoryId)
356 throws com.liferay.portal.kernel.exception.PortalException;
357
358 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359 public com.liferay.portlet.asset.model.AssetCategory getCategory(
360 java.lang.String uuid, long groupId)
361 throws com.liferay.portal.kernel.exception.PortalException;
362
363 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364 public long[] getCategoryIds(java.lang.String className, long classPK);
365
366 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367 public java.lang.String[] getCategoryNames();
368
369 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370 public java.lang.String[] getCategoryNames(java.lang.String className,
371 long classPK);
372
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public java.lang.String[] getCategoryNames(long classNameId, long classPK);
375
376 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
377 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
378 long parentCategoryId);
379
380 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
381 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
382 long parentCategoryId, int start, int end,
383 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
384
385 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
386 public int getChildCategoriesCount(long parentCategoryId);
387
388 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
389 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
390 long entryId);
391
392 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
394 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
395
396 @Override
397 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398 public com.liferay.portal.model.PersistedModel getPersistedModel(
399 java.io.Serializable primaryKeyObj)
400 throws com.liferay.portal.kernel.exception.PortalException;
401
402 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
403 public java.util.List<java.lang.Long> getSubcategoryIds(
404 long parentCategoryId);
405
406 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
407 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
408 long parentCategoryId, long vocabularyId, int start, int end,
409 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
410
411 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
412 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
413 long vocabularyId, int start, int end,
414 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
415
416 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417 public int getVocabularyCategoriesCount(long vocabularyId);
418
419 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
420 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
421 long vocabularyId, int start, int end,
422 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc);
423
424 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425 public int getVocabularyRootCategoriesCount(long vocabularyId);
426
427 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428 public boolean hasAssetEntryAssetCategories(long entryId);
429
430 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431 public boolean hasAssetEntryAssetCategory(long entryId, long categoryId);
432
433 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
434 public com.liferay.portlet.asset.model.AssetCategory mergeCategories(
435 long fromCategoryId, long toCategoryId)
436 throws com.liferay.portal.kernel.exception.PortalException;
437
438 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
439 public com.liferay.portlet.asset.model.AssetCategory moveCategory(
440 long categoryId, long parentCategoryId, long vocabularyId,
441 com.liferay.portal.service.ServiceContext serviceContext)
442 throws com.liferay.portal.kernel.exception.PortalException;
443
444 public void rebuildTree(long groupId, boolean force);
445
446 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
447 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
448 long groupId, java.lang.String name,
449 java.lang.String[] categoryProperties, int start, int end);
450
451 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
452 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetCategory> searchCategories(
453 long companyId, long[] groupIds, java.lang.String title,
454 long[] parentCategoryIds, long[] vocabularyIds, int start, int end)
455 throws com.liferay.portal.kernel.exception.PortalException;
456
457 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
458 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetCategory> searchCategories(
459 long companyId, long groupIds, java.lang.String title,
460 long vocabularyId, int start, int end)
461 throws com.liferay.portal.kernel.exception.PortalException;
462
463 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
464 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetCategory> searchCategories(
465 long companyId, long[] groupIds, java.lang.String title,
466 long[] vocabularyIds, int start, int end)
467 throws com.liferay.portal.kernel.exception.PortalException;
468
469 public void setAssetEntryAssetCategories(long entryId, long[] categoryIds);
470
471
476 public void setBeanIdentifier(java.lang.String beanIdentifier);
477
478
484 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
485 public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
486 com.liferay.portlet.asset.model.AssetCategory assetCategory);
487
488 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
489 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
490 long userId, long categoryId, long parentCategoryId,
491 java.util.Map<java.util.Locale, java.lang.String> titleMap,
492 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
493 long vocabularyId, java.lang.String[] categoryProperties,
494 com.liferay.portal.service.ServiceContext serviceContext)
495 throws com.liferay.portal.kernel.exception.PortalException;
496 }