Package com.liferay.asset.auto.tagger
Interface AssetAutoTagger
public interface AssetAutoTagger
Facade to the auto-tagging framework.
-
Method Summary
Modifier and TypeMethodDescriptionvoidtag(com.liferay.asset.kernel.model.AssetEntry assetEntry) Automatically applies tags to an asset entry by running everyAssetAutoTagProviderimplementation that can handle the asset entry's associated model and merging all the resulting tags.voiduntag(com.liferay.asset.kernel.model.AssetEntry assetEntry) Removes the tags that have been automatically applied to the asset entry.
-
Method Details
-
tag
void tag(com.liferay.asset.kernel.model.AssetEntry assetEntry) throws com.liferay.portal.kernel.exception.PortalException Automatically applies tags to an asset entry by running everyAssetAutoTagProviderimplementation that can handle the asset entry's associated model and merging all the resulting tags.Only assets with an associated
AssetRendererare supported.- Parameters:
assetEntry- the asset entry to tag- Throws:
com.liferay.portal.kernel.exception.PortalException- if a portal exception occurred
-
untag
void untag(com.liferay.asset.kernel.model.AssetEntry assetEntry) throws com.liferay.portal.kernel.exception.PortalException Removes the tags that have been automatically applied to the asset entry. Any tags added externally (e.g., via a human or the asset APIs) are not removed.This method provides a way to rollback
tag(AssetEntry).- Parameters:
assetEntry- the asset entry to untag- Throws:
com.liferay.portal.kernel.exception.PortalException- if a portal exception occurred
-