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