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.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    }