|
Jive API (3.0.13) 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 |
addCommunityTag(ContentTag tag,
JiveObject jiveObject,
User user)
Adds a community tag to a JiveObject on behalf of the given user. |
void |
addTag(ContentTag tag,
JiveObject jiveObject)
Associates a tag with this object |
ContentTag |
createTag(String tagname)
Creates a tag in the database. |
TagCloud |
getCommunityTagCloud(JiveObject jiveObject)
Returns the tag map for the given object. |
int |
getCommunityTagCountByUser(JiveObject jiveObject,
User user)
Returns the number of community tags a particular user has on a given piece of content. |
Set<CommunityTaggableType> |
getCommunityTaggableTypes()
Returns the set of all types which can be community tagged. |
JiveIterator<ContentTag> |
getCommunityTags(JiveObject jiveObject,
User user)
Return an Iterable for all the tags associated with this jive object on behalf of the given user. |
int |
getContentCount(TagSet tagSet,
TaggableType type,
JiveContainer container)
Returns the number of contents of type type that has any of tags of the tag set
and belongs to container. |
ContentTag |
getTag(long tagID)
Returns a tag given a tag ID. |
ContentTag |
getTag(String tagname)
Returns a tag by tag name. |
List<ContentTagCloudBean> |
getTagCloud(Map<String,Integer> popularTags)
Returns a list of com.jivesoftware.community.ContentTagCloudBean objects corresponding to the
provided parameters |
List<ContentTagCloudBean> |
getTagCloud(Map<String,Integer> popularTags,
int numOfBuckets,
int sort)
Returns a list of com.jivesoftware.community.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,
Collection<GenericTaggableType> types)
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,
Collection<GenericTaggableType> types)
Returns a cout of taggable jive objects for the specific container. |
GenericTaggableType |
getTaggableType(int objectType)
Returns the taggable type singleton of the specified object type. |
List<GenericTaggableType> |
getTaggableTypes()
Returns a list of taggables types that are available for current license. |
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)
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. |
Map<String,Integer> |
getTagMap(JiveContainer container,
TagResultFilter resultFilter,
List<GenericTaggableType> 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. |
TagCloud |
getUserCommunityTagCloud(User user)
Returns the tag cloud of community tags used by the given user. |
void |
removeAllTags(JiveObject jiveObject)
Disassociates this object with all tags. |
void |
removeCommunityTags(EntityDescriptor user,
EntityDescriptor object)
Removes all community tags the given user has associated with the given JiveObject. |
void |
removeCommunityTags(User user,
JiveObject object)
Removes all community tags the given user has associated with the given JiveObject. |
void |
removeTag(ContentTag tag,
JiveObject jiveObject)
Disassociates this object with the given tag. |
void |
setCommunityTags(Set<String> tags,
JiveObject jiveObject,
User user)
Tags the specified object on behalf of the given user. |
void |
setTags(Set<String> tags,
JiveObject jiveObject)
Sets tags for the specified jive object. |
void |
setTags(String tags,
JiveObject jiveObject)
Deprecated. use setTags(java.util.Set, JiveObject) |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
ContentTag createTag(String tagname)
tagname - the name of the tag to create.
com.jivesoftware.community.validation.InvalidPropertyException - if the provided tag name is not valid.
ContentTag getTag(String tagname)
throws TagObjectNotFoundException
tagname - the name of the tag to lookup.
TagObjectNotFoundException - if no tag exists with that name.
ContentTag getTag(long tagID)
throws 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 addCommunityTag(ContentTag tag,
JiveObject jiveObject,
User user)
tag - the tag being added.jiveObject - the object that is being tagged.user - the user, on whose behalf, the tag is being added.
void setTags(String tags,
JiveObject jiveObject)
setTags(java.util.Set, JiveObject)
tags - 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(Set<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 tag
com.jivesoftware.community.validation.InvalidPropertyException - if any of the provided tags are invalid.
void setCommunityTags(Set<String> tags,
JiveObject jiveObject,
User user)
tags - the tags which will be associated with the given object.jiveObject - the object which is being tagged.user - the user, on whose behalf, the tag is being added.JiveIterator<ContentTag> getTags(JiveObject jiveObject)
jiveObject - the object to return associated tags for
JiveIterator<ContentTag> getCommunityTags(JiveObject jiveObject,
User user)
jiveObject - the object to return associated tags foruser - the user, on whose behalf, the tag is being retrieved.
String getTagsAsString(JiveObject jiveObject)
jiveObject - the object to return associated tags for
int getTagCount(JiveObject jiveObject)
jiveObject - the object to return associated tags for
int getCommunityTagCountByUser(JiveObject jiveObject,
User user)
jiveObject - the object for which the tags are being returneduser - the user whose community tags are being returned.
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)
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 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 container
filtered by the TagResultFilter
Map<String,Integer> getTagMap(JiveContainer container,
TagResultFilter resultFilter,
List<GenericTaggableType> 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.TagCloud getCommunityTagCloud(JiveObject jiveObject)
jiveObject - the object which is having its tag map returned.
TagCloud getUserCommunityTagCloud(User user)
user - the user whose tag cloud is to be returned.
int getTaggableContentCount(JiveContainer container)
container - the specified container to get taggable jive objects
int getTaggableContentCount(JiveContainer container,
ResultFilter resultFilter,
Collection<GenericTaggableType> types)
container - the specified container to get taggable jive objectsresultFilter - the result filter to set various options such as sorting, filteringtypes - the types for which the count is being returned
JiveIterator<JiveObject> getTaggableContent(JiveContainer container)
container - the specified container to get taggable jive objects
JiveIterator<JiveObject> getTaggableContent(JiveContainer container,
ResultFilter resultFilter,
Collection<GenericTaggableType> types)
container - the specified container to get taggable jive objectsresultFilter - the result filter to set various options such as sorting, filteringtypes - the types for which the objects are being returned.
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.
void removeCommunityTags(User user,
JiveObject object)
throws UnauthorizedException
user - the user whose tags are being removed.object - the object which is having the community tags removed.
UnauthorizedException - if the currently authenticated user does not have permission to remove community
tags for the given user.
void removeCommunityTags(EntityDescriptor user,
EntityDescriptor object)
user - the user whose tags are being removed.object - the object which is having the community tags removed.
UnauthorizedException - if the currently authenticated user does not have permission to remove community
tags for the given user.List<ContentTagCloudBean> getTagCloud(Map<String,Integer> popularTags)
com.jivesoftware.community.ContentTagCloudBean objects corresponding to the
provided parameters
popularTags - a map of popular tags
com.jivesoftware.community.ContentTagCloudBean objects corresponding to the
provided parameters
List<ContentTagCloudBean> getTagCloud(Map<String,Integer> popularTags,
int numOfBuckets,
int sort)
com.jivesoftware.community.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
com.jivesoftware.community.ContentTagCloudBean objects corresponding to the
provided parametersList<GenericTaggableType> getTaggableTypes()
GenericTaggableType getTaggableType(int objectType)
IllegalArgumentException.
objectType - the object type to return the taggable type from.
IllegalArgumentException - it objectType is not taggable.Set<CommunityTaggableType> getCommunityTaggableTypes()
int getContentCount(TagSet tagSet,
TaggableType type,
JiveContainer container)
type that has any of tags of the tag set
and belongs to container.
tagSet - type - container -
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||