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