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.AssetTagProperty;
020    import com.liferay.portlet.asset.service.base.AssetTagPropertyServiceBaseImpl;
021    
022    import java.util.List;
023    
024    /**
025     * @author Brian Wing Shun Chan
026     */
027    public class AssetTagPropertyServiceImpl
028            extends AssetTagPropertyServiceBaseImpl {
029    
030            public AssetTagProperty addTagProperty(long tagId, String key, String value)
031                    throws PortalException, SystemException {
032    
033                    return assetTagPropertyLocalService.addTagProperty(
034                            getUserId(), tagId, key, value);
035            }
036    
037            public void deleteTagProperty(long tagPropertyId)
038                    throws PortalException, SystemException {
039    
040                    assetTagPropertyLocalService.deleteTagProperty(tagPropertyId);
041            }
042    
043            public List<AssetTagProperty> getTagProperties(long tagId)
044                    throws SystemException {
045    
046                    return assetTagPropertyLocalService.getTagProperties(tagId);
047            }
048    
049            public List<AssetTagProperty> getTagPropertyValues(
050                            long companyId, String key)
051                    throws SystemException {
052    
053                    return assetTagPropertyLocalService.getTagPropertyValues(
054                            companyId, key);
055            }
056    
057            public AssetTagProperty updateTagProperty(
058                            long tagPropertyId, String key, String value)
059                    throws PortalException, SystemException {
060    
061                    return assetTagPropertyLocalService.updateTagProperty(
062                            tagPropertyId, key, value);
063            }
064    
065    }