|
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.ContentServiceImpl
public class ContentServiceImpl
| Constructor Summary | |
|---|---|
ContentServiceImpl()
|
|
| Method Summary | |
|---|---|
int |
countMessageSearchResults(Query query)
Returns the number of possible results for the specified query. |
int |
countMessageSearchResultsByCategoryID(long categoryID,
Query query)
Returns the number of possible results for the specified query by category. |
int |
countQuickMessageSearchResults(java.lang.String query)
Returns the number of possible results for the specified query. |
int |
countQuickMessageSearchResultsByCategoryID(long categoryID,
java.lang.String query)
Returns the number of possible results for the specified query. |
ForumMessage |
createMessage(java.lang.String subject,
java.lang.String body,
long threadID,
long userID)
Creates a new message on the given thread. |
ForumMessage |
createReplyMessage(java.lang.String subject,
java.lang.String body,
long messageID,
long userID)
Creates a new message that is a direct response to a given message. |
ForumThread |
createThread(java.lang.String subject,
java.lang.String body,
long forumID,
long userID)
Creates a new thread. |
Forum |
getForum(long forumID)
Returns a Forum by its id. |
ForumCategory |
getForumCategory(long categoryID)
Returns a ForumCategory by its id. |
ForumMessage |
getForumMessage(long messageID)
Returns a ForumMessage by its id. |
ForumThread |
getForumThread(long threadID)
Returns a ForumThread by its id. |
int |
getMessageCountByUserID(long userID)
Returns the number of messages for created by the given userID. |
ForumMessage[] |
getMessagesByUserID(long userID)
Returns all the messages created by the given userID. |
long[] |
messageSearch(Query query,
int startIndex,
int numResults)
Provides the ability to create complex search queries with the ability to change sorting, filtering, etc. |
long[] |
messageSearchByCategories(long categoryID,
Query query,
int startIndex,
int numResults)
Provides the ability to create complex search queries with the ability to change sorting, filtering, etc. all by category. |
ForumMessage[] |
messageSearchByCategoriesForObjects(long categoryID,
Query query,
int startIndex,
int numResults)
Provides the ability to create complex search queries with the ability to change sorting, filtering, etc. all by category. |
ForumMessage[] |
messageSearchForObjects(Query query,
int startIndex,
int numResults)
Provides the ability to create complex search queries with the ability to change sorting, filtering, etc. |
long[] |
quickMessageSearch(java.lang.String query,
int startIndex,
int numResults)
Provides the ability to do quick search queries based on the provided string. |
long[] |
quickMessageSearchByCategoryID(long categoryID,
java.lang.String query,
int startIndex,
int numResults)
Provides the ability to do quick search queries based on the provided string. |
ForumMessage[] |
quickMessageSearchByCategoryIDForObjects(long categoryID,
java.lang.String query,
int startIndex,
int numResults)
Provides the ability to do quick search queries based on the provided string. |
ForumMessage[] |
quickMessageSearchForObjects(java.lang.String query,
int startIndex,
int numResults)
Provides the ability to do quick search queries based on the provided string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentServiceImpl()
| Method Detail |
|---|
public Forum getForum(long forumID)
throws ForumNotFoundException
ContentServiceForum by its id.
getForum in interface ContentServiceforumID - the id of the forum.
ForumNotFoundException
public ForumCategory getForumCategory(long categoryID)
throws ForumCategoryNotFoundException
ContentServiceForumCategory by its id.
getForumCategory in interface ContentServicecategoryID - id of the category.
ForumCategoryNotFoundException
public ForumThread getForumThread(long threadID)
throws ForumThreadNotFoundException
ContentServiceForumThread by its id.
getForumThread in interface ContentServicethreadID - id of the thread.
ForumThreadNotFoundException
public ForumMessage getForumMessage(long messageID)
throws ForumMessageNotFoundException
ContentServiceForumMessage by its id.
getForumMessage in interface ContentServicemessageID - id of the message.
ForumMessageNotFoundException
public ForumThread createThread(java.lang.String subject,
java.lang.String body,
long forumID,
long userID)
throws UserNotFoundException,
ForumNotFoundException,
MessageRejectedException
ContentService
createThread in interface ContentServicesubject - Subject used in creation of the thread.body - Body used in creation of the thread.forumID - The forum to create a new thread in.userID - The user to create this message as. Use a number less than zero for anonymous.
UserNotFoundException
ForumNotFoundException
MessageRejectedException
public ForumMessage createMessage(java.lang.String subject,
java.lang.String body,
long threadID,
long userID)
throws ForumThreadNotFoundException,
UserNotFoundException,
MessageRejectedException
ContentService
createMessage in interface ContentServicesubject - Subject used in creation of the thread.body - Body used in creation of the thread.threadID - Thread to create the message too.userID - The user to create this message as. Use a number less than zero for anonymous.
ForumThreadNotFoundException
UserNotFoundException
MessageRejectedException
public ForumMessage createReplyMessage(java.lang.String subject,
java.lang.String body,
long messageID,
long userID)
throws ForumMessageNotFoundException,
MessageRejectedException,
UserNotFoundException
ContentService
createReplyMessage in interface ContentServicesubject - Subject used in creation of the thread.body - Body used in creation of the thread.messageID - The id of the message to respond too.userID - The user to create this message as. Use a number less than zero for anonymous.
ForumMessageNotFoundException
MessageRejectedException
UserNotFoundException
public long[] messageSearch(Query query,
int startIndex,
int numResults)
throws UserNotFoundException
ContentService
messageSearch in interface ContentServicequery - The query objects.startIndex - Starting point of results to grab.numResults - Ending point of results to grab.
UserNotFoundException
public ForumMessage[] messageSearchForObjects(Query query,
int startIndex,
int numResults)
throws ForumNotFoundException,
ForumMessageNotFoundException,
UserNotFoundException
ContentService
messageSearchForObjects in interface ContentServicequery - The query objects.startIndex - Starting point of results to grab.numResults - Ending point of results to grab.
ForumNotFoundException
ForumMessageNotFoundException
UserNotFoundException
public long[] messageSearchByCategories(long categoryID,
Query query,
int startIndex,
int numResults)
throws ForumCategoryNotFoundException,
UserNotFoundException
ContentService
messageSearchByCategories in interface ContentServicecategoryID - The id of the categoryquery - The query objects.startIndex - Starting point of results to grab.numResults - Ending point of results to grab.
ForumCategoryNotFoundException - Thrown if the category does not exist
UserNotFoundException
public ForumMessage[] messageSearchByCategoriesForObjects(long categoryID,
Query query,
int startIndex,
int numResults)
throws ForumNotFoundException,
ForumCategoryNotFoundException,
ForumMessageNotFoundException,
UserNotFoundException
ContentService
messageSearchByCategoriesForObjects in interface ContentServicecategoryID - The id of the categoryquery - The query objects.startIndex - Starting point of results to grab.numResults - Ending point of results to grab.
ForumCategoryNotFoundException - Thrown if the category does not exist
ForumNotFoundException
ForumMessageNotFoundException
UserNotFoundException
public int countMessageSearchResults(Query query)
throws UserNotFoundException
ContentService
countMessageSearchResults in interface ContentServicequery - The query to find the number of results for.
UserNotFoundException
public int countMessageSearchResultsByCategoryID(long categoryID,
Query query)
throws ForumCategoryNotFoundException,
UserNotFoundException
ContentService
countMessageSearchResultsByCategoryID in interface ContentServicecategoryID - The id of the category.query - The query to find the number of results for.
ForumCategoryNotFoundException
UserNotFoundException
public long[] quickMessageSearch(java.lang.String query,
int startIndex,
int numResults)
ContentService
quickMessageSearch in interface ContentServicequery - The query string.startIndex - Starting point of results to grab.numResults - Ending point of results to grab.
public ForumMessage[] quickMessageSearchForObjects(java.lang.String query,
int startIndex,
int numResults)
throws ForumMessageNotFoundException
ContentService
quickMessageSearchForObjects in interface ContentServicequery - The query string.startIndex - Starting point of results to grab.numResults - Ending point of results to grab.
ForumMessageNotFoundException
public long[] quickMessageSearchByCategoryID(long categoryID,
java.lang.String query,
int startIndex,
int numResults)
throws ForumCategoryNotFoundException
ContentService
quickMessageSearchByCategoryID in interface ContentServicecategoryID - The id of the category.query - The query string.startIndex - Starting point of results to grab.numResults - Ending point of results to grab.
ForumCategoryNotFoundException
public ForumMessage[] quickMessageSearchByCategoryIDForObjects(long categoryID,
java.lang.String query,
int startIndex,
int numResults)
throws ForumCategoryNotFoundException,
ForumMessageNotFoundException
ContentService
quickMessageSearchByCategoryIDForObjects in interface ContentServicecategoryID - The id of the category.query - The query string.startIndex - Starting point of results to grab.numResults - Ending point of results to grab.
ForumCategoryNotFoundException
ForumMessageNotFoundExceptionpublic int countQuickMessageSearchResults(java.lang.String query)
ContentService
countQuickMessageSearchResults in interface ContentServicequery - The query to find the number of results for.
public int countQuickMessageSearchResultsByCategoryID(long categoryID,
java.lang.String query)
throws ForumCategoryNotFoundException
ContentService
countQuickMessageSearchResultsByCategoryID in interface ContentServicecategoryID - The id of the category.query - The query to find the number of results for.
ForumCategoryNotFoundException
public int getMessageCountByUserID(long userID)
throws UserNotFoundException
ContentService
getMessageCountByUserID in interface ContentServiceuserID - The id of the user.
UserNotFoundException
public ForumMessage[] getMessagesByUserID(long userID)
throws UserNotFoundException
ContentService
getMessagesByUserID in interface ContentServiceuserID - The id of the user.
UserNotFoundException
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||