|
Clearspace API (2.5.29) 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.
| Nested Class Summary | |
|---|---|
static class |
TagManager.Taggable
Enumeration of the primary three types of content elements in the system. |
| Method Summary | |
|---|---|
void |
addTag(ContentTag tag,
JiveObject jiveObject)
Associates a tag with this object |
ContentTag |
createTag(String tagname)
Creates a tag in the database. |
ContentTag |
getTag(long tagID)
Returns a tag given a tag ID. |
ContentTag |
getTag(String tagname)
Returns a tag by tag name. |
List<com.jivesoftware.community.ContentTagCloudBean> |
getTagCloud(Map<String,Integer> popularTags)
Returns a list of ContentTagCloudBean objects corresponding to the
provided parameters |
List<com.jivesoftware.community.ContentTagCloudBean> |
getTagCloud(Map<String,Integer> popularTags,
int numOfBuckets,
int sort)
Returns a list of ContentTagCloudBean objects corresponding to the
provided parameters |
int |
getTagCount(JiveObject jiveObject)
Return a count of all the tags associated with this jive object. |
JiveIterator<JiveObject> |
getTaggableContent(JiveContainer container)
Returns an iterator of taggable jive objects for the specific container. |
JiveIterator<JiveObject> |
getTaggableContent(JiveContainer container,
ResultFilter resultFilter,
TagManager.Taggable... taggableTypes)
Returns an iterator of taggable jive objects for the specific container. |
int |
getTaggableContentCount(JiveContainer container)
Returns a count of taggable jive objects for the specific container. |
int |
getTaggableContentCount(JiveContainer container,
ResultFilter resultFilter,
TagManager.Taggable... taggableTypes)
Returns a cout of taggable jive objects for the specific container. |
Map<String,Integer> |
getTagMap(JiveContainer container)
Returns all tags for a given container in a Map where the key is the
name of tag and the value is the number of times the tag has been used in this container. |
Map<String,Integer> |
getTagMap(JiveContainer container,
TagResultFilter resultFilter,
TagManager.Taggable... types)
Returns all tags for a given container in a Map where the key is the
name of tag and the value is the number of times the tag has been used in this container
filtered by the TagResultFilter. |
JiveIterator<ContentTag> |
getTags(JiveObject jiveObject)
Return an Iterable for all the tags associated with this jive object. |
String |
getTagsAsString(JiveObject jiveObject)
Return a String for all the tags associated with this jive object. |
void |
removeAllTags(JiveObject jiveObject)
Disassociates this object with all tags. |
void |
removeTag(ContentTag tag,
JiveObject jiveObject)
Disassociates this object with the given tag. |
void |
setTags(String tags,
JiveObject jiveObject)
Sets tags for the specified jive object. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
ContentTag createTag(String tagname)
tagname - the name of the tag to create.
ContentTag getTag(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 - the id of the tag to retrieve
TagObjectNotFoundException - if no tag exists with that ID.
void addTag(ContentTag tag,
JiveObject jiveObject)
throws UnauthorizedException
tag - the tag to associate with the objectjiveObject - the object to associate the tag with
UnauthorizedException - if does not have permission to the tag
void setTags(String tags,
JiveObject jiveObject)
tags - the tag to associate with the objectjiveObject - the object to associate the tag with
UnauthorizedException - if does not have permission to the tagJiveIterator<ContentTag> getTags(JiveObject jiveObject)
jiveObject - the object to return associated tags for
String getTagsAsString(JiveObject jiveObject)
jiveObject - the object to return associated tags for
int getTagCount(JiveObject jiveObject)
jiveObject - the object to return associated tags for
Map<String,Integer> getTagMap(JiveContainer container)
Map where the key is the
name of tag and the value is the number of times the tag has been used in this container.
container - the container to return associated tags for
Map where the key is the
name of tag and the value is the number of times the tag has been used in this container
Map<String,Integer> getTagMap(JiveContainer container,
TagResultFilter resultFilter,
TagManager.Taggable... types)
Map where the key is the
name of tag and the value is the number of times the tag has been used in this container
filtered by the TagResultFilter.
container - the container to return associated tags forresultFilter - the filter to use to restrict tag resultstypes - the content types to use to restrict tag results
Map where the key is the
name of tag and the value is the number of times the tag has been used in this jive object
filtered by the TagResultFilter.int getTaggableContentCount(JiveContainer container)
container - the specified container to get taggable jive objects
int getTaggableContentCount(JiveContainer container,
ResultFilter resultFilter,
TagManager.Taggable... taggableTypes)
container - the specified container to get taggable jive objectsresultFilter - the result filter to set various options such as sorting, filteringtaggableTypes - the taggable types to return
JiveIterator<JiveObject> getTaggableContent(JiveContainer container)
container - the specified container to get taggable jive objects
JiveIterator<JiveObject> getTaggableContent(JiveContainer container,
ResultFilter resultFilter,
TagManager.Taggable... taggableTypes)
container - the specified container to get taggable jive objectsresultFilter - the result filter to set various options such as sorting, filteringtaggableTypes - the taggable types to return
void removeTag(ContentTag tag,
JiveObject jiveObject)
throws UnauthorizedException
tag - the tag to remove from this objectjiveObject - the object to remove the tag association for
UnauthorizedException - if does not have permission to remove tag.
void removeAllTags(JiveObject jiveObject)
throws UnauthorizedException
jiveObject - the object to disassociate all tags from
UnauthorizedException - if user does not have administrator permissions.List<com.jivesoftware.community.ContentTagCloudBean> getTagCloud(Map<String,Integer> popularTags)
ContentTagCloudBean objects corresponding to the
provided parameters
popularTags - a map of popular tags
ContentTagCloudBean objects corresponding to the
provided parameters
List<com.jivesoftware.community.ContentTagCloudBean> getTagCloud(Map<String,Integer> popularTags,
int numOfBuckets,
int sort)
ContentTagCloudBean objects corresponding to the
provided parameters
popularTags - a map of popular tagsnumOfBuckets - the number of buckets to sort the tags intosort - one of ContentTag.SORT_TAGNAME or ContentTag.SORT_TAGCOUNT
ContentTagCloudBean objects corresponding to the
provided parameters
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||