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