001    /**
002     * Copyright (c) 2000-2011 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;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link AssetTagPropertyService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       AssetTagPropertyService
026     * @generated
027     */
028    public class AssetTagPropertyServiceWrapper implements AssetTagPropertyService,
029            ServiceWrapper<AssetTagPropertyService> {
030            public AssetTagPropertyServiceWrapper(
031                    AssetTagPropertyService assetTagPropertyService) {
032                    _assetTagPropertyService = assetTagPropertyService;
033            }
034    
035            /**
036            * Adds an asset tag property.
037            *
038            * @param tagId the primary key of the tag
039            * @param key the key to be associated to the value
040            * @param value the value to which the key will refer
041            * @return the created asset tag property
042            * @throws PortalException if the user did not have permission to update
043            the asset tag, or if the key or value were invalid
044            * @throws SystemException if a system exception occurred
045            */
046            public com.liferay.portlet.asset.model.AssetTagProperty addTagProperty(
047                    long tagId, java.lang.String key, java.lang.String value)
048                    throws com.liferay.portal.kernel.exception.PortalException,
049                            com.liferay.portal.kernel.exception.SystemException {
050                    return _assetTagPropertyService.addTagProperty(tagId, key, value);
051            }
052    
053            /**
054            * Deletes the asset tag property with the specified ID.
055            *
056            * @param tagPropertyId the primary key of the asset tag property instance
057            * @throws PortalException if an asset tag property with the primary key
058            could not be found or if the user did not have permission to
059            update the asset tag property
060            * @throws SystemException if a system exception occurred
061            */
062            public void deleteTagProperty(long tagPropertyId)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    _assetTagPropertyService.deleteTagProperty(tagPropertyId);
066            }
067    
068            /**
069            * Returns all the asset tag property instances with the specified tag ID.
070            *
071            * @param tagId the primary key of the tag
072            * @return the matching asset tag properties
073            * @throws SystemException if a system exception occurred
074            */
075            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagProperties(
076                    long tagId) throws com.liferay.portal.kernel.exception.SystemException {
077                    return _assetTagPropertyService.getTagProperties(tagId);
078            }
079    
080            /**
081            * Returns asset tag properties with the specified group and key.
082            *
083            * @param companyId the primary key of the company
084            * @param key the key that refers to some value
085            * @return the matching asset tag properties
086            * @throws SystemException if a system exception occurred
087            */
088            public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagPropertyValues(
089                    long companyId, java.lang.String key)
090                    throws com.liferay.portal.kernel.exception.SystemException {
091                    return _assetTagPropertyService.getTagPropertyValues(companyId, key);
092            }
093    
094            /**
095            * Updates the asset tag property.
096            *
097            * @param tagPropertyId the primary key of the asset tag property
098            * @param key the new key to be associated to the value
099            * @param value the new value to which the key will refer
100            * @return the updated asset tag property
101            * @throws PortalException if an asset tag property with the primary key
102            could not be found, if the user did not have permission to
103            update the asset tag, or if the key or value were invalid
104            * @throws SystemException if a system exception occurred
105            */
106            public com.liferay.portlet.asset.model.AssetTagProperty updateTagProperty(
107                    long tagPropertyId, java.lang.String key, java.lang.String value)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException {
110                    return _assetTagPropertyService.updateTagProperty(tagPropertyId, key,
111                            value);
112            }
113    
114            /**
115             * @deprecated Renamed to {@link #getWrappedService}
116             */
117            public AssetTagPropertyService getWrappedAssetTagPropertyService() {
118                    return _assetTagPropertyService;
119            }
120    
121            /**
122             * @deprecated Renamed to {@link #setWrappedService}
123             */
124            public void setWrappedAssetTagPropertyService(
125                    AssetTagPropertyService assetTagPropertyService) {
126                    _assetTagPropertyService = assetTagPropertyService;
127            }
128    
129            public AssetTagPropertyService getWrappedService() {
130                    return _assetTagPropertyService;
131            }
132    
133            public void setWrappedService(
134                    AssetTagPropertyService assetTagPropertyService) {
135                    _assetTagPropertyService = assetTagPropertyService;
136            }
137    
138            private AssetTagPropertyService _assetTagPropertyService;
139    }