Package org.alfresco.repo.tagging.script
Class TagScope
java.lang.Object
org.alfresco.repo.tagging.script.TagScope
Script object representing a tag scope.
- Author:
- Roy Wetherall
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the count of a tag, 0 if not presentgetTags()Gets all the tags, ordered by count, for the tag scopegetTopTags(int topN) Gets the top N tags ordered by countvoidrefresh()Refresh the tag scope
-
Constructor Details
-
TagScope
Constructor- Parameters:
tagScopeImpl- repository tag scope object
-
-
Method Details
-
getTags
Gets all the tags, ordered by count, for the tag scope- Returns:
- TagDetails[] tags ordered by count
-
getTopTags
Gets the top N tags ordered by count- Parameters:
topN- the number of top tags to return- Returns:
- TagDetails[] the top N tags ordered by count
-
getCount
Get the count of a tag, 0 if not present- Parameters:
tag- tag name- Returns:
- int tag count
-
refresh
public void refresh()Refresh the tag scope
-