|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.database.DbTagManager
public class DbTagManager
Database backed implementation of TagManager.
TagManager
,
ContentTag
Method Summary | |
---|---|
void |
addTag(ContentTag tag,
JiveContentObject contentObject)
Associates a tag with this object |
ContentTag |
createTag(java.lang.String tagname)
Creates a tag in the database. |
void |
destroy()
Notifies the manager to release any resources that may be holding on too. |
java.lang.String[] |
getCategoryTags(ForumCategory forumCategory)
|
static DbTagManager |
getInstance()
|
java.util.Iterator |
getPopularTags(ForumCategory forumCategory)
Returns an iterable collection of popular tags based on the current community and tag set. |
ContentTag |
getTag(long tagID)
Returns a tag given a tag ID. |
ContentTag |
getTag(java.lang.String tagname)
Returns a tag by tag name. |
long |
getTagID(java.lang.String tagname)
Checks cache for tagID, if it does find it, calls lookupTag(String tag), and caches and returns resulting tagID. |
DatabaseObjectIterator |
getTags(JiveContentObject contentObject)
Return an Iterable for all the tags associated with this manager. |
void |
initialize()
Initialize the manager. |
void |
removeAllTags(JiveContentObject contentObject)
Disassociates this object with all tags. |
void |
removeTag(ContentTag tag,
JiveContentObject contentObject)
Disassociates this object with the given tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void initialize()
JiveManager
This method is used internally by Jive during application startup and should not be called during normal usage of the class.
initialize
in interface JiveManager
public static DbTagManager getInstance()
public void destroy()
JiveManager
destroy
in interface JiveManager
public java.util.Iterator getPopularTags(ForumCategory forumCategory)
getPopularTags
in interface TagManager
public java.lang.String[] getCategoryTags(ForumCategory forumCategory)
public ContentTag getTag(java.lang.String tagname) throws TagObjectNotFoundException
TagManager
getTag
in interface TagManager
tagname
- the name of the tag to lookup.
TagObjectNotFoundException
- if no tag exists with that name.public ContentTag getTag(long tagID) throws TagObjectNotFoundException
TagManager
getTag
in interface TagManager
TagObjectNotFoundException
- if no tag exists with that ID.public long getTagID(java.lang.String tagname) throws TagObjectNotFoundException
tagname
- the tag name to lookup the tagID for
TagObjectNotFoundException
- if the tag isn't foundpublic ContentTag createTag(java.lang.String tagname)
TagManager
createTag
in interface TagManager
tagname
- the name of the tag to create.
public void addTag(ContentTag tag, JiveContentObject contentObject)
TagManager
addTag
in interface TagManager
public void removeTag(ContentTag tag, JiveContentObject contentObject)
TagManager
removeTag
in interface TagManager
tag
- the tag to remove from this objectpublic void removeAllTags(JiveContentObject contentObject)
TagManager
removeAllTags
in interface TagManager
public DatabaseObjectIterator getTags(JiveContentObject contentObject)
TagManager
getTags
in interface TagManager
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |