|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TagManager
Provides a manager to create, retrieve and delete tags.
| Method Summary | |
|---|---|
void |
addTag(ContentTag tag,
JiveObject contentObject)
Associates a tag with this object |
ContentTag |
createTag(java.lang.String tagname)
Creates a tag in the database. |
ContentTag |
getTag(long tagID)
Returns a tag given a tag ID. |
ContentTag |
getTag(java.lang.String tagname)
Returns a tag by tag name. |
java.util.List<com.jivesoftware.community.ContentTagCloudBean> |
getTagCloud(java.util.Map<java.lang.String,java.lang.Integer> popularTags,
int numOfBuckets)
|
java.util.List<com.jivesoftware.community.ContentTagCloudBean> |
getTagCloud(java.util.Map<java.lang.String,java.lang.Integer> popularTags,
int numOfBuckets,
int sort)
|
JiveIterator<ContentTag> |
getTags(JiveObject contentObject)
Return an Iterable for all the tags associated with this manager. |
void |
removeAllTags(JiveObject contentObject)
Disassociates this object with all tags. |
void |
removeTag(ContentTag tag,
JiveObject contentObject)
Disassociates this object with the given tag. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy, initialize |
| Method Detail |
|---|
ContentTag createTag(java.lang.String tagname)
tagname - the name of the tag to create.
ContentTag getTag(java.lang.String tagname)
throws com.jivesoftware.community.TagObjectNotFoundException
tagname - the name of the tag to lookup.
TagObjectNotFoundException - if no tag exists with that name.
ContentTag getTag(long tagID)
throws com.jivesoftware.community.TagObjectNotFoundException
tagID -
TagObjectNotFoundException - if no tag exists with that ID.
void addTag(ContentTag tag,
JiveObject contentObject)
throws UnauthorizedException
UnauthorizedException - if does not have permission to the tagJiveIterator<ContentTag> getTags(JiveObject contentObject)
void removeTag(ContentTag tag,
JiveObject contentObject)
throws UnauthorizedException
tag - the tag to remove from this object
UnauthorizedException - if does not have permission to remove tag.
void removeAllTags(JiveObject contentObject)
throws UnauthorizedException
UnauthorizedException - if user does not have administrator permissions.
java.util.List<com.jivesoftware.community.ContentTagCloudBean> getTagCloud(java.util.Map<java.lang.String,java.lang.Integer> popularTags,
int numOfBuckets)
java.util.List<com.jivesoftware.community.ContentTagCloudBean> getTagCloud(java.util.Map<java.lang.String,java.lang.Integer> popularTags,
int numOfBuckets,
int sort)
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||