001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
023     * Provides the local service utility for AssetCategory. This utility wraps
024     * {@link com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see AssetCategoryLocalService
032     * @see com.liferay.portlet.asset.service.base.AssetCategoryLocalServiceBaseImpl
033     * @see com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class AssetCategoryLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Adds the asset category to the database. Also notifies the appropriate model listeners.
046            *
047            * @param assetCategory the asset category
048            * @return the asset category that was added
049            * @throws SystemException if a system exception occurred
050            */
051            public static com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
052                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    return getService().addAssetCategory(assetCategory);
055            }
056    
057            /**
058            * Creates a new asset category with the primary key. Does not add the asset category to the database.
059            *
060            * @param categoryId the primary key for the new asset category
061            * @return the new asset category
062            */
063            public static com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
064                    long categoryId) {
065                    return getService().createAssetCategory(categoryId);
066            }
067    
068            /**
069            * Deletes the asset category with the primary key from the database. Also notifies the appropriate model listeners.
070            *
071            * @param categoryId the primary key of the asset category
072            * @return the asset category that was removed
073            * @throws PortalException if a asset category with the primary key could not be found
074            * @throws SystemException if a system exception occurred
075            */
076            public static com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
077                    long categoryId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return getService().deleteAssetCategory(categoryId);
081            }
082    
083            /**
084            * Deletes the asset category from the database. Also notifies the appropriate model listeners.
085            *
086            * @param assetCategory the asset category
087            * @return the asset category that was removed
088            * @throws SystemException if a system exception occurred
089            */
090            public static com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
091                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return getService().deleteAssetCategory(assetCategory);
094            }
095    
096            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097                    return getService().dynamicQuery();
098            }
099    
100            /**
101            * Performs a dynamic query on the database and returns the matching rows.
102            *
103            * @param dynamicQuery the dynamic query
104            * @return the matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public static java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return getService().dynamicQuery(dynamicQuery);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns a range of the matching rows.
116            *
117            * <p>
118            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @return the range of matching rows
125            * @throws SystemException if a system exception occurred
126            */
127            @SuppressWarnings("rawtypes")
128            public static java.util.List dynamicQuery(
129                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130                    int end) throws com.liferay.portal.kernel.exception.SystemException {
131                    return getService().dynamicQuery(dynamicQuery, start, end);
132            }
133    
134            /**
135            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
136            *
137            * <p>
138            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
139            * </p>
140            *
141            * @param dynamicQuery the dynamic query
142            * @param start the lower bound of the range of model instances
143            * @param end the upper bound of the range of model instances (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching rows
146            * @throws SystemException if a system exception occurred
147            */
148            @SuppressWarnings("rawtypes")
149            public static java.util.List dynamicQuery(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151                    int end,
152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return getService()
155                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156            }
157    
158            /**
159            * Returns the number of rows that match the dynamic query.
160            *
161            * @param dynamicQuery the dynamic query
162            * @return the number of rows that match the dynamic query
163            * @throws SystemException if a system exception occurred
164            */
165            public static long dynamicQueryCount(
166                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return getService().dynamicQueryCount(dynamicQuery);
169            }
170    
171            /**
172            * Returns the number of rows that match the dynamic query.
173            *
174            * @param dynamicQuery the dynamic query
175            * @param projection the projection to apply to the query
176            * @return the number of rows that match the dynamic query
177            * @throws SystemException if a system exception occurred
178            */
179            public static long dynamicQueryCount(
180                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181                    com.liferay.portal.kernel.dao.orm.Projection projection)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return getService().dynamicQueryCount(dynamicQuery, projection);
184            }
185    
186            public static com.liferay.portlet.asset.model.AssetCategory fetchAssetCategory(
187                    long categoryId)
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return getService().fetchAssetCategory(categoryId);
190            }
191    
192            /**
193            * Returns the asset category with the matching UUID and company.
194            *
195            * @param uuid the asset category's UUID
196            * @param companyId the primary key of the company
197            * @return the matching asset category, or <code>null</code> if a matching asset category could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public static com.liferay.portlet.asset.model.AssetCategory fetchAssetCategoryByUuidAndCompanyId(
201                    java.lang.String uuid, long companyId)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return getService().fetchAssetCategoryByUuidAndCompanyId(uuid, companyId);
204            }
205    
206            /**
207            * Returns the asset category matching the UUID and group.
208            *
209            * @param uuid the asset category's UUID
210            * @param groupId the primary key of the group
211            * @return the matching asset category, or <code>null</code> if a matching asset category could not be found
212            * @throws SystemException if a system exception occurred
213            */
214            public static com.liferay.portlet.asset.model.AssetCategory fetchAssetCategoryByUuidAndGroupId(
215                    java.lang.String uuid, long groupId)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return getService().fetchAssetCategoryByUuidAndGroupId(uuid, groupId);
218            }
219    
220            /**
221            * Returns the asset category with the primary key.
222            *
223            * @param categoryId the primary key of the asset category
224            * @return the asset category
225            * @throws PortalException if a asset category with the primary key could not be found
226            * @throws SystemException if a system exception occurred
227            */
228            public static com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
229                    long categoryId)
230                    throws com.liferay.portal.kernel.exception.PortalException,
231                            com.liferay.portal.kernel.exception.SystemException {
232                    return getService().getAssetCategory(categoryId);
233            }
234    
235            public static com.liferay.portal.model.PersistedModel getPersistedModel(
236                    java.io.Serializable primaryKeyObj)
237                    throws com.liferay.portal.kernel.exception.PortalException,
238                            com.liferay.portal.kernel.exception.SystemException {
239                    return getService().getPersistedModel(primaryKeyObj);
240            }
241    
242            /**
243            * Returns the asset category with the matching UUID and company.
244            *
245            * @param uuid the asset category's UUID
246            * @param companyId the primary key of the company
247            * @return the matching asset category
248            * @throws PortalException if a matching asset category could not be found
249            * @throws SystemException if a system exception occurred
250            */
251            public static com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndCompanyId(
252                    java.lang.String uuid, long companyId)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException {
255                    return getService().getAssetCategoryByUuidAndCompanyId(uuid, companyId);
256            }
257    
258            /**
259            * Returns the asset category matching the UUID and group.
260            *
261            * @param uuid the asset category's UUID
262            * @param groupId the primary key of the group
263            * @return the matching asset category
264            * @throws PortalException if a matching asset category could not be found
265            * @throws SystemException if a system exception occurred
266            */
267            public static com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
268                    java.lang.String uuid, long groupId)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    return getService().getAssetCategoryByUuidAndGroupId(uuid, groupId);
272            }
273    
274            /**
275            * Returns a range of all the asset categories.
276            *
277            * <p>
278            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
279            * </p>
280            *
281            * @param start the lower bound of the range of asset categories
282            * @param end the upper bound of the range of asset categories (not inclusive)
283            * @return the range of asset categories
284            * @throws SystemException if a system exception occurred
285            */
286            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
287                    int start, int end)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    return getService().getAssetCategories(start, end);
290            }
291    
292            /**
293            * Returns the number of asset categories.
294            *
295            * @return the number of asset categories
296            * @throws SystemException if a system exception occurred
297            */
298            public static int getAssetCategoriesCount()
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return getService().getAssetCategoriesCount();
301            }
302    
303            /**
304            * Updates the asset category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
305            *
306            * @param assetCategory the asset category
307            * @return the asset category that was updated
308            * @throws SystemException if a system exception occurred
309            */
310            public static com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
311                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return getService().updateAssetCategory(assetCategory);
314            }
315    
316            /**
317            * @throws SystemException if a system exception occurred
318            */
319            public static void addAssetEntryAssetCategory(long entryId, long categoryId)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    getService().addAssetEntryAssetCategory(entryId, categoryId);
322            }
323    
324            /**
325            * @throws SystemException if a system exception occurred
326            */
327            public static void addAssetEntryAssetCategory(long entryId,
328                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    getService().addAssetEntryAssetCategory(entryId, assetCategory);
331            }
332    
333            /**
334            * @throws SystemException if a system exception occurred
335            */
336            public static void addAssetEntryAssetCategories(long entryId,
337                    long[] categoryIds)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    getService().addAssetEntryAssetCategories(entryId, categoryIds);
340            }
341    
342            /**
343            * @throws SystemException if a system exception occurred
344            */
345            public static void addAssetEntryAssetCategories(long entryId,
346                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> AssetCategories)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    getService().addAssetEntryAssetCategories(entryId, AssetCategories);
349            }
350    
351            /**
352            * @throws SystemException if a system exception occurred
353            */
354            public static void clearAssetEntryAssetCategories(long entryId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    getService().clearAssetEntryAssetCategories(entryId);
357            }
358    
359            /**
360            * @throws SystemException if a system exception occurred
361            */
362            public static void deleteAssetEntryAssetCategory(long entryId,
363                    long categoryId)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    getService().deleteAssetEntryAssetCategory(entryId, categoryId);
366            }
367    
368            /**
369            * @throws SystemException if a system exception occurred
370            */
371            public static void deleteAssetEntryAssetCategory(long entryId,
372                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    getService().deleteAssetEntryAssetCategory(entryId, assetCategory);
375            }
376    
377            /**
378            * @throws SystemException if a system exception occurred
379            */
380            public static void deleteAssetEntryAssetCategories(long entryId,
381                    long[] categoryIds)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    getService().deleteAssetEntryAssetCategories(entryId, categoryIds);
384            }
385    
386            /**
387            * @throws SystemException if a system exception occurred
388            */
389            public static void deleteAssetEntryAssetCategories(long entryId,
390                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> AssetCategories)
391                    throws com.liferay.portal.kernel.exception.SystemException {
392                    getService().deleteAssetEntryAssetCategories(entryId, AssetCategories);
393            }
394    
395            /**
396            * @throws SystemException if a system exception occurred
397            */
398            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
399                    long entryId)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return getService().getAssetEntryAssetCategories(entryId);
402            }
403    
404            /**
405            * @throws SystemException if a system exception occurred
406            */
407            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
408                    long entryId, int start, int end)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return getService().getAssetEntryAssetCategories(entryId, start, end);
411            }
412    
413            /**
414            * @throws SystemException if a system exception occurred
415            */
416            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
417                    long entryId, int start, int end,
418                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return getService()
421                                       .getAssetEntryAssetCategories(entryId, start, end,
422                            orderByComparator);
423            }
424    
425            /**
426            * @throws SystemException if a system exception occurred
427            */
428            public static int getAssetEntryAssetCategoriesCount(long entryId)
429                    throws com.liferay.portal.kernel.exception.SystemException {
430                    return getService().getAssetEntryAssetCategoriesCount(entryId);
431            }
432    
433            /**
434            * @throws SystemException if a system exception occurred
435            */
436            public static boolean hasAssetEntryAssetCategory(long entryId,
437                    long categoryId)
438                    throws com.liferay.portal.kernel.exception.SystemException {
439                    return getService().hasAssetEntryAssetCategory(entryId, categoryId);
440            }
441    
442            /**
443            * @throws SystemException if a system exception occurred
444            */
445            public static boolean hasAssetEntryAssetCategories(long entryId)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    return getService().hasAssetEntryAssetCategories(entryId);
448            }
449    
450            /**
451            * @throws SystemException if a system exception occurred
452            */
453            public static void setAssetEntryAssetCategories(long entryId,
454                    long[] categoryIds)
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    getService().setAssetEntryAssetCategories(entryId, categoryIds);
457            }
458    
459            /**
460            * Returns the Spring bean ID for this bean.
461            *
462            * @return the Spring bean ID for this bean
463            */
464            public static java.lang.String getBeanIdentifier() {
465                    return getService().getBeanIdentifier();
466            }
467    
468            /**
469            * Sets the Spring bean ID for this bean.
470            *
471            * @param beanIdentifier the Spring bean ID for this bean
472            */
473            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
474                    getService().setBeanIdentifier(beanIdentifier);
475            }
476    
477            public static com.liferay.portlet.asset.model.AssetCategory addCategory(
478                    long userId, long parentCategoryId,
479                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
480                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
481                    long vocabularyId, java.lang.String[] categoryProperties,
482                    com.liferay.portal.service.ServiceContext serviceContext)
483                    throws com.liferay.portal.kernel.exception.PortalException,
484                            com.liferay.portal.kernel.exception.SystemException {
485                    return getService()
486                                       .addCategory(userId, parentCategoryId, titleMap,
487                            descriptionMap, vocabularyId, categoryProperties, serviceContext);
488            }
489    
490            public static com.liferay.portlet.asset.model.AssetCategory addCategory(
491                    long userId, java.lang.String title, long vocabularyId,
492                    com.liferay.portal.service.ServiceContext serviceContext)
493                    throws com.liferay.portal.kernel.exception.PortalException,
494                            com.liferay.portal.kernel.exception.SystemException {
495                    return getService()
496                                       .addCategory(userId, title, vocabularyId, serviceContext);
497            }
498    
499            public static void addCategoryResources(
500                    com.liferay.portlet.asset.model.AssetCategory category,
501                    boolean addGroupPermissions, boolean addGuestPermissions)
502                    throws com.liferay.portal.kernel.exception.PortalException,
503                            com.liferay.portal.kernel.exception.SystemException {
504                    getService()
505                            .addCategoryResources(category, addGroupPermissions,
506                            addGuestPermissions);
507            }
508    
509            public static void addCategoryResources(
510                    com.liferay.portlet.asset.model.AssetCategory category,
511                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
512                    throws com.liferay.portal.kernel.exception.PortalException,
513                            com.liferay.portal.kernel.exception.SystemException {
514                    getService()
515                            .addCategoryResources(category, groupPermissions, guestPermissions);
516            }
517    
518            public static void deleteCategory(
519                    com.liferay.portlet.asset.model.AssetCategory category)
520                    throws com.liferay.portal.kernel.exception.PortalException,
521                            com.liferay.portal.kernel.exception.SystemException {
522                    getService().deleteCategory(category);
523            }
524    
525            public static void deleteCategory(long categoryId)
526                    throws com.liferay.portal.kernel.exception.PortalException,
527                            com.liferay.portal.kernel.exception.SystemException {
528                    getService().deleteCategory(categoryId);
529            }
530    
531            public static void deleteVocabularyCategories(long vocabularyId)
532                    throws com.liferay.portal.kernel.exception.PortalException,
533                            com.liferay.portal.kernel.exception.SystemException {
534                    getService().deleteVocabularyCategories(vocabularyId);
535            }
536    
537            public static com.liferay.portlet.asset.model.AssetCategory fetchCategory(
538                    long categoryId)
539                    throws com.liferay.portal.kernel.exception.SystemException {
540                    return getService().fetchCategory(categoryId);
541            }
542    
543            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
544                    throws com.liferay.portal.kernel.exception.SystemException {
545                    return getService().getCategories();
546            }
547    
548            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
549                    long classNameId, long classPK)
550                    throws com.liferay.portal.kernel.exception.SystemException {
551                    return getService().getCategories(classNameId, classPK);
552            }
553    
554            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
555                    java.lang.String className, long classPK)
556                    throws com.liferay.portal.kernel.exception.SystemException {
557                    return getService().getCategories(className, classPK);
558            }
559    
560            public static com.liferay.portlet.asset.model.AssetCategory getCategory(
561                    long categoryId)
562                    throws com.liferay.portal.kernel.exception.PortalException,
563                            com.liferay.portal.kernel.exception.SystemException {
564                    return getService().getCategory(categoryId);
565            }
566    
567            public static com.liferay.portlet.asset.model.AssetCategory getCategory(
568                    java.lang.String uuid, long groupId)
569                    throws com.liferay.portal.kernel.exception.PortalException,
570                            com.liferay.portal.kernel.exception.SystemException {
571                    return getService().getCategory(uuid, groupId);
572            }
573    
574            public static long[] getCategoryIds(java.lang.String className, long classPK)
575                    throws com.liferay.portal.kernel.exception.SystemException {
576                    return getService().getCategoryIds(className, classPK);
577            }
578    
579            public static java.lang.String[] getCategoryNames()
580                    throws com.liferay.portal.kernel.exception.SystemException {
581                    return getService().getCategoryNames();
582            }
583    
584            public static java.lang.String[] getCategoryNames(long classNameId,
585                    long classPK)
586                    throws com.liferay.portal.kernel.exception.SystemException {
587                    return getService().getCategoryNames(classNameId, classPK);
588            }
589    
590            public static java.lang.String[] getCategoryNames(
591                    java.lang.String className, long classPK)
592                    throws com.liferay.portal.kernel.exception.SystemException {
593                    return getService().getCategoryNames(className, classPK);
594            }
595    
596            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
597                    long parentCategoryId)
598                    throws com.liferay.portal.kernel.exception.SystemException {
599                    return getService().getChildCategories(parentCategoryId);
600            }
601    
602            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
603                    long parentCategoryId, int start, int end,
604                    com.liferay.portal.kernel.util.OrderByComparator obc)
605                    throws com.liferay.portal.kernel.exception.SystemException {
606                    return getService().getChildCategories(parentCategoryId, start, end, obc);
607            }
608    
609            public static int getChildCategoriesCount(long parentCategoryId)
610                    throws com.liferay.portal.kernel.exception.SystemException {
611                    return getService().getChildCategoriesCount(parentCategoryId);
612            }
613    
614            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
615                    long entryId)
616                    throws com.liferay.portal.kernel.exception.SystemException {
617                    return getService().getEntryCategories(entryId);
618            }
619    
620            public static java.util.List<java.lang.Long> getSubcategoryIds(
621                    long parentCategoryId)
622                    throws com.liferay.portal.kernel.exception.SystemException {
623                    return getService().getSubcategoryIds(parentCategoryId);
624            }
625    
626            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
627                    long vocabularyId, int start, int end,
628                    com.liferay.portal.kernel.util.OrderByComparator obc)
629                    throws com.liferay.portal.kernel.exception.SystemException {
630                    return getService()
631                                       .getVocabularyCategories(vocabularyId, start, end, obc);
632            }
633    
634            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
635                    long parentCategoryId, long vocabularyId, int start, int end,
636                    com.liferay.portal.kernel.util.OrderByComparator obc)
637                    throws com.liferay.portal.kernel.exception.SystemException {
638                    return getService()
639                                       .getVocabularyCategories(parentCategoryId, vocabularyId,
640                            start, end, obc);
641            }
642    
643            public static int getVocabularyCategoriesCount(long vocabularyId)
644                    throws com.liferay.portal.kernel.exception.SystemException {
645                    return getService().getVocabularyCategoriesCount(vocabularyId);
646            }
647    
648            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
649                    long vocabularyId, int start, int end,
650                    com.liferay.portal.kernel.util.OrderByComparator obc)
651                    throws com.liferay.portal.kernel.exception.SystemException {
652                    return getService()
653                                       .getVocabularyRootCategories(vocabularyId, start, end, obc);
654            }
655    
656            public static int getVocabularyRootCategoriesCount(long vocabularyId)
657                    throws com.liferay.portal.kernel.exception.SystemException {
658                    return getService().getVocabularyRootCategoriesCount(vocabularyId);
659            }
660    
661            public static void mergeCategories(long fromCategoryId, long toCategoryId)
662                    throws com.liferay.portal.kernel.exception.PortalException,
663                            com.liferay.portal.kernel.exception.SystemException {
664                    getService().mergeCategories(fromCategoryId, toCategoryId);
665            }
666    
667            public static com.liferay.portlet.asset.model.AssetCategory moveCategory(
668                    long categoryId, long parentCategoryId, long vocabularyId,
669                    com.liferay.portal.service.ServiceContext serviceContext)
670                    throws com.liferay.portal.kernel.exception.PortalException,
671                            com.liferay.portal.kernel.exception.SystemException {
672                    return getService()
673                                       .moveCategory(categoryId, parentCategoryId, vocabularyId,
674                            serviceContext);
675            }
676    
677            public static void rebuildTree(long groupId, boolean force)
678                    throws com.liferay.portal.kernel.exception.SystemException {
679                    getService().rebuildTree(groupId, force);
680            }
681    
682            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
683                    long groupId, java.lang.String name,
684                    java.lang.String[] categoryProperties, int start, int end)
685                    throws com.liferay.portal.kernel.exception.SystemException {
686                    return getService().search(groupId, name, categoryProperties, start, end);
687            }
688    
689            public static com.liferay.portlet.asset.model.AssetCategory updateCategory(
690                    long userId, long categoryId, long parentCategoryId,
691                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
692                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
693                    long vocabularyId, java.lang.String[] categoryProperties,
694                    com.liferay.portal.service.ServiceContext serviceContext)
695                    throws com.liferay.portal.kernel.exception.PortalException,
696                            com.liferay.portal.kernel.exception.SystemException {
697                    return getService()
698                                       .updateCategory(userId, categoryId, parentCategoryId,
699                            titleMap, descriptionMap, vocabularyId, categoryProperties,
700                            serviceContext);
701            }
702    
703            public static AssetCategoryLocalService getService() {
704                    if (_service == null) {
705                            _service = (AssetCategoryLocalService)PortalBeanLocatorUtil.locate(AssetCategoryLocalService.class.getName());
706    
707                            ReferenceRegistry.registerReference(AssetCategoryLocalServiceUtil.class,
708                                    "_service");
709                    }
710    
711                    return _service;
712            }
713    
714            /**
715             * @deprecated As of 6.2.0
716             */
717            public void setService(AssetCategoryLocalService service) {
718            }
719    
720            private static AssetCategoryLocalService _service;
721    }