001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * The utility for the asset category remote service. This utility wraps {@link com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
022     *
023     * <p>
024     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see AssetCategoryService
029     * @see com.liferay.portlet.asset.service.base.AssetCategoryServiceBaseImpl
030     * @see com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl
031     * @generated
032     */
033    public class AssetCategoryServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl} and rerun ServiceBuilder to regenerate this class.
038             */
039    
040            /**
041            * Returns the Spring bean ID for this bean.
042            *
043            * @return the Spring bean ID for this bean
044            */
045            public static java.lang.String getBeanIdentifier() {
046                    return getService().getBeanIdentifier();
047            }
048    
049            /**
050            * Sets the Spring bean ID for this bean.
051            *
052            * @param beanIdentifier the Spring bean ID for this bean
053            */
054            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055                    getService().setBeanIdentifier(beanIdentifier);
056            }
057    
058            public static com.liferay.portlet.asset.model.AssetCategory addCategory(
059                    long parentCategoryId,
060                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
061                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
062                    long vocabularyId, java.lang.String[] categoryProperties,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return getService()
067                                       .addCategory(parentCategoryId, titleMap, descriptionMap,
068                            vocabularyId, categoryProperties, serviceContext);
069            }
070    
071            public static com.liferay.portlet.asset.model.AssetCategory addCategory(
072                    java.lang.String title, long vocabularyId,
073                    com.liferay.portal.service.ServiceContext serviceContext)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService().addCategory(title, vocabularyId, serviceContext);
077            }
078    
079            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> deleteCategories(
080                    long[] categoryIds,
081                    com.liferay.portal.service.ServiceContext serviceContext)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    return getService().deleteCategories(categoryIds, serviceContext);
085            }
086    
087            public static void deleteCategory(long categoryId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    getService().deleteCategory(categoryId);
091            }
092    
093            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
094                    java.lang.String className, long classPK)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return getService().getCategories(className, classPK);
098            }
099    
100            public static com.liferay.portlet.asset.model.AssetCategory getCategory(
101                    long categoryId)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    return getService().getCategory(categoryId);
105            }
106    
107            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
108                    long parentCategoryId)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException {
111                    return getService().getChildCategories(parentCategoryId);
112            }
113    
114            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
115                    long parentCategoryId, int start, int end,
116                    com.liferay.portal.kernel.util.OrderByComparator obc)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException {
119                    return getService().getChildCategories(parentCategoryId, start, end, obc);
120            }
121    
122            /**
123            * @deprecated As of 6.2.0, replaced by {@link #search(long[], String,
124            long[], int, int)}
125            */
126            public static com.liferay.portal.kernel.json.JSONArray getJSONSearch(
127                    long groupId, java.lang.String name, long[] vocabularyIds, int start,
128                    int end)
129                    throws com.liferay.portal.kernel.exception.PortalException,
130                            com.liferay.portal.kernel.exception.SystemException {
131                    return getService()
132                                       .getJSONSearch(groupId, name, vocabularyIds, start, end);
133            }
134    
135            /**
136            * @deprecated As of 6.2.0, replaced by {@link
137            #getVocabularyCategoriesDisplay(long, int, int,
138            OrderByComparator)}
139            */
140            public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
141                    long vocabularyId, int start, int end,
142                    com.liferay.portal.kernel.util.OrderByComparator obc)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException {
145                    return getService()
146                                       .getJSONVocabularyCategories(vocabularyId, start, end, obc);
147            }
148    
149            /**
150            * @deprecated As of 6.2.0, replaced by {@link
151            #getVocabularyCategoriesDisplay(long, String, long, int, int,
152            OrderByComparator)}
153            */
154            public static com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
155                    long groupId, java.lang.String name, long vocabularyId, int start,
156                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException {
159                    return getService()
160                                       .getJSONVocabularyCategories(groupId, name, vocabularyId,
161                            start, end, obc);
162            }
163    
164            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
165                    long vocabularyId, int start, int end,
166                    com.liferay.portal.kernel.util.OrderByComparator obc)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    return getService()
170                                       .getVocabularyCategories(vocabularyId, start, end, obc);
171            }
172    
173            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
174                    long parentCategoryId, long vocabularyId, int start, int end,
175                    com.liferay.portal.kernel.util.OrderByComparator obc)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException {
178                    return getService()
179                                       .getVocabularyCategories(parentCategoryId, vocabularyId,
180                            start, end, obc);
181            }
182    
183            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
184                    long groupId, java.lang.String name, long vocabularyId, int start,
185                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    return getService()
188                                       .getVocabularyCategories(groupId, name, vocabularyId, start,
189                            end, obc);
190            }
191    
192            public static int getVocabularyCategoriesCount(long groupId,
193                    long vocabularyId)
194                    throws com.liferay.portal.kernel.exception.SystemException {
195                    return getService().getVocabularyCategoriesCount(groupId, vocabularyId);
196            }
197    
198            public static int getVocabularyCategoriesCount(long groupId,
199                    java.lang.String name, long vocabularyId)
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return getService()
202                                       .getVocabularyCategoriesCount(groupId, name, vocabularyId);
203            }
204    
205            public static com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
206                    long vocabularyId, int start, int end,
207                    com.liferay.portal.kernel.util.OrderByComparator obc)
208                    throws com.liferay.portal.kernel.exception.PortalException,
209                            com.liferay.portal.kernel.exception.SystemException {
210                    return getService()
211                                       .getVocabularyCategoriesDisplay(vocabularyId, start, end, obc);
212            }
213    
214            public static com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
215                    long groupId, java.lang.String name, long vocabularyId, int start,
216                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException {
219                    return getService()
220                                       .getVocabularyCategoriesDisplay(groupId, name, vocabularyId,
221                            start, end, obc);
222            }
223    
224            /**
225            * @deprecated As of 6.2.0, replaced by {@link #
226            getVocabularyRootCategories(long, long, int, int,
227            OrderByComparator)}
228            */
229            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
230                    long vocabularyId, int start, int end,
231                    com.liferay.portal.kernel.util.OrderByComparator obc)
232                    throws com.liferay.portal.kernel.exception.PortalException,
233                            com.liferay.portal.kernel.exception.SystemException {
234                    return getService()
235                                       .getVocabularyRootCategories(vocabularyId, start, end, obc);
236            }
237    
238            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
239                    long groupId, long vocabularyId, int start, int end,
240                    com.liferay.portal.kernel.util.OrderByComparator obc)
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    return getService()
243                                       .getVocabularyRootCategories(groupId, vocabularyId, start,
244                            end, obc);
245            }
246    
247            public static int getVocabularyRootCategoriesCount(long groupId,
248                    long vocabularyId)
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    return getService()
251                                       .getVocabularyRootCategoriesCount(groupId, vocabularyId);
252            }
253    
254            public static com.liferay.portlet.asset.model.AssetCategory moveCategory(
255                    long categoryId, long parentCategoryId, long vocabularyId,
256                    com.liferay.portal.service.ServiceContext serviceContext)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    return getService()
260                                       .moveCategory(categoryId, parentCategoryId, vocabularyId,
261                            serviceContext);
262            }
263    
264            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
265                    long groupId, java.lang.String keywords, long vocabularyId, int start,
266                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
267                    throws com.liferay.portal.kernel.exception.SystemException {
268                    return getService()
269                                       .search(groupId, keywords, vocabularyId, start, end, obc);
270            }
271    
272            public static com.liferay.portal.kernel.json.JSONArray search(
273                    long groupId, java.lang.String name,
274                    java.lang.String[] categoryProperties, int start, int end)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    return getService().search(groupId, name, categoryProperties, start, end);
278            }
279    
280            public static com.liferay.portal.kernel.json.JSONArray search(
281                    long[] groupIds, java.lang.String name, long[] vocabularyIds,
282                    int start, int end)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    return getService().search(groupIds, name, vocabularyIds, start, end);
286            }
287    
288            public static com.liferay.portlet.asset.model.AssetCategory updateCategory(
289                    long categoryId, long parentCategoryId,
290                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
291                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
292                    long vocabularyId, java.lang.String[] categoryProperties,
293                    com.liferay.portal.service.ServiceContext serviceContext)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    return getService()
297                                       .updateCategory(categoryId, parentCategoryId, titleMap,
298                            descriptionMap, vocabularyId, categoryProperties, serviceContext);
299            }
300    
301            public static AssetCategoryService getService() {
302                    if (_service == null) {
303                            _service = (AssetCategoryService)PortalBeanLocatorUtil.locate(AssetCategoryService.class.getName());
304    
305                            ReferenceRegistry.registerReference(AssetCategoryServiceUtil.class,
306                                    "_service");
307                    }
308    
309                    return _service;
310            }
311    
312            /**
313             * @deprecated As of 6.2.0
314             */
315            public void setService(AssetCategoryService service) {
316            }
317    
318            private static AssetCategoryService _service;
319    }