org.alfresco.repo.tagging.script
Class TagScope

java.lang.Object
  extended by org.alfresco.repo.tagging.script.TagScope

public class TagScope
extends java.lang.Object

Script object representing a tag scope.


Constructor Summary
TagScope(TaggingService taggingService, TagScope tagScopeImpl)
          Constructor
 
Method Summary
 int getCount(java.lang.String tag)
          Get the count of a tag, 0 if not present
 TagDetails[] getTags()
          Gets all the tags, ordered by count, for the tag scope
 TagDetails[] getTopTags(int topN)
          Gets the top N tags ordered by count
 void refresh()
          Refresh the tag scope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagScope

public TagScope(TaggingService taggingService,
                TagScope tagScopeImpl)
Constructor

Parameters:
tagScopeImpl - repository tag scope object
Method Detail

getTags

public TagDetails[] getTags()
Gets all the tags, ordered by count, for the tag scope

Returns:
TagDetails[] tags ordered by count

getTopTags

public TagDetails[] getTopTags(int topN)
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

public int getCount(java.lang.String tag)
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



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.