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.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.util.ReferenceRegistry; 021 022 /** 023 * Provides the remote service utility for AssetTagProperty. This utility wraps 024 * {@link com.liferay.portlet.asset.service.impl.AssetTagPropertyServiceImpl} and is the 025 * primary access point for service operations in application layer code running 026 * on a remote server. Methods of this service are expected to have security 027 * checks based on the propagated JAAS credentials because this service can be 028 * accessed remotely. 029 * 030 * @author Brian Wing Shun Chan 031 * @see AssetTagPropertyService 032 * @see com.liferay.portlet.asset.service.base.AssetTagPropertyServiceBaseImpl 033 * @see com.liferay.portlet.asset.service.impl.AssetTagPropertyServiceImpl 034 * @generated 035 */ 036 @ProviderType 037 public class AssetTagPropertyServiceUtil { 038 /* 039 * NOTE FOR DEVELOPERS: 040 * 041 * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetTagPropertyServiceImpl} and rerun ServiceBuilder to regenerate this class. 042 */ 043 044 /** 045 * Adds an asset tag property. 046 * 047 * @param tagId the primary key of the tag 048 * @param key the key to be associated to the value 049 * @param value the value to which the key will refer 050 * @return the created asset tag property 051 * @throws PortalException if the user did not have permission to update the 052 asset tag, or if the key or value were invalid 053 */ 054 public static com.liferay.portlet.asset.model.AssetTagProperty addTagProperty( 055 long tagId, java.lang.String key, java.lang.String value) 056 throws com.liferay.portal.kernel.exception.PortalException { 057 return getService().addTagProperty(tagId, key, value); 058 } 059 060 /** 061 * Deletes the asset tag property with the specified ID. 062 * 063 * @param tagPropertyId the primary key of the asset tag property instance 064 * @throws PortalException if an asset tag property with the primary key 065 could not be found or if the user did not have permission to 066 update the asset tag property 067 */ 068 public static void deleteTagProperty(long tagPropertyId) 069 throws com.liferay.portal.kernel.exception.PortalException { 070 getService().deleteTagProperty(tagPropertyId); 071 } 072 073 /** 074 * Returns the Spring bean ID for this bean. 075 * 076 * @return the Spring bean ID for this bean 077 */ 078 public static java.lang.String getBeanIdentifier() { 079 return getService().getBeanIdentifier(); 080 } 081 082 /** 083 * Returns all the asset tag property instances with the specified tag ID. 084 * 085 * @param tagId the primary key of the tag 086 * @return the matching asset tag properties 087 */ 088 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagProperties( 089 long tagId) { 090 return getService().getTagProperties(tagId); 091 } 092 093 /** 094 * Returns asset tag properties with the specified group and key. 095 * 096 * @param companyId the primary key of the company 097 * @param key the key that refers to some value 098 * @return the matching asset tag properties 099 */ 100 public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> getTagPropertyValues( 101 long companyId, java.lang.String key) { 102 return getService().getTagPropertyValues(companyId, key); 103 } 104 105 /** 106 * Sets the Spring bean ID for this bean. 107 * 108 * @param beanIdentifier the Spring bean ID for this bean 109 */ 110 public static void setBeanIdentifier(java.lang.String beanIdentifier) { 111 getService().setBeanIdentifier(beanIdentifier); 112 } 113 114 /** 115 * Updates the asset tag property. 116 * 117 * @param tagPropertyId the primary key of the asset tag property 118 * @param key the new key to be associated to the value 119 * @param value the new value to which the key will refer 120 * @return the updated asset tag property 121 * @throws PortalException if an asset tag property with the primary key 122 could not be found, if the user did not have permission to update 123 the asset tag, or if the key or value were invalid 124 */ 125 public static com.liferay.portlet.asset.model.AssetTagProperty updateTagProperty( 126 long tagPropertyId, java.lang.String key, java.lang.String value) 127 throws com.liferay.portal.kernel.exception.PortalException { 128 return getService().updateTagProperty(tagPropertyId, key, value); 129 } 130 131 public static AssetTagPropertyService getService() { 132 if (_service == null) { 133 _service = (AssetTagPropertyService)PortalBeanLocatorUtil.locate(AssetTagPropertyService.class.getName()); 134 135 ReferenceRegistry.registerReference(AssetTagPropertyServiceUtil.class, 136 "_service"); 137 } 138 139 return _service; 140 } 141 142 /** 143 * @deprecated As of 6.2.0 144 */ 145 @Deprecated 146 public void setService(AssetTagPropertyService service) { 147 } 148 149 private static AssetTagPropertyService _service; 150 }