001    /**
002     * Copyright (c) 2000-2010 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.impl;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portlet.asset.model.AssetCategoryProperty;
020    import com.liferay.portlet.asset.service.base.AssetCategoryPropertyServiceBaseImpl;
021    
022    import java.util.List;
023    
024    /**
025     * @author Brian Wing Shun Chan
026     * @author Jorge Ferrer
027     */
028    public class AssetCategoryPropertyServiceImpl
029            extends AssetCategoryPropertyServiceBaseImpl {
030    
031            public AssetCategoryProperty addCategoryProperty(
032                            long entryId, String key, String value)
033                    throws PortalException, SystemException {
034    
035                    return assetCategoryPropertyLocalService.addCategoryProperty(
036                            getUserId(), entryId, key, value);
037            }
038    
039            public void deleteCategoryProperty(long categoryPropertyId)
040                    throws PortalException, SystemException {
041    
042                    assetCategoryPropertyLocalService.deleteCategoryProperty(
043                            categoryPropertyId);
044            }
045    
046            public List<AssetCategoryProperty> getCategoryProperties(long entryId)
047                    throws SystemException {
048    
049                    return assetCategoryPropertyLocalService.getCategoryProperties(entryId);
050            }
051    
052            public List<AssetCategoryProperty> getCategoryPropertyValues(
053                            long companyId, String key)
054                    throws SystemException {
055    
056                    return assetCategoryPropertyLocalService.getCategoryPropertyValues(
057                            companyId, key);
058            }
059    
060            public AssetCategoryProperty updateCategoryProperty(
061                            long categoryPropertyId, String key, String value)
062                    throws PortalException, SystemException {
063    
064                    return assetCategoryPropertyLocalService.updateCategoryProperty(
065                            categoryPropertyId, key, value);
066            }
067    
068    }