001
014
015 package com.liferay.portlet.asset.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class AssetCategoryServiceUtil {
038
043
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static com.liferay.portlet.asset.model.AssetCategory addCategory(
063 long parentCategoryId,
064 java.util.Map<java.util.Locale, java.lang.String> titleMap,
065 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
066 long vocabularyId, java.lang.String[] categoryProperties,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 return getService()
071 .addCategory(parentCategoryId, titleMap, descriptionMap,
072 vocabularyId, categoryProperties, serviceContext);
073 }
074
075 public static com.liferay.portlet.asset.model.AssetCategory addCategory(
076 java.lang.String title, long vocabularyId,
077 com.liferay.portal.service.ServiceContext serviceContext)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().addCategory(title, vocabularyId, serviceContext);
081 }
082
083
087 public static void deleteCategories(long[] categoryIds)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 getService().deleteCategories(categoryIds);
091 }
092
093 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> deleteCategories(
094 long[] categoryIds,
095 com.liferay.portal.service.ServiceContext serviceContext)
096 throws com.liferay.portal.kernel.exception.PortalException,
097 com.liferay.portal.kernel.exception.SystemException {
098 return getService().deleteCategories(categoryIds, serviceContext);
099 }
100
101 public static void deleteCategory(long categoryId)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException {
104 getService().deleteCategory(categoryId);
105 }
106
107 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
108 java.lang.String className, long classPK)
109 throws com.liferay.portal.kernel.exception.PortalException,
110 com.liferay.portal.kernel.exception.SystemException {
111 return getService().getCategories(className, classPK);
112 }
113
114 public static com.liferay.portlet.asset.model.AssetCategory getCategory(
115 long categoryId)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException {
118 return getService().getCategory(categoryId);
119 }
120
121 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
122 long parentCategoryId)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException {
125 return getService().getChildCategories(parentCategoryId);
126 }
127
128 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
129 long parentCategoryId, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.kernel.exception.PortalException,
132 com.liferay.portal.kernel.exception.SystemException {
133 return getService().getChildCategories(parentCategoryId, start, end, obc);
134 }
135
136
140 public static com.liferay.portal.kernel.json.JSONArray getJSONSearch(
141 long groupId, java.lang.String name, long[] vocabularyIds, int start,
142 int end)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException {
145 return getService()
146 .getJSONSearch(groupId, name, vocabularyIds, start, end);
147 }
148
149
154 public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
155 long vocabularyId, int start, int end,
156 com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException {
159 return getService()
160 .getJSONVocabularyCategories(vocabularyId, start, end, obc);
161 }
162
163
168 public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
169 long groupId, java.lang.String title, long vocabularyId, int start,
170 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException {
173 return getService()
174 .getJSONVocabularyCategories(groupId, title, vocabularyId,
175 start, end, obc);
176 }
177
178 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
179 long vocabularyId, int start, int end,
180 com.liferay.portal.kernel.util.OrderByComparator obc)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException {
183 return getService()
184 .getVocabularyCategories(vocabularyId, start, end, obc);
185 }
186
187 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
188 long parentCategoryId, long vocabularyId, int start, int end,
189 com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService()
193 .getVocabularyCategories(parentCategoryId, vocabularyId,
194 start, end, obc);
195 }
196
197 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
198 long groupId, java.lang.String name, long vocabularyId, int start,
199 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getService()
202 .getVocabularyCategories(groupId, name, vocabularyId, start,
203 end, obc);
204 }
205
206 public static int getVocabularyCategoriesCount(long groupId,
207 long vocabularyId)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getService().getVocabularyCategoriesCount(groupId, vocabularyId);
210 }
211
212 public static int getVocabularyCategoriesCount(long groupId,
213 java.lang.String name, long vocabularyId)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getService()
216 .getVocabularyCategoriesCount(groupId, name, vocabularyId);
217 }
218
219 public static com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
220 long vocabularyId, int start, int end,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.kernel.exception.PortalException,
223 com.liferay.portal.kernel.exception.SystemException {
224 return getService()
225 .getVocabularyCategoriesDisplay(vocabularyId, start, end, obc);
226 }
227
228 public static com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
229 long groupId, java.lang.String name, long vocabularyId, int start,
230 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
231 throws com.liferay.portal.kernel.exception.PortalException,
232 com.liferay.portal.kernel.exception.SystemException {
233 return getService()
234 .getVocabularyCategoriesDisplay(groupId, name, vocabularyId,
235 start, end, obc);
236 }
237
238
243 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
244 long vocabularyId, int start, int end,
245 com.liferay.portal.kernel.util.OrderByComparator obc)
246 throws com.liferay.portal.kernel.exception.PortalException,
247 com.liferay.portal.kernel.exception.SystemException {
248 return getService()
249 .getVocabularyRootCategories(vocabularyId, start, end, obc);
250 }
251
252 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
253 long groupId, long vocabularyId, int start, int end,
254 com.liferay.portal.kernel.util.OrderByComparator obc)
255 throws com.liferay.portal.kernel.exception.SystemException {
256 return getService()
257 .getVocabularyRootCategories(groupId, vocabularyId, start,
258 end, obc);
259 }
260
261 public static int getVocabularyRootCategoriesCount(long groupId,
262 long vocabularyId)
263 throws com.liferay.portal.kernel.exception.SystemException {
264 return getService()
265 .getVocabularyRootCategoriesCount(groupId, vocabularyId);
266 }
267
268 public static com.liferay.portlet.asset.model.AssetCategory moveCategory(
269 long categoryId, long parentCategoryId, long vocabularyId,
270 com.liferay.portal.service.ServiceContext serviceContext)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException {
273 return getService()
274 .moveCategory(categoryId, parentCategoryId, vocabularyId,
275 serviceContext);
276 }
277
278 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
279 long groupId, java.lang.String keywords, long vocabularyId, int start,
280 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
281 throws com.liferay.portal.kernel.exception.SystemException {
282 return getService()
283 .search(groupId, keywords, vocabularyId, start, end, obc);
284 }
285
286 public static com.liferay.portal.kernel.json.JSONArray search(
287 long groupId, java.lang.String name,
288 java.lang.String[] categoryProperties, int start, int end)
289 throws com.liferay.portal.kernel.exception.PortalException,
290 com.liferay.portal.kernel.exception.SystemException {
291 return getService().search(groupId, name, categoryProperties, start, end);
292 }
293
294 public static com.liferay.portal.kernel.json.JSONArray search(
295 long[] groupIds, java.lang.String title, long[] vocabularyIds,
296 int start, int end)
297 throws com.liferay.portal.kernel.exception.PortalException,
298 com.liferay.portal.kernel.exception.SystemException {
299 return getService().search(groupIds, title, vocabularyIds, start, end);
300 }
301
302 public static com.liferay.portlet.asset.model.AssetCategory updateCategory(
303 long categoryId, long parentCategoryId,
304 java.util.Map<java.util.Locale, java.lang.String> titleMap,
305 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
306 long vocabularyId, java.lang.String[] categoryProperties,
307 com.liferay.portal.service.ServiceContext serviceContext)
308 throws com.liferay.portal.kernel.exception.PortalException,
309 com.liferay.portal.kernel.exception.SystemException {
310 return getService()
311 .updateCategory(categoryId, parentCategoryId, titleMap,
312 descriptionMap, vocabularyId, categoryProperties, serviceContext);
313 }
314
315 public static AssetCategoryService getService() {
316 if (_service == null) {
317 _service = (AssetCategoryService)PortalBeanLocatorUtil.locate(AssetCategoryService.class.getName());
318
319 ReferenceRegistry.registerReference(AssetCategoryServiceUtil.class,
320 "_service");
321 }
322
323 return _service;
324 }
325
326
329 public void setService(AssetCategoryService service) {
330 }
331
332 private static AssetCategoryService _service;
333 }