001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.BaseLocalService;
023 import com.liferay.portal.service.PersistedModelLocalService;
024
025
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface AssetCategoryLocalService extends BaseLocalService,
041 PersistedModelLocalService {
042
047
048
055 public com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
056 com.liferay.portlet.asset.model.AssetCategory assetCategory)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059
065 public com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
066 long categoryId);
067
068
076 public com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
077 long categoryId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081
088 public com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
089 com.liferay.portlet.asset.model.AssetCategory assetCategory)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
093
094
101 @SuppressWarnings("rawtypes")
102 public java.util.List dynamicQuery(
103 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106
119 @SuppressWarnings("rawtypes")
120 public java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException;
123
124
138 @SuppressWarnings("rawtypes")
139 public java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145
152 public long dynamicQueryCount(
153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.asset.model.AssetCategory fetchAssetCategory(
158 long categoryId)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
171 long categoryId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portal.model.PersistedModel getPersistedModel(
177 java.io.Serializable primaryKeyObj)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
192 java.lang.String uuid, long groupId)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException;
195
196
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
210 int start, int end)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public int getAssetCategoriesCount()
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223
230 public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
231 com.liferay.portlet.asset.model.AssetCategory assetCategory)
232 throws com.liferay.portal.kernel.exception.SystemException;
233
234
242 public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
243 com.liferay.portlet.asset.model.AssetCategory assetCategory,
244 boolean merge)
245 throws com.liferay.portal.kernel.exception.SystemException;
246
247
250 public void addAssetEntryAssetCategory(long entryId, long categoryId)
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253
256 public void addAssetEntryAssetCategory(long entryId,
257 com.liferay.portlet.asset.model.AssetCategory assetCategory)
258 throws com.liferay.portal.kernel.exception.SystemException;
259
260
263 public void addAssetEntryAssetCategories(long entryId, long[] categoryIds)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266
269 public void addAssetEntryAssetCategories(long entryId,
270 java.util.List<com.liferay.portlet.asset.model.AssetCategory> AssetCategories)
271 throws com.liferay.portal.kernel.exception.SystemException;
272
273
276 public void clearAssetEntryAssetCategories(long entryId)
277 throws com.liferay.portal.kernel.exception.SystemException;
278
279
282 public void deleteAssetEntryAssetCategory(long entryId, long categoryId)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285
288 public void deleteAssetEntryAssetCategory(long entryId,
289 com.liferay.portlet.asset.model.AssetCategory assetCategory)
290 throws com.liferay.portal.kernel.exception.SystemException;
291
292
295 public void deleteAssetEntryAssetCategories(long entryId, long[] categoryIds)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298
301 public void deleteAssetEntryAssetCategories(long entryId,
302 java.util.List<com.liferay.portlet.asset.model.AssetCategory> AssetCategories)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
310 long entryId)
311 throws com.liferay.portal.kernel.exception.SystemException;
312
313
316 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
318 long entryId, int start, int end)
319 throws com.liferay.portal.kernel.exception.SystemException;
320
321
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
326 long entryId, int start, int end,
327 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
328 throws com.liferay.portal.kernel.exception.SystemException;
329
330
333 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334 public int getAssetEntryAssetCategoriesCount(long entryId)
335 throws com.liferay.portal.kernel.exception.SystemException;
336
337
340 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341 public boolean hasAssetEntryAssetCategory(long entryId, long categoryId)
342 throws com.liferay.portal.kernel.exception.SystemException;
343
344
347 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348 public boolean hasAssetEntryAssetCategories(long entryId)
349 throws com.liferay.portal.kernel.exception.SystemException;
350
351
354 public void setAssetEntryAssetCategories(long entryId, long[] categoryIds)
355 throws com.liferay.portal.kernel.exception.SystemException;
356
357
362 public java.lang.String getBeanIdentifier();
363
364
369 public void setBeanIdentifier(java.lang.String beanIdentifier);
370
371 public com.liferay.portlet.asset.model.AssetCategory addCategory(
372 long userId, long parentCategoryId,
373 java.util.Map<java.util.Locale, java.lang.String> titleMap,
374 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
375 long vocabularyId, java.lang.String[] categoryProperties,
376 com.liferay.portal.service.ServiceContext serviceContext)
377 throws com.liferay.portal.kernel.exception.PortalException,
378 com.liferay.portal.kernel.exception.SystemException;
379
380 public void addCategoryResources(
381 com.liferay.portlet.asset.model.AssetCategory category,
382 boolean addGroupPermissions, boolean addGuestPermissions)
383 throws com.liferay.portal.kernel.exception.PortalException,
384 com.liferay.portal.kernel.exception.SystemException;
385
386 public void addCategoryResources(
387 com.liferay.portlet.asset.model.AssetCategory category,
388 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
389 throws com.liferay.portal.kernel.exception.PortalException,
390 com.liferay.portal.kernel.exception.SystemException;
391
392 public void deleteCategory(
393 com.liferay.portlet.asset.model.AssetCategory category)
394 throws com.liferay.portal.kernel.exception.PortalException,
395 com.liferay.portal.kernel.exception.SystemException;
396
397 public void deleteCategory(long categoryId)
398 throws com.liferay.portal.kernel.exception.PortalException,
399 com.liferay.portal.kernel.exception.SystemException;
400
401 public void deleteVocabularyCategories(long vocabularyId)
402 throws com.liferay.portal.kernel.exception.PortalException,
403 com.liferay.portal.kernel.exception.SystemException;
404
405 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406 public com.liferay.portlet.asset.model.AssetCategory fetchCategory(
407 long categoryId)
408 throws com.liferay.portal.kernel.exception.SystemException;
409
410 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
411 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
412 throws com.liferay.portal.kernel.exception.SystemException;
413
414 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
416 long classNameId, long classPK)
417 throws com.liferay.portal.kernel.exception.SystemException;
418
419 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
420 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
421 java.lang.String className, long classPK)
422 throws com.liferay.portal.kernel.exception.SystemException;
423
424 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425 public com.liferay.portlet.asset.model.AssetCategory getCategory(
426 long categoryId)
427 throws com.liferay.portal.kernel.exception.PortalException,
428 com.liferay.portal.kernel.exception.SystemException;
429
430 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431 public com.liferay.portlet.asset.model.AssetCategory getCategory(
432 java.lang.String uuid, long groupId)
433 throws com.liferay.portal.kernel.exception.PortalException,
434 com.liferay.portal.kernel.exception.SystemException;
435
436 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437 public long[] getCategoryIds(java.lang.String className, long classPK)
438 throws com.liferay.portal.kernel.exception.SystemException;
439
440 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
441 public java.lang.String[] getCategoryNames()
442 throws com.liferay.portal.kernel.exception.SystemException;
443
444 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
445 public java.lang.String[] getCategoryNames(long classNameId, long classPK)
446 throws com.liferay.portal.kernel.exception.SystemException;
447
448 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449 public java.lang.String[] getCategoryNames(java.lang.String className,
450 long classPK)
451 throws com.liferay.portal.kernel.exception.SystemException;
452
453 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
454 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
455 long parentCategoryId)
456 throws com.liferay.portal.kernel.exception.SystemException;
457
458 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
459 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
460 long parentCategoryId, int start, int end,
461 com.liferay.portal.kernel.util.OrderByComparator obc)
462 throws com.liferay.portal.kernel.exception.SystemException;
463
464 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
465 public int getChildCategoriesCount(long parentCategoryId)
466 throws com.liferay.portal.kernel.exception.SystemException;
467
468 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
470 long entryId)
471 throws com.liferay.portal.kernel.exception.SystemException;
472
473 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
475 long vocabularyId, int start, int end,
476 com.liferay.portal.kernel.util.OrderByComparator obc)
477 throws com.liferay.portal.kernel.exception.SystemException;
478
479 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
480 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
481 long parentCategoryId, long vocabularyId, int start, int end,
482 com.liferay.portal.kernel.util.OrderByComparator obc)
483 throws com.liferay.portal.kernel.exception.SystemException;
484
485 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
486 public int getVocabularyCategoriesCount(long vocabularyId)
487 throws com.liferay.portal.kernel.exception.SystemException;
488
489 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
490 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
491 long vocabularyId, int start, int end,
492 com.liferay.portal.kernel.util.OrderByComparator obc)
493 throws com.liferay.portal.kernel.exception.SystemException;
494
495 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
496 public int getVocabularyRootCategoriesCount(long vocabularyId)
497 throws com.liferay.portal.kernel.exception.SystemException;
498
499 public void mergeCategories(long fromCategoryId, long toCategoryId)
500 throws com.liferay.portal.kernel.exception.PortalException,
501 com.liferay.portal.kernel.exception.SystemException;
502
503 public com.liferay.portlet.asset.model.AssetCategory moveCategory(
504 long categoryId, long parentCategoryId, long vocabularyId,
505 com.liferay.portal.service.ServiceContext serviceContext)
506 throws com.liferay.portal.kernel.exception.PortalException,
507 com.liferay.portal.kernel.exception.SystemException;
508
509 public void rebuildTree(long groupId, boolean force)
510 throws com.liferay.portal.kernel.exception.SystemException;
511
512 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
513 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
514 long groupId, java.lang.String name,
515 java.lang.String[] categoryProperties, int start, int end)
516 throws com.liferay.portal.kernel.exception.SystemException;
517
518 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
519 long userId, long categoryId, long parentCategoryId,
520 java.util.Map<java.util.Locale, java.lang.String> titleMap,
521 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
522 long vocabularyId, java.lang.String[] categoryProperties,
523 com.liferay.portal.service.ServiceContext serviceContext)
524 throws com.liferay.portal.kernel.exception.PortalException,
525 com.liferay.portal.kernel.exception.SystemException;
526 }