Liferay 6.1.2-ce-ga3

com.liferay.portlet.asset.service
Interface AssetTagPropertyService

All Superinterfaces:
BaseService
All Known Implementing Classes:
AssetTagPropertyServiceBaseImpl, AssetTagPropertyServiceImpl, AssetTagPropertyServiceWrapper

@JSONWebService
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface AssetTagPropertyService
extends BaseService

The interface for the asset tag property remote service.

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:
AssetTagPropertyServiceUtil, AssetTagPropertyServiceBaseImpl, AssetTagPropertyServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 AssetTagProperty addTagProperty(long tagId, String key, String value)
          Adds an asset tag property.
 void deleteTagProperty(long tagPropertyId)
          Deletes the asset tag property with the specified ID.
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 List<AssetTagProperty> getTagProperties(long tagId)
          Returns all the asset tag property instances with the specified tag ID.
 List<AssetTagProperty> getTagPropertyValues(long companyId, String key)
          Returns asset tag properties with the specified group and key.
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 AssetTagProperty updateTagProperty(long tagPropertyId, String key, String value)
          Updates the asset tag property.
 

Method Detail

getBeanIdentifier

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

Returns:
the Spring bean ID for this bean

setBeanIdentifier

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

Parameters:
beanIdentifier - the Spring bean ID for this bean

addTagProperty

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

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

Liferay 6.1.2-ce-ga3