public interface AssetAutoTagger
Modifier and Type | Method and Description |
---|---|
void |
tag(com.liferay.asset.kernel.model.AssetEntry assetEntry)
Automatically applies tags to an asset entry by running every
AssetAutoTagProvider implementation that can handle the asset entry's
associated model and merging all the resulting tags. |
void |
untag(com.liferay.asset.kernel.model.AssetEntry assetEntry)
Removes the tags that have been automatically applied to the asset entry.
|
void tag(com.liferay.asset.kernel.model.AssetEntry assetEntry) throws com.liferay.portal.kernel.exception.PortalException
AssetAutoTagProvider
implementation that can handle the asset entry's
associated model and merging all the resulting tags.
Only assets with an associated AssetRenderer
are supported.
assetEntry
- the asset entry to tagcom.liferay.portal.kernel.exception.PortalException
- if a portal exception occurredvoid untag(com.liferay.asset.kernel.model.AssetEntry assetEntry) throws com.liferay.portal.kernel.exception.PortalException
This method provides a way to rollback tag(AssetEntry)
.
assetEntry
- the asset entry to untagcom.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred