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 com.liferay.portlet.asset.model.AssetCategory addCategory(
066                    java.lang.String title, long vocabularyId,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _assetCategoryService.addCategory(title, vocabularyId,
071                            serviceContext);
072            }
073    
074            public void deleteCategories(long[] categoryIds)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    _assetCategoryService.deleteCategories(categoryIds);
078            }
079    
080            public void deleteCategory(long categoryId)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException {
083                    _assetCategoryService.deleteCategory(categoryId);
084            }
085    
086            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
087                    java.lang.String className, long classPK)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return _assetCategoryService.getCategories(className, classPK);
091            }
092    
093            public com.liferay.portlet.asset.model.AssetCategory getCategory(
094                    long categoryId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return _assetCategoryService.getCategory(categoryId);
098            }
099    
100            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
101                    long parentCategoryId)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    return _assetCategoryService.getChildCategories(parentCategoryId);
105            }
106    
107            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
108                    long parentCategoryId, int start, int end,
109                    com.liferay.portal.kernel.util.OrderByComparator obc)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException {
112                    return _assetCategoryService.getChildCategories(parentCategoryId,
113                            start, end, obc);
114            }
115    
116            /**
117            * @deprecated {@link #search(long[], String, long[], int, int)}
118            */
119            public com.liferay.portal.kernel.json.JSONArray getJSONSearch(
120                    long groupId, java.lang.String name, long[] vocabularyIds, int start,
121                    int end)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException {
124                    return _assetCategoryService.getJSONSearch(groupId, name,
125                            vocabularyIds, start, end);
126            }
127    
128            public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
129                    long vocabularyId, int start, int end,
130                    com.liferay.portal.kernel.util.OrderByComparator obc)
131                    throws com.liferay.portal.kernel.exception.PortalException,
132                            com.liferay.portal.kernel.exception.SystemException {
133                    return _assetCategoryService.getJSONVocabularyCategories(vocabularyId,
134                            start, end, obc);
135            }
136    
137            public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
138                    long groupId, java.lang.String name, long vocabularyId, int start,
139                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException {
142                    return _assetCategoryService.getJSONVocabularyCategories(groupId, name,
143                            vocabularyId, start, end, obc);
144            }
145    
146            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
147                    long vocabularyId, int start, int end,
148                    com.liferay.portal.kernel.util.OrderByComparator obc)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException {
151                    return _assetCategoryService.getVocabularyCategories(vocabularyId,
152                            start, end, obc);
153            }
154    
155            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
156                    long parentCategoryId, long vocabularyId, int start, int end,
157                    com.liferay.portal.kernel.util.OrderByComparator obc)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return _assetCategoryService.getVocabularyCategories(parentCategoryId,
161                            vocabularyId, start, end, obc);
162            }
163    
164            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
165                    long groupId, java.lang.String name, long vocabularyId, int start,
166                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return _assetCategoryService.getVocabularyCategories(groupId, name,
169                            vocabularyId, start, end, obc);
170            }
171    
172            public int getVocabularyCategoriesCount(long groupId, long vocabularyId)
173                    throws com.liferay.portal.kernel.exception.SystemException {
174                    return _assetCategoryService.getVocabularyCategoriesCount(groupId,
175                            vocabularyId);
176            }
177    
178            public int getVocabularyCategoriesCount(long groupId,
179                    java.lang.String name, long vocabularyId)
180                    throws com.liferay.portal.kernel.exception.SystemException {
181                    return _assetCategoryService.getVocabularyCategoriesCount(groupId,
182                            name, vocabularyId);
183            }
184    
185            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
186                    long vocabularyId, int start, int end,
187                    com.liferay.portal.kernel.util.OrderByComparator obc)
188                    throws com.liferay.portal.kernel.exception.PortalException,
189                            com.liferay.portal.kernel.exception.SystemException {
190                    return _assetCategoryService.getVocabularyRootCategories(vocabularyId,
191                            start, end, obc);
192            }
193    
194            public com.liferay.portlet.asset.model.AssetCategory moveCategory(
195                    long categoryId, long parentCategoryId, long vocabularyId,
196                    com.liferay.portal.service.ServiceContext serviceContext)
197                    throws com.liferay.portal.kernel.exception.PortalException,
198                            com.liferay.portal.kernel.exception.SystemException {
199                    return _assetCategoryService.moveCategory(categoryId, parentCategoryId,
200                            vocabularyId, serviceContext);
201            }
202    
203            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
204                    long groupId, java.lang.String keywords, 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.search(groupId, keywords, vocabularyId,
208                            start, end, obc);
209            }
210    
211            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
212                    java.lang.String name, java.lang.String[] categoryProperties,
213                    int start, int end)
214                    throws com.liferay.portal.kernel.exception.PortalException,
215                            com.liferay.portal.kernel.exception.SystemException {
216                    return _assetCategoryService.search(groupId, name, categoryProperties,
217                            start, end);
218            }
219    
220            public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
221                    java.lang.String name, long[] vocabularyIds, int start, int end)
222                    throws com.liferay.portal.kernel.exception.PortalException,
223                            com.liferay.portal.kernel.exception.SystemException {
224                    return _assetCategoryService.search(groupIds, name, vocabularyIds,
225                            start, end);
226            }
227    
228            public com.liferay.portlet.asset.model.AssetCategory updateCategory(
229                    long categoryId, long parentCategoryId,
230                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
231                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
232                    long vocabularyId, java.lang.String[] categoryProperties,
233                    com.liferay.portal.service.ServiceContext serviceContext)
234                    throws com.liferay.portal.kernel.exception.PortalException,
235                            com.liferay.portal.kernel.exception.SystemException {
236                    return _assetCategoryService.updateCategory(categoryId,
237                            parentCategoryId, titleMap, descriptionMap, vocabularyId,
238                            categoryProperties, serviceContext);
239            }
240    
241            /**
242             * @deprecated Renamed to {@link #getWrappedService}
243             */
244            public AssetCategoryService getWrappedAssetCategoryService() {
245                    return _assetCategoryService;
246            }
247    
248            /**
249             * @deprecated Renamed to {@link #setWrappedService}
250             */
251            public void setWrappedAssetCategoryService(
252                    AssetCategoryService assetCategoryService) {
253                    _assetCategoryService = assetCategoryService;
254            }
255    
256            public AssetCategoryService getWrappedService() {
257                    return _assetCategoryService;
258            }
259    
260            public void setWrappedService(AssetCategoryService assetCategoryService) {
261                    _assetCategoryService = assetCategoryService;
262            }
263    
264            private AssetCategoryService _assetCategoryService;
265    }