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            public com.liferay.portlet.asset.model.AssetCategory addCategory(
036                    long parentCategoryId,
037                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
038                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
039                    long vocabularyId, java.lang.String[] categoryProperties,
040                    com.liferay.portal.service.ServiceContext serviceContext)
041                    throws com.liferay.portal.kernel.exception.PortalException,
042                            com.liferay.portal.kernel.exception.SystemException {
043                    return _assetCategoryService.addCategory(parentCategoryId, titleMap,
044                            descriptionMap, vocabularyId, categoryProperties, serviceContext);
045            }
046    
047            public void deleteCategories(long[] categoryIds)
048                    throws com.liferay.portal.kernel.exception.PortalException,
049                            com.liferay.portal.kernel.exception.SystemException {
050                    _assetCategoryService.deleteCategories(categoryIds);
051            }
052    
053            public void deleteCategory(long categoryId)
054                    throws com.liferay.portal.kernel.exception.PortalException,
055                            com.liferay.portal.kernel.exception.SystemException {
056                    _assetCategoryService.deleteCategory(categoryId);
057            }
058    
059            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
060                    java.lang.String className, long classPK)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    return _assetCategoryService.getCategories(className, classPK);
064            }
065    
066            public com.liferay.portlet.asset.model.AssetCategory getCategory(
067                    long categoryId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _assetCategoryService.getCategory(categoryId);
071            }
072    
073            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
074                    long parentCategoryId)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return _assetCategoryService.getChildCategories(parentCategoryId);
078            }
079    
080            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
081                    long parentCategoryId, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator obc)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException {
085                    return _assetCategoryService.getChildCategories(parentCategoryId,
086                            start, end, obc);
087            }
088    
089            public com.liferay.portal.kernel.json.JSONArray getJSONSearch(
090                    long groupId, java.lang.String keywords, long vocabularyId, int start,
091                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
092                    throws com.liferay.portal.kernel.exception.PortalException,
093                            com.liferay.portal.kernel.exception.SystemException {
094                    return _assetCategoryService.getJSONSearch(groupId, keywords,
095                            vocabularyId, start, end, obc);
096            }
097    
098            public com.liferay.portal.kernel.json.JSONObject getJSONVocabularyCategories(
099                    long groupId, java.lang.String name, long vocabularyId, int start,
100                    int end, 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.getJSONVocabularyCategories(groupId, name,
104                            vocabularyId, start, end, obc);
105            }
106    
107            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
108                    long vocabularyId, 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.getVocabularyCategories(vocabularyId,
113                            start, end, obc);
114            }
115    
116            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
117                    long parentCategoryId, 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.getVocabularyCategories(parentCategoryId,
122                            vocabularyId, start, end, obc);
123            }
124    
125            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
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.SystemException {
129                    return _assetCategoryService.getVocabularyCategories(groupId, name,
130                            vocabularyId, start, end, obc);
131            }
132    
133            public int getVocabularyCategoriesCount(long groupId, long vocabularyId)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _assetCategoryService.getVocabularyCategoriesCount(groupId,
136                            vocabularyId);
137            }
138    
139            public int getVocabularyCategoriesCount(long groupId,
140                    java.lang.String name, long vocabularyId)
141                    throws com.liferay.portal.kernel.exception.SystemException {
142                    return _assetCategoryService.getVocabularyCategoriesCount(groupId,
143                            name, vocabularyId);
144            }
145    
146            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
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.getVocabularyRootCategories(vocabularyId,
152                            start, end, obc);
153            }
154    
155            public com.liferay.portlet.asset.model.AssetCategory moveCategory(
156                    long categoryId, long parentCategoryId, long vocabularyId,
157                    com.liferay.portal.service.ServiceContext serviceContext)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return _assetCategoryService.moveCategory(categoryId, parentCategoryId,
161                            vocabularyId, serviceContext);
162            }
163    
164            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
165                    long groupId, java.lang.String keywords, long vocabularyId, int start,
166                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    return _assetCategoryService.search(groupId, keywords, vocabularyId,
170                            start, end, obc);
171            }
172    
173            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
174                    java.lang.String name, java.lang.String[] categoryProperties,
175                    int start, int end)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException {
178                    return _assetCategoryService.search(groupId, name, categoryProperties,
179                            start, end);
180            }
181    
182            public com.liferay.portlet.asset.model.AssetCategory updateCategory(
183                    long categoryId, long parentCategoryId,
184                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
185                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
186                    long vocabularyId, java.lang.String[] categoryProperties,
187                    com.liferay.portal.service.ServiceContext serviceContext)
188                    throws com.liferay.portal.kernel.exception.PortalException,
189                            com.liferay.portal.kernel.exception.SystemException {
190                    return _assetCategoryService.updateCategory(categoryId,
191                            parentCategoryId, titleMap, descriptionMap, vocabularyId,
192                            categoryProperties, serviceContext);
193            }
194    
195            /**
196             * @deprecated Renamed to {@link #getWrappedService}
197             */
198            public AssetCategoryService getWrappedAssetCategoryService() {
199                    return _assetCategoryService;
200            }
201    
202            /**
203             * @deprecated Renamed to {@link #setWrappedService}
204             */
205            public void setWrappedAssetCategoryService(
206                    AssetCategoryService assetCategoryService) {
207                    _assetCategoryService = assetCategoryService;
208            }
209    
210            public AssetCategoryService getWrappedService() {
211                    return _assetCategoryService;
212            }
213    
214            public void setWrappedService(AssetCategoryService assetCategoryService) {
215                    _assetCategoryService = assetCategoryService;
216            }
217    
218            private AssetCategoryService _assetCategoryService;
219    }