001    /**
002     * Copyright (c) 2000-2010 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    
018    /**
019     * <p>
020     * This class is a wrapper for {@link AssetCategoryService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       AssetCategoryService
025     * @generated
026     */
027    public class AssetCategoryServiceWrapper implements AssetCategoryService {
028            public AssetCategoryServiceWrapper(
029                    AssetCategoryService assetCategoryService) {
030                    _assetCategoryService = assetCategoryService;
031            }
032    
033            public com.liferay.portlet.asset.model.AssetCategory addCategory(
034                    long parentCategoryId,
035                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
036                    long vocabularyId, java.lang.String[] categoryProperties,
037                    com.liferay.portal.service.ServiceContext serviceContext)
038                    throws com.liferay.portal.kernel.exception.PortalException,
039                            com.liferay.portal.kernel.exception.SystemException {
040                    return _assetCategoryService.addCategory(parentCategoryId, titleMap,
041                            vocabularyId, categoryProperties, serviceContext);
042            }
043    
044            public void deleteCategory(long categoryId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    _assetCategoryService.deleteCategory(categoryId);
048            }
049    
050            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
051                    java.lang.String className, long classPK)
052                    throws com.liferay.portal.kernel.exception.PortalException,
053                            com.liferay.portal.kernel.exception.SystemException {
054                    return _assetCategoryService.getCategories(className, classPK);
055            }
056    
057            public com.liferay.portlet.asset.model.AssetCategory getCategory(
058                    long categoryId)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException {
061                    return _assetCategoryService.getCategory(categoryId);
062            }
063    
064            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
065                    long parentCategoryId, int start, int end,
066                    com.liferay.portal.kernel.util.OrderByComparator obc)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return _assetCategoryService.getChildCategories(parentCategoryId,
070                            start, end, obc);
071            }
072    
073            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
074                    long vocabularyId, int start, int end,
075                    com.liferay.portal.kernel.util.OrderByComparator obc)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException {
078                    return _assetCategoryService.getVocabularyCategories(vocabularyId,
079                            start, end, obc);
080            }
081    
082            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
083                    long vocabularyId, int start, int end,
084                    com.liferay.portal.kernel.util.OrderByComparator obc)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException {
087                    return _assetCategoryService.getVocabularyRootCategories(vocabularyId,
088                            start, end, obc);
089            }
090    
091            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
092                    java.lang.String name, java.lang.String[] categoryProperties,
093                    int start, int end)
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return _assetCategoryService.search(groupId, name, categoryProperties,
096                            start, end);
097            }
098    
099            public com.liferay.portlet.asset.model.AssetCategory updateCategory(
100                    long categoryId, long parentCategoryId,
101                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
102                    long vocabularyId, java.lang.String[] categoryProperties,
103                    com.liferay.portal.service.ServiceContext serviceContext)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException {
106                    return _assetCategoryService.updateCategory(categoryId,
107                            parentCategoryId, titleMap, vocabularyId, categoryProperties,
108                            serviceContext);
109            }
110    
111            public AssetCategoryService getWrappedAssetCategoryService() {
112                    return _assetCategoryService;
113            }
114    
115            private AssetCategoryService _assetCategoryService;
116    }