1
14
15 package com.liferay.portlet.asset.service;
16
17
18
34 public class AssetCategoryServiceWrapper implements AssetCategoryService {
35 public AssetCategoryServiceWrapper(
36 AssetCategoryService assetCategoryService) {
37 _assetCategoryService = assetCategoryService;
38 }
39
40 public com.liferay.portlet.asset.model.AssetCategory addCategory(
41 long parentCategoryId,
42 java.util.Map<java.util.Locale, String> titleMap, long vocabularyId,
43 java.lang.String[] categoryProperties,
44 com.liferay.portal.service.ServiceContext serviceContext)
45 throws com.liferay.portal.kernel.exception.PortalException,
46 com.liferay.portal.kernel.exception.SystemException {
47 return _assetCategoryService.addCategory(parentCategoryId, titleMap,
48 vocabularyId, categoryProperties, serviceContext);
49 }
50
51 public void deleteCategory(long categoryId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 _assetCategoryService.deleteCategory(categoryId);
55 }
56
57 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
58 java.lang.String className, long classPK)
59 throws com.liferay.portal.kernel.exception.PortalException,
60 com.liferay.portal.kernel.exception.SystemException {
61 return _assetCategoryService.getCategories(className, classPK);
62 }
63
64 public com.liferay.portlet.asset.model.AssetCategory getCategory(
65 long categoryId)
66 throws com.liferay.portal.kernel.exception.PortalException,
67 com.liferay.portal.kernel.exception.SystemException {
68 return _assetCategoryService.getCategory(categoryId);
69 }
70
71 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
72 long parentCategoryId)
73 throws com.liferay.portal.kernel.exception.PortalException,
74 com.liferay.portal.kernel.exception.SystemException {
75 return _assetCategoryService.getChildCategories(parentCategoryId);
76 }
77
78 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
79 long vocabularyId)
80 throws com.liferay.portal.kernel.exception.PortalException,
81 com.liferay.portal.kernel.exception.SystemException {
82 return _assetCategoryService.getVocabularyCategories(vocabularyId);
83 }
84
85 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
86 long vocabularyId)
87 throws com.liferay.portal.kernel.exception.PortalException,
88 com.liferay.portal.kernel.exception.SystemException {
89 return _assetCategoryService.getVocabularyRootCategories(vocabularyId);
90 }
91
92 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
93 java.lang.String name, java.lang.String[] categoryProperties,
94 int start, int end)
95 throws com.liferay.portal.kernel.exception.SystemException {
96 return _assetCategoryService.search(groupId, name, categoryProperties,
97 start, end);
98 }
99
100 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
101 long categoryId, long parentCategoryId,
102 java.util.Map<java.util.Locale, String> titleMap, long vocabularyId,
103 java.lang.String[] categoryProperties,
104 com.liferay.portal.service.ServiceContext serviceContext)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException {
107 return _assetCategoryService.updateCategory(categoryId,
108 parentCategoryId, titleMap, vocabularyId, categoryProperties,
109 serviceContext);
110 }
111
112 public AssetCategoryService getWrappedAssetCategoryService() {
113 return _assetCategoryService;
114 }
115
116 private AssetCategoryService _assetCategoryService;
117 }