001    /**
002     * Copyright (c) 2000-2011 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.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    }