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