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