001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.JSONObject getJSONVocabularyCategories(
090                    long groupId, java.lang.String name, 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.getJSONVocabularyCategories(groupId, name,
095                            vocabularyId, start, end, obc);
096            }
097    
098            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
099                    long vocabularyId, 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.getVocabularyCategories(vocabularyId,
104                            start, end, obc);
105            }
106    
107            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
108                    long parentCategoryId, 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(parentCategoryId,
113                            vocabularyId, start, end, obc);
114            }
115    
116            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
117                    long groupId, java.lang.String name, long vocabularyId, int start,
118                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
119                    throws com.liferay.portal.kernel.exception.SystemException {
120                    return _assetCategoryService.getVocabularyCategories(groupId, name,
121                            vocabularyId, start, end, obc);
122            }
123    
124            public int getVocabularyCategoriesCount(long groupId, long vocabularyId)
125                    throws com.liferay.portal.kernel.exception.SystemException {
126                    return _assetCategoryService.getVocabularyCategoriesCount(groupId,
127                            vocabularyId);
128            }
129    
130            public int getVocabularyCategoriesCount(long groupId,
131                    java.lang.String name, long vocabularyId)
132                    throws com.liferay.portal.kernel.exception.SystemException {
133                    return _assetCategoryService.getVocabularyCategoriesCount(groupId,
134                            name, vocabularyId);
135            }
136    
137            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
138                    long vocabularyId, int start, int end,
139                    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.getVocabularyRootCategories(vocabularyId,
143                            start, end, obc);
144            }
145    
146            public com.liferay.portlet.asset.model.AssetCategory moveCategory(
147                    long categoryId, long parentCategoryId, long vocabularyId,
148                    com.liferay.portal.service.ServiceContext serviceContext)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException {
151                    return _assetCategoryService.moveCategory(categoryId, parentCategoryId,
152                            vocabularyId, serviceContext);
153            }
154    
155            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
156                    java.lang.String name, java.lang.String[] categoryProperties,
157                    int start, int end)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return _assetCategoryService.search(groupId, name, categoryProperties,
161                            start, end);
162            }
163    
164            public com.liferay.portlet.asset.model.AssetCategory updateCategory(
165                    long categoryId, long parentCategoryId,
166                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
167                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
168                    long vocabularyId, java.lang.String[] categoryProperties,
169                    com.liferay.portal.service.ServiceContext serviceContext)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _assetCategoryService.updateCategory(categoryId,
173                            parentCategoryId, titleMap, descriptionMap, vocabularyId,
174                            categoryProperties, serviceContext);
175            }
176    
177            /**
178             * @deprecated Renamed to {@link #getWrappedService}
179             */
180            public AssetCategoryService getWrappedAssetCategoryService() {
181                    return _assetCategoryService;
182            }
183    
184            /**
185             * @deprecated Renamed to {@link #setWrappedService}
186             */
187            public void setWrappedAssetCategoryService(
188                    AssetCategoryService assetCategoryService) {
189                    _assetCategoryService = assetCategoryService;
190            }
191    
192            public AssetCategoryService getWrappedService() {
193                    return _assetCategoryService;
194            }
195    
196            public void setWrappedService(AssetCategoryService assetCategoryService) {
197                    _assetCategoryService = assetCategoryService;
198            }
199    
200            private AssetCategoryService _assetCategoryService;
201    }