|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.webservices.server.ForumServiceImpl
public class ForumServiceImpl
| Constructor Summary | |
|---|---|
ForumServiceImpl()
|
|
| Method Summary | |
|---|---|
Forum |
createForum(java.lang.String name,
java.lang.String description)
Creates a new forum under the root category. |
Forum |
createForumUnderCategory(java.lang.String name,
java.lang.String description,
long categoryID)
Creates a new forum under the specified category. |
Forum |
createRestrictedForumUnderCategory(java.lang.String name,
java.lang.String description,
long categoryID,
long userID)
Bundles calls associated with creation of a new forum that sets the user as the moderator and sets negative permission for anonymous and registered users. |
void |
deleteForum(long forumID)
Used to delete a forum by its ID. |
void |
deleteProperty(java.lang.String name,
long forumID)
Delete a property with the given name from the forum with the given forum ID. |
Forum |
getForum(long forumID)
Returns a Forum by its ID. |
int |
getForumCount()
Returns the count of all forums in the system. |
int |
getForumCount(long categoryID)
Returns the number of forums under the specified category. |
int |
getForumCountByCategoryIDWithFilter(long categoryID,
ResultFilter resultFilter)
Returns an array of IDs for all forums under this category. |
Forum[] |
getForums()
Returns the IDs of all forums under the root category. |
Forum[] |
getForumsByCategoryID(long categoryID)
Returns an array of IDs for all forums under this category. |
Forum[] |
getForumsByCategoryIDWithFilter(long categoryID,
ResultFilter resultFilter)
Returns an array of IDs for all forums under this category. |
Forum[] |
getPopularForums()
Returns the IDs of all popular forums. |
Property[] |
getProperties(long forumID)
Returns all tbe extended properties for the forum with the forum with specified ID. |
java.lang.String |
getProperty(java.lang.String name,
long forumID)
Returns the value for a given property name. |
int |
getRecursiveForumCount(long categoryID)
Returns the count of all forums under the category with the specified ID. |
Forum[] |
getRecursiveForums(long categoryID)
Returns an array of forum ids for all forums under the category with the specified ID recursively. |
void |
mergeForums(long forumID1,
long forumID2)
Merges the content of two forums by copying the threads from Forum with ID forumID2 to forum with ID forumID1. |
void |
moveForums(long forumID,
long categoryID)
Move the forum with the specified ID to the category with the specified ID. |
void |
setProperty(java.lang.String name,
java.lang.String value,
long forumID)
Set an extended for the property with the given forum ID. |
void |
updateForum(Forum forum)
Updates changes to a forum to the system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForumServiceImpl()
| Method Detail |
|---|
public Forum getForum(long forumID)
throws ForumNotFoundException
ForumServiceForum by its ID.
getForum in interface ForumServiceforumID - The ID of the forum.
ForumNotFoundExceptionpublic Forum[] getForums()
ForumService
getForums in interface ForumServicepublic Forum[] getPopularForums()
ForumService
getPopularForums in interface ForumServicepublic int getForumCount()
ForumService
getForumCount in interface ForumService
public void deleteForum(long forumID)
throws ForumNotFoundException
ForumService
deleteForum in interface ForumServiceforumID - The ID of the forum to delete.
ForumNotFoundException
public void mergeForums(long forumID1,
long forumID2)
throws ForumNotFoundException
ForumService
mergeForums in interface ForumServiceforumID1 - The Forum to merge threads into.forumID2 - The Forum to move all threads from.
ForumNotFoundException
public void moveForums(long forumID,
long categoryID)
throws ForumNotFoundException,
ForumCategoryNotFoundException
ForumService
moveForums in interface ForumServiceforumID - The ID of the forum to move.categoryID - The ID of the category to move the forum to.
ForumNotFoundException
ForumCategoryNotFoundException
public Forum[] getRecursiveForums(long categoryID)
throws ForumCategoryNotFoundException
ForumService
getRecursiveForums in interface ForumServicecategoryID - The ID of the category to get the ids of the forums.
ForumCategoryNotFoundException
public int getRecursiveForumCount(long categoryID)
throws ForumCategoryNotFoundException
ForumService
getRecursiveForumCount in interface ForumServicecategoryID - The ID of the forum to get the ids of the forums .
ForumCategoryNotFoundException
public int getForumCountByCategoryIDWithFilter(long categoryID,
ResultFilter resultFilter)
throws ForumCategoryNotFoundException
ForumService
getForumCountByCategoryIDWithFilter in interface ForumServicecategoryID - The ID of the category to get the ids of the forums.resultFilter - to filter on.
ForumCategoryNotFoundException
public Forum[] getForumsByCategoryID(long categoryID)
throws ForumCategoryNotFoundException
ForumService
getForumsByCategoryID in interface ForumServicecategoryID - The ID of the category to get the ids of the forums.
ForumCategoryNotFoundException
public Forum[] getForumsByCategoryIDWithFilter(long categoryID,
ResultFilter resultFilter)
throws ForumCategoryNotFoundException
ForumService
getForumsByCategoryIDWithFilter in interface ForumServicecategoryID - The ID of the category to get the ids of the forums.
ForumCategoryNotFoundException
public int getForumCount(long categoryID)
throws ForumCategoryNotFoundException
ForumService
getForumCount in interface ForumServicecategoryID - The ID of the category.
ForumCategoryNotFoundException - Thrown if the specified category does not exist.
public Forum createForum(java.lang.String name,
java.lang.String description)
ForumService
createForum in interface ForumServicename - The name of the forum.description - A short description of the purpose of the forum.
public Forum createForumUnderCategory(java.lang.String name,
java.lang.String description,
long categoryID)
throws ForumCategoryNotFoundException
ForumService
createForumUnderCategory in interface ForumServicename - The name of the forum.description - A short description of the purpose of the forum.
ForumCategoryNotFoundException - Thrown if the specified category does not exist.
public Property[] getProperties(long forumID)
throws ForumNotFoundException
ForumService
getProperties in interface ForumServiceforumID - The ID of the forum to retrieve properties for.
ForumNotFoundException
public void setProperty(java.lang.String name,
java.lang.String value,
long forumID)
throws ForumNotFoundException
ForumService
setProperty in interface ForumServicename - The name of the property.value - The value of the property.forumID - The ID of the forum to set an extended property for.
ForumNotFoundException
public java.lang.String getProperty(java.lang.String name,
long forumID)
throws ForumNotFoundException
ForumService
getProperty in interface ForumServicename - the property name.forumID - the ID of the forum to retrieve the propery for.
ForumNotFoundException
public void deleteProperty(java.lang.String name,
long forumID)
throws ForumNotFoundException
ForumService
deleteProperty in interface ForumServicename - The name of the property to delete.forumID - The ID of the forum to delete the property from.
ForumNotFoundException
public void updateForum(Forum forum)
throws ForumNotFoundException,
NameAlreadyExistsException
ForumService
updateForum in interface ForumServiceforum - The forum to update.
ForumNotFoundException
NameAlreadyExistsException
public Forum createRestrictedForumUnderCategory(java.lang.String name,
java.lang.String description,
long categoryID,
long userID)
throws ForumCategoryNotFoundException,
UserNotFoundException
ForumService
createRestrictedForumUnderCategory in interface ForumServiceForumCategoryNotFoundException
UserNotFoundException
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||