|
Clearspace API (1.10.16) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TagSet
A TagSet is a named collection of ContentTags used to build filtered content views. TagSets are the secondary organizational
construct in the product after Community. Unlike Communities they are not heirarchical
in nature, but rather just organize content within a Community into buckets based on
ContentTag association. Also unlike communities, they do not directly contain content objects, and do not have permissions
associated with content generation or editing.
ContentTag,
TagSet,
Community| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.jivesoftware.community.ContentRetrieval |
|---|
ContentRetrieval.ContentType |
| Field Summary |
|---|
| Fields inherited from interface com.jivesoftware.community.ContentRetrieval |
|---|
ALL_TYPES |
| Method Summary | |
|---|---|
void |
addTag(ContentTag tag)
Adds the supplied ContentTag to this TagSet. |
boolean |
contains(ContentTag tag)
Returns true if this TagSet contains the specified ContentTag. |
Community |
getCommunity()
Returns the Community to which this TagSet is bound. |
java.util.Date |
getCreationDate()
A convenience method which returns the date the tag set was originally created. |
java.lang.String |
getDescription()
Returns the description of this TagSet. |
java.util.Date |
getModificationDate()
A convenience method which returns the date the tag set was last modified When a tag set is first created, the date returned by this method is identical to the creation date. |
java.lang.String |
getName()
Returns the name of this TagSet. |
ContentTag |
getTag(long tagID)
Gets the tag specified by the tagID in this TagSet |
JiveIterator<ContentTag> |
getTags()
Returns an Iterable of ContentTags which define the view this TagSet represents. |
void |
removeTag(ContentTag tag)
Removes the supplied ContentTag from this TagSet if it is a member. |
void |
save()
Saves any changes made to this TagSet to the underlying data store |
void |
setDescription(java.lang.String description)
Sets the description of this TagSet. |
void |
setName(java.lang.String name)
Sets the name of this TagSet. |
void |
setTags(java.util.Collection<ContentTag> tags)
Sets all the tags associated with this TagSet. |
void |
setTagsFromTagNames(java.util.Collection<java.lang.String> tagNames)
Sets all the tags associated with this TagSet using the supplied tag names. |
| Methods inherited from interface com.jivesoftware.community.JiveObject |
|---|
getID, getObjectType |
| Methods inherited from interface com.jivesoftware.community.ContentRetrieval |
|---|
getBlogPostCount, getBlogPostCount, getBlogPosts, getBlogPosts, getCombinedContent, getCombinedContent, getCombinedContentCount, getCombinedContentCount, getDocumentCount, getDocumentCount, getDocuments, getDocuments, getMessageCount, getMessageCount, getMessages, getMessages, getThreadCount, getThreadCount, getThreads, getThreads |
| Method Detail |
|---|
java.lang.String getName()
void setName(java.lang.String name)
name - the name of this TagSet.java.lang.String getDescription()
void setDescription(java.lang.String description)
description - the description of this TagSet.java.util.Date getCreationDate()
java.util.Date getModificationDate()
Community getCommunity()
Community to which this TagSet is bound.
Community to which this TagSet is bound.JiveIterator<ContentTag> getTags()
Iterable of ContentTags which define the view this TagSet represents.
Iterable of ContentTags which define the view this TagSet represents.void addTag(ContentTag tag)
ContentTag to this TagSet.
tag - the ContentTag to add.
ContentTag getTag(long tagID)
throws com.jivesoftware.community.TagObjectNotFoundException
tagID - the ID of the tag to load
TagObjectNotFoundException - if the tag could not be found in this tag setvoid removeTag(ContentTag tag)
ContentTag from this TagSet if it is a member.
tag - the ContentTag to remove.void setTagsFromTagNames(java.util.Collection<java.lang.String> tagNames)
ContentTags will cause new tags to be created. The existing tag
associations will be cleared and replaced by the resultant tags.
tagNames - the names of the ContentTags to associate with this TagSet.void setTags(java.util.Collection<ContentTag> tags)
ContentTags.
tags - the ContentTags to associated with this TagSet.boolean contains(ContentTag tag)
ContentTag.
tag - the ContentTag to test for set membership.
ContentTag.void save()
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||