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.service.ServiceWrapper;
018    
019    /**
020     * Provides a wrapper for {@link AssetCategoryService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see AssetCategoryService
024     * @generated
025     */
026    public class AssetCategoryServiceWrapper implements AssetCategoryService,
027            ServiceWrapper<AssetCategoryService> {
028            public AssetCategoryServiceWrapper(
029                    AssetCategoryService assetCategoryService) {
030                    _assetCategoryService = assetCategoryService;
031            }
032    
033            /**
034            * Returns the Spring bean ID for this bean.
035            *
036            * @return the Spring bean ID for this bean
037            */
038            @Override
039            public java.lang.String getBeanIdentifier() {
040                    return _assetCategoryService.getBeanIdentifier();
041            }
042    
043            /**
044            * Sets the Spring bean ID for this bean.
045            *
046            * @param beanIdentifier the Spring bean ID for this bean
047            */
048            @Override
049            public void setBeanIdentifier(java.lang.String beanIdentifier) {
050                    _assetCategoryService.setBeanIdentifier(beanIdentifier);
051            }
052    
053            @Override
054            public com.liferay.portlet.asset.model.AssetCategory addCategory(
055                    long parentCategoryId,
056                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
057                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
058                    long vocabularyId, java.lang.String[] categoryProperties,
059                    com.liferay.portal.service.ServiceContext serviceContext)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException {
062                    return _assetCategoryService.addCategory(parentCategoryId, titleMap,
063                            descriptionMap, vocabularyId, categoryProperties, serviceContext);
064            }
065    
066            @Override
067            public com.liferay.portlet.asset.model.AssetCategory addCategory(
068                    java.lang.String title, long vocabularyId,
069                    com.liferay.portal.service.ServiceContext serviceContext)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _assetCategoryService.addCategory(title, vocabularyId,
073                            serviceContext);
074            }
075    
076            /**
077            * @deprecated As of 6.2.0, Replaced by {@link #deleteCategories(long[],
078            ServiceContext)}
079            */
080            @Override
081            public void deleteCategories(long[] categoryIds)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    _assetCategoryService.deleteCategories(categoryIds);
085            }
086    
087            @Override
088            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> deleteCategories(
089                    long[] categoryIds,
090                    com.liferay.portal.service.ServiceContext serviceContext)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException {
093                    return _assetCategoryService.deleteCategories(categoryIds,
094                            serviceContext);
095            }
096    
097            @Override
098            public void deleteCategory(long categoryId)
099                    throws com.liferay.portal.kernel.exception.PortalException,
100                            com.liferay.portal.kernel.exception.SystemException {
101                    _assetCategoryService.deleteCategory(categoryId);
102            }
103    
104            @Override
105            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
106                    java.lang.String className, long classPK)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException {
109                    return _assetCategoryService.getCategories(className, classPK);
110            }
111    
112            @Override
113            public com.liferay.portlet.asset.model.AssetCategory getCategory(
114                    long categoryId)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException {
117                    return _assetCategoryService.getCategory(categoryId);
118            }
119    
120            @Override
121            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
122                    long parentCategoryId)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException {
125                    return _assetCategoryService.getChildCategories(parentCategoryId);
126            }
127    
128            @Override
129            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
130                    long parentCategoryId, int start, int end,
131                    com.liferay.portal.kernel.util.OrderByComparator obc)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException {
134                    return _assetCategoryService.getChildCategories(parentCategoryId,
135                            start, end, obc);
136            }
137    
138            /**
139            * @deprecated As of 6.2.0, replaced by {@link #search(long[], String,
140            long[], int, int)}
141            */
142            @Override
143            public com.liferay.portal.kernel.json.JSONArray getJSONSearch(
144                    long groupId, java.lang.String name, long[] vocabularyIds, int start,
145                    int end)
146                    throws com.liferay.portal.kernel.exception.PortalException,
147                            com.liferay.portal.kernel.exception.SystemException {
148                    return _assetCategoryService.getJSONSearch(groupId, name,
149                            vocabularyIds, start, end);
150            }
151    
152            /**
153            * @deprecated As of 6.2.0, replaced by {@link
154            #getVocabularyCategoriesDisplay(long, int, int,
155            OrderByComparator)}
156            */
157            @Override
158            public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
159                    long vocabularyId, int start, int end,
160                    com.liferay.portal.kernel.util.OrderByComparator obc)
161                    throws com.liferay.portal.kernel.exception.PortalException,
162                            com.liferay.portal.kernel.exception.SystemException {
163                    return _assetCategoryService.getJSONVocabularyCategories(vocabularyId,
164                            start, end, obc);
165            }
166    
167            /**
168            * @deprecated As of 6.2.0, replaced by {@link
169            #getVocabularyCategoriesDisplay(long, String, long, int, int,
170            OrderByComparator)}
171            */
172            @Override
173            public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
174                    long groupId, java.lang.String name, long vocabularyId, int start,
175                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException {
178                    return _assetCategoryService.getJSONVocabularyCategories(groupId, name,
179                            vocabularyId, start, end, obc);
180            }
181    
182            @Override
183            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
184                    long vocabularyId, int start, int end,
185                    com.liferay.portal.kernel.util.OrderByComparator obc)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return _assetCategoryService.getVocabularyCategories(vocabularyId,
189                            start, end, obc);
190            }
191    
192            @Override
193            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
194                    long parentCategoryId, long vocabularyId, int start, int end,
195                    com.liferay.portal.kernel.util.OrderByComparator obc)
196                    throws com.liferay.portal.kernel.exception.PortalException,
197                            com.liferay.portal.kernel.exception.SystemException {
198                    return _assetCategoryService.getVocabularyCategories(parentCategoryId,
199                            vocabularyId, start, end, obc);
200            }
201    
202            @Override
203            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
204                    long groupId, java.lang.String name, long vocabularyId, int start,
205                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _assetCategoryService.getVocabularyCategories(groupId, name,
208                            vocabularyId, start, end, obc);
209            }
210    
211            @Override
212            public int getVocabularyCategoriesCount(long groupId, long vocabularyId)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return _assetCategoryService.getVocabularyCategoriesCount(groupId,
215                            vocabularyId);
216            }
217    
218            @Override
219            public int getVocabularyCategoriesCount(long groupId,
220                    java.lang.String name, long vocabularyId)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _assetCategoryService.getVocabularyCategoriesCount(groupId,
223                            name, vocabularyId);
224            }
225    
226            @Override
227            public com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
228                    long vocabularyId, int start, int end,
229                    com.liferay.portal.kernel.util.OrderByComparator obc)
230                    throws com.liferay.portal.kernel.exception.PortalException,
231                            com.liferay.portal.kernel.exception.SystemException {
232                    return _assetCategoryService.getVocabularyCategoriesDisplay(vocabularyId,
233                            start, end, obc);
234            }
235    
236            @Override
237            public com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
238                    long groupId, java.lang.String name, long vocabularyId, int start,
239                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
240                    throws com.liferay.portal.kernel.exception.PortalException,
241                            com.liferay.portal.kernel.exception.SystemException {
242                    return _assetCategoryService.getVocabularyCategoriesDisplay(groupId,
243                            name, vocabularyId, start, end, obc);
244            }
245    
246            /**
247            * @deprecated As of 6.2.0, replaced by {@link
248            #getVocabularyRootCategories(long, long, int, int,
249            OrderByComparator)}
250            */
251            @Override
252            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
253                    long vocabularyId, int start, int end,
254                    com.liferay.portal.kernel.util.OrderByComparator obc)
255                    throws com.liferay.portal.kernel.exception.PortalException,
256                            com.liferay.portal.kernel.exception.SystemException {
257                    return _assetCategoryService.getVocabularyRootCategories(vocabularyId,
258                            start, end, obc);
259            }
260    
261            @Override
262            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
263                    long groupId, long vocabularyId, int start, int end,
264                    com.liferay.portal.kernel.util.OrderByComparator obc)
265                    throws com.liferay.portal.kernel.exception.SystemException {
266                    return _assetCategoryService.getVocabularyRootCategories(groupId,
267                            vocabularyId, start, end, obc);
268            }
269    
270            @Override
271            public int getVocabularyRootCategoriesCount(long groupId, long vocabularyId)
272                    throws com.liferay.portal.kernel.exception.SystemException {
273                    return _assetCategoryService.getVocabularyRootCategoriesCount(groupId,
274                            vocabularyId);
275            }
276    
277            @Override
278            public com.liferay.portlet.asset.model.AssetCategory moveCategory(
279                    long categoryId, long parentCategoryId, long vocabularyId,
280                    com.liferay.portal.service.ServiceContext serviceContext)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    return _assetCategoryService.moveCategory(categoryId, parentCategoryId,
284                            vocabularyId, serviceContext);
285            }
286    
287            @Override
288            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
289                    long groupId, java.lang.String keywords, long vocabularyId, int start,
290                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
291                    throws com.liferay.portal.kernel.exception.SystemException {
292                    return _assetCategoryService.search(groupId, keywords, vocabularyId,
293                            start, end, obc);
294            }
295    
296            @Override
297            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
298                    java.lang.String name, java.lang.String[] categoryProperties,
299                    int start, int end)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    return _assetCategoryService.search(groupId, name, categoryProperties,
303                            start, end);
304            }
305    
306            @Override
307            public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
308                    java.lang.String name, long[] vocabularyIds, int start, int end)
309                    throws com.liferay.portal.kernel.exception.PortalException,
310                            com.liferay.portal.kernel.exception.SystemException {
311                    return _assetCategoryService.search(groupIds, name, vocabularyIds,
312                            start, end);
313            }
314    
315            @Override
316            public com.liferay.portlet.asset.model.AssetCategory updateCategory(
317                    long categoryId, long parentCategoryId,
318                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
319                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
320                    long vocabularyId, java.lang.String[] categoryProperties,
321                    com.liferay.portal.service.ServiceContext serviceContext)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    return _assetCategoryService.updateCategory(categoryId,
325                            parentCategoryId, titleMap, descriptionMap, vocabularyId,
326                            categoryProperties, serviceContext);
327            }
328    
329            /**
330             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
331             */
332            public AssetCategoryService getWrappedAssetCategoryService() {
333                    return _assetCategoryService;
334            }
335    
336            /**
337             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
338             */
339            public void setWrappedAssetCategoryService(
340                    AssetCategoryService assetCategoryService) {
341                    _assetCategoryService = assetCategoryService;
342            }
343    
344            @Override
345            public AssetCategoryService getWrappedService() {
346                    return _assetCategoryService;
347            }
348    
349            @Override
350            public void setWrappedService(AssetCategoryService assetCategoryService) {
351                    _assetCategoryService = assetCategoryService;
352            }
353    
354            private AssetCategoryService _assetCategoryService;
355    }