001 /** 002 * Copyright (c) 2000-present 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 * Adds an asset tag property. 038 * 039 * @param tagId the primary key of the tag 040 * @param key the key to be associated to the value 041 * @param value the value to which the key will refer 042 * @return the created asset tag property 043 * @throws PortalException if the user did not have permission to update the 044 asset tag, or if the key or value were invalid 045 */ 046 @Override 047 public com.liferay.portlet.asset.model.AssetTagProperty addTagProperty( 048 long tagId, java.lang.String key, java.lang.String value) 049 throws com.liferay.portal.kernel.exception.PortalException { 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 */ 061 @Override 062 public void deleteTagProperty(long tagPropertyId) 063 throws com.liferay.portal.kernel.exception.PortalException { 064 _assetTagPropertyService.deleteTagProperty(tagPropertyId); 065 } 066 067 /** 068 * Returns the Spring bean ID for this bean. 069 * 070 * @return the Spring bean ID for this bean 071 */ 072 @Override 073 public java.lang.String getBeanIdentifier() { 074 return _assetTagPropertyService.getBeanIdentifier(); 075 } 076 077 /** 078 * Returns all the asset tag property instances with the specified tag ID. 079 * 080 * @param tagId the primary key of the tag 081 * @return the matching asset tag properties 082 */ 083 @Override 084 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagProperties( 085 long tagId) { 086 return _assetTagPropertyService.getTagProperties(tagId); 087 } 088 089 /** 090 * Returns asset tag properties with the specified group and key. 091 * 092 * @param companyId the primary key of the company 093 * @param key the key that refers to some value 094 * @return the matching asset tag properties 095 */ 096 @Override 097 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagPropertyValues( 098 long companyId, java.lang.String key) { 099 return _assetTagPropertyService.getTagPropertyValues(companyId, key); 100 } 101 102 /** 103 * Sets the Spring bean ID for this bean. 104 * 105 * @param beanIdentifier the Spring bean ID for this bean 106 */ 107 @Override 108 public void setBeanIdentifier(java.lang.String beanIdentifier) { 109 _assetTagPropertyService.setBeanIdentifier(beanIdentifier); 110 } 111 112 /** 113 * Updates the asset tag property. 114 * 115 * @param tagPropertyId the primary key of the asset tag property 116 * @param key the new key to be associated to the value 117 * @param value the new value to which the key will refer 118 * @return the updated asset tag property 119 * @throws PortalException if an asset tag property with the primary key 120 could not be found, if the user did not have permission to update 121 the asset tag, or if the key or value were invalid 122 */ 123 @Override 124 public com.liferay.portlet.asset.model.AssetTagProperty updateTagProperty( 125 long tagPropertyId, java.lang.String key, java.lang.String value) 126 throws com.liferay.portal.kernel.exception.PortalException { 127 return _assetTagPropertyService.updateTagProperty(tagPropertyId, key, 128 value); 129 } 130 131 /** 132 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 133 */ 134 @Deprecated 135 public AssetTagPropertyService getWrappedAssetTagPropertyService() { 136 return _assetTagPropertyService; 137 } 138 139 /** 140 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 141 */ 142 @Deprecated 143 public void setWrappedAssetTagPropertyService( 144 AssetTagPropertyService assetTagPropertyService) { 145 _assetTagPropertyService = assetTagPropertyService; 146 } 147 148 @Override 149 public AssetTagPropertyService getWrappedService() { 150 return _assetTagPropertyService; 151 } 152 153 @Override 154 public void setWrappedService( 155 AssetTagPropertyService assetTagPropertyService) { 156 _assetTagPropertyService = assetTagPropertyService; 157 } 158 159 private AssetTagPropertyService _assetTagPropertyService; 160 }