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