001    /**
002     * Copyright (c) 2000-2012 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     * <p>
021     * This class is a wrapper for {@link AssetCategoryService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       AssetCategoryService
026     * @generated
027     */
028    public class AssetCategoryServiceWrapper implements AssetCategoryService,
029            ServiceWrapper<AssetCategoryService> {
030            public AssetCategoryServiceWrapper(
031                    AssetCategoryService assetCategoryService) {
032                    _assetCategoryService = assetCategoryService;
033            }
034    
035            /**
036            * Returns the Spring bean ID for this bean.
037            *
038            * @return the Spring bean ID for this bean
039            */
040            public java.lang.String getBeanIdentifier() {
041                    return _assetCategoryService.getBeanIdentifier();
042            }
043    
044            /**
045            * Sets the Spring bean ID for this bean.
046            *
047            * @param beanIdentifier the Spring bean ID for this bean
048            */
049            public void setBeanIdentifier(java.lang.String beanIdentifier) {
050                    _assetCategoryService.setBeanIdentifier(beanIdentifier);
051            }
052    
053            public com.liferay.portlet.asset.model.AssetCategory addCategory(
054                    long parentCategoryId,
055                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
056                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
057                    long vocabularyId, java.lang.String[] categoryProperties,
058                    com.liferay.portal.service.ServiceContext serviceContext)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException {
061                    return _assetCategoryService.addCategory(parentCategoryId, titleMap,
062                            descriptionMap, vocabularyId, categoryProperties, serviceContext);
063            }
064    
065            public void deleteCategories(long[] categoryIds)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    _assetCategoryService.deleteCategories(categoryIds);
069            }
070    
071            public void deleteCategory(long categoryId)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    _assetCategoryService.deleteCategory(categoryId);
075            }
076    
077            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
078                    java.lang.String className, long classPK)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    return _assetCategoryService.getCategories(className, classPK);
082            }
083    
084            public com.liferay.portlet.asset.model.AssetCategory getCategory(
085                    long categoryId)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException {
088                    return _assetCategoryService.getCategory(categoryId);
089            }
090    
091            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
092                    long parentCategoryId)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException {
095                    return _assetCategoryService.getChildCategories(parentCategoryId);
096            }
097    
098            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
099                    long parentCategoryId, int start, int end,
100                    com.liferay.portal.kernel.util.OrderByComparator obc)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    return _assetCategoryService.getChildCategories(parentCategoryId,
104                            start, end, obc);
105            }
106    
107            public com.liferay.portal.kernel.json.JSONArray getJSONSearch(
108                    long groupId, java.lang.String name, long[] vocabularyIds, int start,
109                    int end)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException {
112                    return _assetCategoryService.getJSONSearch(groupId, name,
113                            vocabularyIds, start, end);
114            }
115    
116            public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
117                    long vocabularyId, int start, int end,
118                    com.liferay.portal.kernel.util.OrderByComparator obc)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException {
121                    return _assetCategoryService.getJSONVocabularyCategories(vocabularyId,
122                            start, end, obc);
123            }
124    
125            public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
126                    long groupId, java.lang.String name, long vocabularyId, int start,
127                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException {
130                    return _assetCategoryService.getJSONVocabularyCategories(groupId, name,
131                            vocabularyId, start, end, obc);
132            }
133    
134            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
135                    long vocabularyId, int start, int end,
136                    com.liferay.portal.kernel.util.OrderByComparator obc)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException {
139                    return _assetCategoryService.getVocabularyCategories(vocabularyId,
140                            start, end, obc);
141            }
142    
143            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
144                    long parentCategoryId, long vocabularyId, int start, int end,
145                    com.liferay.portal.kernel.util.OrderByComparator obc)
146                    throws com.liferay.portal.kernel.exception.PortalException,
147                            com.liferay.portal.kernel.exception.SystemException {
148                    return _assetCategoryService.getVocabularyCategories(parentCategoryId,
149                            vocabularyId, start, end, obc);
150            }
151    
152            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
153                    long groupId, java.lang.String name, long vocabularyId, int start,
154                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return _assetCategoryService.getVocabularyCategories(groupId, name,
157                            vocabularyId, start, end, obc);
158            }
159    
160            public int getVocabularyCategoriesCount(long groupId, long vocabularyId)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return _assetCategoryService.getVocabularyCategoriesCount(groupId,
163                            vocabularyId);
164            }
165    
166            public int getVocabularyCategoriesCount(long groupId,
167                    java.lang.String name, long vocabularyId)
168                    throws com.liferay.portal.kernel.exception.SystemException {
169                    return _assetCategoryService.getVocabularyCategoriesCount(groupId,
170                            name, vocabularyId);
171            }
172    
173            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
174                    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 _assetCategoryService.getVocabularyRootCategories(vocabularyId,
179                            start, end, obc);
180            }
181    
182            public com.liferay.portlet.asset.model.AssetCategory moveCategory(
183                    long categoryId, long parentCategoryId, long vocabularyId,
184                    com.liferay.portal.service.ServiceContext serviceContext)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _assetCategoryService.moveCategory(categoryId, parentCategoryId,
188                            vocabularyId, serviceContext);
189            }
190    
191            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
192                    long groupId, java.lang.String keywords, long vocabularyId, int start,
193                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException {
196                    return _assetCategoryService.search(groupId, keywords, vocabularyId,
197                            start, end, obc);
198            }
199    
200            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
201                    java.lang.String name, java.lang.String[] categoryProperties,
202                    int start, int end)
203                    throws com.liferay.portal.kernel.exception.PortalException,
204                            com.liferay.portal.kernel.exception.SystemException {
205                    return _assetCategoryService.search(groupId, name, categoryProperties,
206                            start, end);
207            }
208    
209            public com.liferay.portlet.asset.model.AssetCategory updateCategory(
210                    long categoryId, long parentCategoryId,
211                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
212                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
213                    long vocabularyId, java.lang.String[] categoryProperties,
214                    com.liferay.portal.service.ServiceContext serviceContext)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException {
217                    return _assetCategoryService.updateCategory(categoryId,
218                            parentCategoryId, titleMap, descriptionMap, vocabularyId,
219                            categoryProperties, serviceContext);
220            }
221    
222            /**
223             * @deprecated Renamed to {@link #getWrappedService}
224             */
225            public AssetCategoryService getWrappedAssetCategoryService() {
226                    return _assetCategoryService;
227            }
228    
229            /**
230             * @deprecated Renamed to {@link #setWrappedService}
231             */
232            public void setWrappedAssetCategoryService(
233                    AssetCategoryService assetCategoryService) {
234                    _assetCategoryService = assetCategoryService;
235            }
236    
237            public AssetCategoryService getWrappedService() {
238                    return _assetCategoryService;
239            }
240    
241            public void setWrappedService(AssetCategoryService assetCategoryService) {
242                    _assetCategoryService = assetCategoryService;
243            }
244    
245            private AssetCategoryService _assetCategoryService;
246    }