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 public static com.liferay.portlet.asset.model.AssetCategory addCategory(
044 long groupId, long parentCategoryId,
045 java.util.Map<java.util.Locale, java.lang.String> titleMap,
046 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
047 long vocabularyId, java.lang.String[] categoryProperties,
048 com.liferay.portal.service.ServiceContext serviceContext)
049 throws com.liferay.portal.kernel.exception.PortalException {
050 return getService()
051 .addCategory(groupId, parentCategoryId, titleMap,
052 descriptionMap, vocabularyId, categoryProperties, serviceContext);
053 }
054
055 public static com.liferay.portlet.asset.model.AssetCategory addCategory(
056 long groupId, java.lang.String title, long vocabularyId,
057 com.liferay.portal.service.ServiceContext serviceContext)
058 throws com.liferay.portal.kernel.exception.PortalException {
059 return getService()
060 .addCategory(groupId, title, vocabularyId, serviceContext);
061 }
062
063 public static void deleteCategories(long[] categoryIds)
064 throws com.liferay.portal.kernel.exception.PortalException {
065 getService().deleteCategories(categoryIds);
066 }
067
068
071 @Deprecated
072 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> deleteCategories(
073 long[] categoryIds,
074 com.liferay.portal.service.ServiceContext serviceContext)
075 throws com.liferay.portal.kernel.exception.PortalException {
076 return getService().deleteCategories(categoryIds, serviceContext);
077 }
078
079 public static void deleteCategory(long categoryId)
080 throws com.liferay.portal.kernel.exception.PortalException {
081 getService().deleteCategory(categoryId);
082 }
083
084 public static com.liferay.portlet.asset.model.AssetCategory fetchCategory(
085 long categoryId)
086 throws com.liferay.portal.kernel.exception.PortalException {
087 return getService().fetchCategory(categoryId);
088 }
089
090
095 public static java.lang.String getBeanIdentifier() {
096 return getService().getBeanIdentifier();
097 }
098
099 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
100 java.lang.String className, long classPK)
101 throws com.liferay.portal.kernel.exception.PortalException {
102 return getService().getCategories(className, classPK);
103 }
104
105 public static com.liferay.portlet.asset.model.AssetCategory getCategory(
106 long categoryId)
107 throws com.liferay.portal.kernel.exception.PortalException {
108 return getService().getCategory(categoryId);
109 }
110
111 public static java.lang.String getCategoryPath(long categoryId)
112 throws com.liferay.portal.kernel.exception.PortalException {
113 return getService().getCategoryPath(categoryId);
114 }
115
116 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
117 long parentCategoryId)
118 throws com.liferay.portal.kernel.exception.PortalException {
119 return getService().getChildCategories(parentCategoryId);
120 }
121
122 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
123 long parentCategoryId, int start, int end,
124 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
125 throws com.liferay.portal.kernel.exception.PortalException {
126 return getService().getChildCategories(parentCategoryId, start, end, obc);
127 }
128
129
133 @Deprecated
134 public static com.liferay.portal.kernel.json.JSONArray getJSONSearch(
135 long groupId, java.lang.String name, long[] vocabularyIds, int start,
136 int end) throws com.liferay.portal.kernel.exception.PortalException {
137 return getService()
138 .getJSONSearch(groupId, name, vocabularyIds, start, end);
139 }
140
141
146 @Deprecated
147 public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
148 long groupId, java.lang.String name, long vocabularyId, int start,
149 int end,
150 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
151 throws com.liferay.portal.kernel.exception.PortalException {
152 return getService()
153 .getJSONVocabularyCategories(groupId, name, vocabularyId,
154 start, end, obc);
155 }
156
157
162 @Deprecated
163 public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
164 long vocabularyId, int start, int end,
165 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
166 throws com.liferay.portal.kernel.exception.PortalException {
167 return getService()
168 .getJSONVocabularyCategories(vocabularyId, start, end, obc);
169 }
170
171 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
172 long groupId, java.lang.String name, long vocabularyId, int start,
173 int end,
174 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
175 return getService()
176 .getVocabularyCategories(groupId, name, vocabularyId, start,
177 end, obc);
178 }
179
180 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
181 long groupId, long parentCategoryId, long vocabularyId, int start,
182 int end,
183 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
184 return getService()
185 .getVocabularyCategories(groupId, parentCategoryId,
186 vocabularyId, start, end, obc);
187 }
188
189 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
190 long parentCategoryId, long vocabularyId, int start, int end,
191 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
192 throws com.liferay.portal.kernel.exception.PortalException {
193 return getService()
194 .getVocabularyCategories(parentCategoryId, vocabularyId,
195 start, end, obc);
196 }
197
198 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
199 long vocabularyId, int start, int end,
200 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
201 throws com.liferay.portal.kernel.exception.PortalException {
202 return getService()
203 .getVocabularyCategories(vocabularyId, start, end, obc);
204 }
205
206 public static int getVocabularyCategoriesCount(long groupId,
207 java.lang.String name, long vocabularyId) {
208 return getService()
209 .getVocabularyCategoriesCount(groupId, name, vocabularyId);
210 }
211
212 public static int getVocabularyCategoriesCount(long groupId,
213 long parentCategory, long vocabularyId) {
214 return getService()
215 .getVocabularyCategoriesCount(groupId, parentCategory,
216 vocabularyId);
217 }
218
219 public static int getVocabularyCategoriesCount(long groupId,
220 long vocabularyId) {
221 return getService().getVocabularyCategoriesCount(groupId, vocabularyId);
222 }
223
224 public static com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
225 long groupId, java.lang.String name, long vocabularyId, int start,
226 int end,
227 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
228 throws com.liferay.portal.kernel.exception.PortalException {
229 return getService()
230 .getVocabularyCategoriesDisplay(groupId, name, vocabularyId,
231 start, end, obc);
232 }
233
234 public static com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
235 long vocabularyId, int start, int end,
236 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
237 throws com.liferay.portal.kernel.exception.PortalException {
238 return getService()
239 .getVocabularyCategoriesDisplay(vocabularyId, start, end, obc);
240 }
241
242 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
243 long groupId, long vocabularyId, int start, int end,
244 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
245 return getService()
246 .getVocabularyRootCategories(groupId, vocabularyId, start,
247 end, obc);
248 }
249
250
255 @Deprecated
256 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
257 long vocabularyId, int start, int end,
258 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
259 throws com.liferay.portal.kernel.exception.PortalException {
260 return getService()
261 .getVocabularyRootCategories(vocabularyId, start, end, obc);
262 }
263
264 public static int getVocabularyRootCategoriesCount(long groupId,
265 long vocabularyId) {
266 return getService()
267 .getVocabularyRootCategoriesCount(groupId, vocabularyId);
268 }
269
270 public static com.liferay.portlet.asset.model.AssetCategory moveCategory(
271 long categoryId, long parentCategoryId, long vocabularyId,
272 com.liferay.portal.service.ServiceContext serviceContext)
273 throws com.liferay.portal.kernel.exception.PortalException {
274 return getService()
275 .moveCategory(categoryId, parentCategoryId, vocabularyId,
276 serviceContext);
277 }
278
279 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
280 long groupId, java.lang.String keywords, long vocabularyId, int start,
281 int end,
282 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
283 return getService()
284 .search(groupId, keywords, vocabularyId, start, end, obc);
285 }
286
287 public static com.liferay.portal.kernel.json.JSONArray search(
288 long groupId, java.lang.String name,
289 java.lang.String[] categoryProperties, int start, int end)
290 throws com.liferay.portal.kernel.exception.PortalException {
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 name, long[] vocabularyIds,
296 int start, int end)
297 throws com.liferay.portal.kernel.exception.PortalException {
298 return getService().search(groupIds, name, vocabularyIds, start, end);
299 }
300
301 public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
302 long groupId, java.lang.String title, long parentCategoryId,
303 long vocabularyId, int start, int end)
304 throws com.liferay.portal.kernel.exception.PortalException {
305 return getService()
306 .searchCategoriesDisplay(groupId, title, parentCategoryId,
307 vocabularyId, start, end);
308 }
309
310 public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
311 long groupId, java.lang.String title, long vocabularyId, int start,
312 int end) throws com.liferay.portal.kernel.exception.PortalException {
313 return getService()
314 .searchCategoriesDisplay(groupId, title, vocabularyId,
315 start, end);
316 }
317
318 public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
319 long[] groupIds, java.lang.String title, long[] parentCategoryIds,
320 long[] vocabularyIds, int start, int end)
321 throws com.liferay.portal.kernel.exception.PortalException {
322 return getService()
323 .searchCategoriesDisplay(groupIds, title, parentCategoryIds,
324 vocabularyIds, start, end);
325 }
326
327 public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
328 long[] groupIds, java.lang.String title, long[] vocabularyIds,
329 int start, int end)
330 throws com.liferay.portal.kernel.exception.PortalException {
331 return getService()
332 .searchCategoriesDisplay(groupIds, title, vocabularyIds,
333 start, end);
334 }
335
336
341 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
342 getService().setBeanIdentifier(beanIdentifier);
343 }
344
345 public static com.liferay.portlet.asset.model.AssetCategory updateCategory(
346 long categoryId, long parentCategoryId,
347 java.util.Map<java.util.Locale, java.lang.String> titleMap,
348 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
349 long vocabularyId, java.lang.String[] categoryProperties,
350 com.liferay.portal.service.ServiceContext serviceContext)
351 throws com.liferay.portal.kernel.exception.PortalException {
352 return getService()
353 .updateCategory(categoryId, parentCategoryId, titleMap,
354 descriptionMap, vocabularyId, categoryProperties, serviceContext);
355 }
356
357 public static AssetCategoryService getService() {
358 if (_service == null) {
359 _service = (AssetCategoryService)PortalBeanLocatorUtil.locate(AssetCategoryService.class.getName());
360
361 ReferenceRegistry.registerReference(AssetCategoryServiceUtil.class,
362 "_service");
363 }
364
365 return _service;
366 }
367
368
371 @Deprecated
372 public void setService(AssetCategoryService service) {
373 }
374
375 private static AssetCategoryService _service;
376 }