|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TagManager
Method Summary | |
---|---|
void |
addTag(java.lang.String tagname, AssetId asset) Adds a tag to given asset. |
void |
addTag(java.lang.String category, java.lang.String tagName, java.lang.String tagValue, AssetId asset) Adds a tag to given asset. |
void |
addTag(java.lang.String type, java.lang.String tagName, java.lang.String tagValue, AssetId asset, boolean isAssetSave, boolean isAfterPublish) Add a tag to the give asset. |
void |
deleteTags(AssetId asset, boolean isAssetSave, boolean isPublish) Completely delete all tags for given asset |
void |
deleteVoids() Delete all voided tags |
java.util.List<java.lang.String> |
getAllTags(java.util.List<AssetId> assetIds) Get all the tags assigned to the give list of assets |
java.util.List<Tag> |
getAllTags(java.lang.String category, boolean excludeVoided) Return list of tags given parameters. |
java.util.List<AssetId> |
getAssets(java.lang.String category, java.lang.String tagName) Return list of asset ids given category and tag name. |
java.util.List<AssetId> |
getAssets(java.lang.String category, java.lang.String tagName, java.lang.String tagValue, java.lang.String owner) Return list of asset ids given parameters. |
java.util.List<java.lang.String> |
getCommonTags(java.util.List<AssetId> assetIds) Get all the tags common to the give list of assets |
java.util.List<java.lang.String> |
getSystemTags() Get all available tags in the system |
java.util.List<TagNode> |
getSystemTagTree() Get all available tags in the system as TagNodes. |
java.util.List<Tag> |
getTags(java.lang.String category, AssetId asset) Return non-voided tags given category and asset id. |
java.util.List<Tag> |
getTags(java.lang.String type, AssetId asset, boolean excludeVoid) Get all tags of given type and asset. |
void |
removeTag(java.lang.String category, java.lang.String tagName, AssetId asset) Removes tag from asset. |
void |
saveTags(java.util.List<AssetId> assetIds, java.lang.String[] newTags, java.lang.String[] deleteTags) Save and delete tags for multiple assets. |
void |
saveTags(java.util.List<Tag> tags) Saves given list of tags. |
java.util.List<Tag> |
saveTags(java.util.List<Tag> tags, boolean isAssetSave, boolean isAfterPublish) Saves given list of tags. |
Method Detail |
---|
void addTag(java.lang.String tagname, AssetId asset) throws AssetAccessException
tagname
- tag nameAssetAccessException
void addTag(java.lang.String category, java.lang.String tagName, java.lang.String tagValue, AssetId asset) throws AssetAccessException
#addTag(String)
.category
- tag category. A value of empty string is equivalent to null.tagName
- tag nametagValue
- tag valueasset
- asset identifierAssetAccessException
void saveTags(java.util.List<Tag> tags) throws AssetAccessException
TagManager.addTag(String, String, String, AssetId)
.tags
- list of tagsAssetAccessException
java.util.List<Tag> getTags(java.lang.String category, AssetId asset)
category
- tag category. If set to null or empty String, this method will return tags of any categoryasset
- asset identifierjava.util.List<AssetId> getAssets(java.lang.String category, java.lang.String tagName)
category
- tag category. If set to null or empty String, this method will ignore categorytagName
- tag namejava.util.List<AssetId> getAssets(java.lang.String category, java.lang.String tagName, java.lang.String tagValue, java.lang.String owner)
category
- tag category. If set to null or empty String, this method will ignore categorytagName
- tag nametagValue
- tag valueowner
- owner of tagjava.util.List<Tag> getAllTags(java.lang.String category, boolean excludeVoided)
category
- tag category. If set to null or empty String, this method will ignore categoryexcludeVoided
- false includes voided tags.void removeTag(java.lang.String category, java.lang.String tagName, AssetId asset) throws AssetAccessException
category
- tag category. If set to null or empty String, this method will ignore categorytagName
- tag nameasset
- asset identifierAssetAccessException
void deleteVoids() throws AssetAccessException
AssetAccessException
java.util.List<java.lang.String> getAllTags(java.util.List<AssetId> assetIds)
assetIds
- of unique asset idsjava.util.List<java.lang.String> getCommonTags(java.util.List<AssetId> assetIds)
assetIds
- of unique asset idsjava.util.List<java.lang.String> getSystemTags()
void saveTags(java.util.List<AssetId> assetIds, java.lang.String[] newTags, java.lang.String[] deleteTags) throws AssetAccessException
assetIds
- the asset idsnewTags
- a list of new tags to assign to the assetsdeleteTags
- a list of tags to delete from the assetsAssetAccessException
java.util.List<TagNode> getSystemTagTree()
java.util.List<Tag> getTags(java.lang.String type, AssetId asset, boolean excludeVoid)
type
-asset
-excludeVoid
-java.util.List<Tag> saveTags(java.util.List<Tag> tags, boolean isAssetSave, boolean isAfterPublish) throws AssetAccessException
AssetAccessException
void addTag(java.lang.String type, java.lang.String tagName, java.lang.String tagValue, AssetId asset, boolean isAssetSave, boolean isAfterPublish) throws AssetAccessException
type
-tagName
-tagValue
-asset
-AssetAccessException
void deleteTags(AssetId asset, boolean isAssetSave, boolean isPublish) throws AssetAccessException
asset
-AssetAccessException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.