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