Liferay 6.2-ce-ga5

com.liferay.portlet.asset.service.impl
Class AssetTagPropertyServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseServiceImpl
      extended by com.liferay.portlet.asset.service.base.AssetTagPropertyServiceBaseImpl
          extended by com.liferay.portlet.asset.service.impl.AssetTagPropertyServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseService, AssetTagPropertyService

public class AssetTagPropertyServiceImpl
extends AssetTagPropertyServiceBaseImpl

Provides the remote service for accessing, adding, deleting, and updating asset tag properties. Its methods include permission checks.


Field Summary
 
Fields inherited from class com.liferay.portlet.asset.service.base.AssetTagPropertyServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryPropertyFinder, assetCategoryPropertyLocalService, assetCategoryPropertyPersistence, assetCategoryPropertyService, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagPropertyFinder, assetTagPropertyKeyFinder, assetTagPropertyLocalService, assetTagPropertyPersistence, assetTagPropertyService, assetTagService, assetTagStatsLocalService, assetTagStatsPersistence, assetVocabularyFinder, assetVocabularyLocalService, assetVocabularyPersistence, assetVocabularyService, counterLocalService, resourceLocalService, userFinder, userLocalService, userPersistence, userService
 
Fields inherited from class com.liferay.portal.service.BaseServiceImpl
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
AssetTagPropertyServiceImpl()
           
 
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.
 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.
 AssetTagProperty updateTagProperty(long tagPropertyId, String key, String value)
          Updates the asset tag property.
 
Methods inherited from class com.liferay.portlet.asset.service.base.AssetTagPropertyServiceBaseImpl
afterPropertiesSet, destroy, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryPropertyFinder, getAssetCategoryPropertyLocalService, getAssetCategoryPropertyPersistence, getAssetCategoryPropertyService, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagPropertyFinder, getAssetTagPropertyKeyFinder, getAssetTagPropertyLocalService, getAssetTagPropertyPersistence, getAssetTagPropertyService, getAssetTagService, getAssetTagStatsLocalService, getAssetTagStatsPersistence, getAssetVocabularyFinder, getAssetVocabularyLocalService, getAssetVocabularyPersistence, getAssetVocabularyService, getBeanIdentifier, getCounterLocalService, getModelClass, getModelClassName, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryPropertyFinder, setAssetCategoryPropertyLocalService, setAssetCategoryPropertyPersistence, setAssetCategoryPropertyService, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagPropertyFinder, setAssetTagPropertyKeyFinder, setAssetTagPropertyLocalService, setAssetTagPropertyPersistence, setAssetTagPropertyService, setAssetTagService, setAssetTagStatsLocalService, setAssetTagStatsPersistence, setAssetVocabularyFinder, setAssetVocabularyLocalService, setAssetVocabularyPersistence, setAssetVocabularyService, setBeanIdentifier, setCounterLocalService, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, setUserService
 
Methods inherited from class com.liferay.portal.service.BaseServiceImpl
getClassLoader, getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetTagPropertyServiceImpl

public AssetTagPropertyServiceImpl()
Method Detail

addTagProperty

public 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 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 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 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 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.2-ce-ga5