|
Method Summary | ||
addTag(NodeRef nodeRef, String tag) Add a tag to a node. |
||
addTags(NodeRef nodeRef, List<String> tags) Adds a list of tags to a node. |
||
void |
addTagScope(NodeRef nodeRef) Adds a tag scope to the specified node |
|
changeTag(StoreRef storeRef, String existingTag, String newTag) | ||
void |
clearTags(NodeRef nodeRef) Clears all tags from an already tagged node. |
|
createTag(StoreRef storeRef, String tag) Create a new tag |
||
void |
deleteTag(StoreRef storeRef, String tag) Delete an existing tag and any references to it(cascade delete). |
|
List<org.alfresco.service.cmr.tagging.TagScope> |
findAllTagScopes(NodeRef nodeRef) Finds all the tag scopes for the specified node. |
|
findTaggedNodes(StoreRef storeRef, String tag) Find all nodes that have been tagged with the specified tag. |
||
findTaggedNodes(StoreRef storeRef, String tag, NodeRef nodeRef) Find all nodes that have been tagged with the specified tag and reside within the context of the node reference provided. |
||
org.alfresco.service.cmr.tagging.TagScope |
findTagScope(NodeRef nodeRef) Finds the 'nearest' tag scope for the specified node. |
|
getPagedTags(StoreRef storeRef, int fromTag, int pageSize) Get page of the tags currently available |
||
getPagedTags(StoreRef storeRef, String filter, int fromTag, int pageSize) | ||
getTagName(NodeRef nodeRef) | ||
getTagNodeRef(StoreRef storeRef, String tag) Gets the node reference for a given tag. |
||
getTags(NodeRef nodeRef) Get all the tags on a node |
||
getTags(NodeRef nodeRef, PagingRequest pagingRequest) Get a paged list of all the tags on a node |
||
getTags(StoreRef storeRef) Get all the tags currently available |
||
getTags(StoreRef storeRef, PagingRequest pagingRequest) Get a paged list of all the tags currently available |
||
getTags(StoreRef storeRef, String filter) Get all the tags currently available that match the provided filter. |
||
boolean |
hasTag(NodeRef nodeRef, String tag) Indicates whether a node has the specified tag or not. |
|
boolean |
isTag(StoreRef storeRef, String tag) Indicates whether the tag already exists |
|
boolean |
isTagScope(NodeRef nodeRef) Indicates whether the node reference is a tag scope |
|
void |
refreshTagScope(NodeRef nodeRef, boolean async) Refreshes the tag count of the passed tag scope by recounting all the tags of the children of the scope. |
|
void |
removeTag(NodeRef nodeRef, String tag) Remove a tag from a node. |
|
void |
removeTags(NodeRef nodeRef, List<String> tags) Removes a list of tags from a node. |
|
void |
removeTagScope(NodeRef nodeRef) Removes a tag scope from a specified node. |
|
void |
setTags(NodeRef nodeRef, List<String> tags) Sets the list of tags that are applied to a node, replaces any existing tags with those provided. |
Returns null if tag is not present.
Tags are created if they do not exist.
The 'nearest' tag scope is discovered by walking up the primary parent path until a tag scope is found or the root node is reached.
If no tag scope if found then a null value is returned.
The resulting list of tag scopes is ordered with the 'nearest' at the bedining of the list.
If no tag scopes are found an empty list is returned.
|