Liferay 6.1.2-ce-ga3

com.liferay.portlet.asset.service
Class AssetTagPropertyServiceUtil

java.lang.Object
  extended by com.liferay.portlet.asset.service.AssetTagPropertyServiceUtil

public class AssetTagPropertyServiceUtil
extends Object

The utility for the asset tag property remote service. This utility wraps AssetTagPropertyServiceImpl and is the primary access point for service operations in application layer code running on a remote server.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
AssetTagPropertyService, AssetTagPropertyServiceBaseImpl, AssetTagPropertyServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
AssetTagPropertyServiceUtil()
           
 
Method Summary
static AssetTagProperty addTagProperty(long tagId, String key, String value)
          Adds an asset tag property.
static void deleteTagProperty(long tagPropertyId)
          Deletes the asset tag property with the specified ID.
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static AssetTagPropertyService getService()
           
static List<AssetTagProperty> getTagProperties(long tagId)
          Returns all the asset tag property instances with the specified tag ID.
static List<AssetTagProperty> getTagPropertyValues(long companyId, String key)
          Returns asset tag properties with the specified group and key.
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(AssetTagPropertyService service)
          Deprecated.  
static AssetTagProperty updateTagProperty(long tagPropertyId, String key, String value)
          Updates the asset tag property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetTagPropertyServiceUtil

public AssetTagPropertyServiceUtil()
Method Detail

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addTagProperty

public static AssetTagProperty addTagProperty(long tagId,
                                              String key,
                                              String value)
                                       throws PortalException,
                                              SystemException
Adds an asset tag property.

Parameters:
tagId - the primary key of the tag
key - the key to be associated to the value
value - the value to which the key will refer
Returns:
the created asset tag property
Throws:
PortalException - if the user did not have permission to update the asset tag, or if the key or value were invalid
SystemException - if a system exception occurred

deleteTagProperty

public static void deleteTagProperty(long tagPropertyId)
                              throws PortalException,
                                     SystemException
Deletes the asset tag property with the specified ID.

Parameters:
tagPropertyId - the primary key of the asset tag property instance
Throws:
PortalException - if an asset tag property with the primary key could not be found or if the user did not have permission to update the asset tag property
SystemException - if a system exception occurred

getTagProperties

public static List<AssetTagProperty> getTagProperties(long tagId)
                                               throws SystemException
Returns all the asset tag property instances with the specified tag ID.

Parameters:
tagId - the primary key of the tag
Returns:
the matching asset tag properties
Throws:
SystemException - if a system exception occurred

getTagPropertyValues

public static List<AssetTagProperty> getTagPropertyValues(long companyId,
                                                          String key)
                                                   throws SystemException
Returns asset tag properties with the specified group and key.

Parameters:
companyId - the primary key of the company
key - the key that refers to some value
Returns:
the matching asset tag properties
Throws:
SystemException - if a system exception occurred

updateTagProperty

public static AssetTagProperty updateTagProperty(long tagPropertyId,
                                                 String key,
                                                 String value)
                                          throws PortalException,
                                                 SystemException
Updates the asset tag property.

Parameters:
tagPropertyId - the primary key of the asset tag property
key - the new key to be associated to the value
value - the new value to which the key will refer
Returns:
the updated asset tag property
Throws:
PortalException - if an asset tag property with the primary key could not be found, if the user did not have permission to update the asset tag, or if the key or value were invalid
SystemException - if a system exception occurred

getService

public static AssetTagPropertyService getService()

setService

public void setService(AssetTagPropertyService service)
Deprecated. 


Liferay 6.1.2-ce-ga3