001
014
015 package com.liferay.portlet.asset.service;
016
017
026 public class AssetCategoryServiceWrapper implements AssetCategoryService {
027 public AssetCategoryServiceWrapper(
028 AssetCategoryService assetCategoryService) {
029 _assetCategoryService = assetCategoryService;
030 }
031
032 public com.liferay.portlet.asset.model.AssetCategory addCategory(
033 long parentCategoryId,
034 java.util.Map<java.util.Locale, java.lang.String> titleMap,
035 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
036 long vocabularyId, java.lang.String[] categoryProperties,
037 com.liferay.portal.service.ServiceContext serviceContext)
038 throws com.liferay.portal.kernel.exception.PortalException,
039 com.liferay.portal.kernel.exception.SystemException {
040 return _assetCategoryService.addCategory(parentCategoryId, titleMap,
041 descriptionMap, vocabularyId, categoryProperties, serviceContext);
042 }
043
044 public void deleteCategories(long[] categoryIds)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 _assetCategoryService.deleteCategories(categoryIds);
048 }
049
050 public void deleteCategory(long categoryId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException {
053 _assetCategoryService.deleteCategory(categoryId);
054 }
055
056 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
057 java.lang.String className, long classPK)
058 throws com.liferay.portal.kernel.exception.PortalException,
059 com.liferay.portal.kernel.exception.SystemException {
060 return _assetCategoryService.getCategories(className, classPK);
061 }
062
063 public com.liferay.portlet.asset.model.AssetCategory getCategory(
064 long categoryId)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException {
067 return _assetCategoryService.getCategory(categoryId);
068 }
069
070 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
071 long parentCategoryId)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException {
074 return _assetCategoryService.getChildCategories(parentCategoryId);
075 }
076
077 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
078 long parentCategoryId, int start, int end,
079 com.liferay.portal.kernel.util.OrderByComparator obc)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException {
082 return _assetCategoryService.getChildCategories(parentCategoryId,
083 start, end, obc);
084 }
085
086 public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
087 long groupId, java.lang.String name, long vocabularyId, int start,
088 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException {
091 return _assetCategoryService.getJSONVocabularyCategories(groupId, name,
092 vocabularyId, start, end, obc);
093 }
094
095 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
096 long vocabularyId, int start, int end,
097 com.liferay.portal.kernel.util.OrderByComparator obc)
098 throws com.liferay.portal.kernel.exception.PortalException,
099 com.liferay.portal.kernel.exception.SystemException {
100 return _assetCategoryService.getVocabularyCategories(vocabularyId,
101 start, end, obc);
102 }
103
104 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
105 long parentCategoryId, long vocabularyId, int start, int end,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException {
109 return _assetCategoryService.getVocabularyCategories(parentCategoryId,
110 vocabularyId, start, end, obc);
111 }
112
113 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
114 long groupId, java.lang.String name, long vocabularyId, int start,
115 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return _assetCategoryService.getVocabularyCategories(groupId, name,
118 vocabularyId, start, end, obc);
119 }
120
121 public int getVocabularyCategoriesCount(long groupId, long vocabularyId)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return _assetCategoryService.getVocabularyCategoriesCount(groupId,
124 vocabularyId);
125 }
126
127 public int getVocabularyCategoriesCount(long groupId,
128 java.lang.String name, long vocabularyId)
129 throws com.liferay.portal.kernel.exception.SystemException {
130 return _assetCategoryService.getVocabularyCategoriesCount(groupId,
131 name, vocabularyId);
132 }
133
134 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
135 long vocabularyId, int start, int end,
136 com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return _assetCategoryService.getVocabularyRootCategories(vocabularyId,
140 start, end, obc);
141 }
142
143 public com.liferay.portlet.asset.model.AssetCategory moveCategory(
144 long categoryId, long parentCategoryId, long vocabularyId,
145 com.liferay.portal.service.ServiceContext serviceContext)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException {
148 return _assetCategoryService.moveCategory(categoryId, parentCategoryId,
149 vocabularyId, serviceContext);
150 }
151
152 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
153 java.lang.String name, java.lang.String[] categoryProperties,
154 int start, int end)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException {
157 return _assetCategoryService.search(groupId, name, categoryProperties,
158 start, end);
159 }
160
161 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
162 long categoryId, long parentCategoryId,
163 java.util.Map<java.util.Locale, java.lang.String> titleMap,
164 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
165 long vocabularyId, java.lang.String[] categoryProperties,
166 com.liferay.portal.service.ServiceContext serviceContext)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException {
169 return _assetCategoryService.updateCategory(categoryId,
170 parentCategoryId, titleMap, descriptionMap, vocabularyId,
171 categoryProperties, serviceContext);
172 }
173
174 public AssetCategoryService getWrappedAssetCategoryService() {
175 return _assetCategoryService;
176 }
177
178 public void setWrappedAssetCategoryService(
179 AssetCategoryService assetCategoryService) {
180 _assetCategoryService = assetCategoryService;
181 }
182
183 private AssetCategoryService _assetCategoryService;
184 }