|
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.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 |
countMessageSearchResultsByForumID(long forumID,
Query query)
Returns the number of results for the specified query for a forum. |
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. |
long[] |
messageSearchByForum(long forumID,
Query query,
int startIndex,
int numResults)
Provides the ability to perform a search query for messages within a forum. |
ForumMessage[] |
messageSearchByForumForObjects(long forumID,
Query query,
int startIndex,
int numResults)
Provides the ability to perform a search query for messages within a forum. |
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
ContentService
Forum
by its id.
getForum
in interface ContentService
forumID
- the id of the forum.
ForumNotFoundException
public ForumCategory getForumCategory(long categoryID) throws ForumCategoryNotFoundException
ContentService
ForumCategory
by its id.
getForumCategory
in interface ContentService
categoryID
- id of the category.
ForumCategoryNotFoundException
public ForumThread getForumThread(long threadID) throws ForumThreadNotFoundException
ContentService
ForumThread
by its id.
getForumThread
in interface ContentService
threadID
- id of the thread.
ForumThreadNotFoundException
public ForumMessage getForumMessage(long messageID) throws ForumMessageNotFoundException
ContentService
ForumMessage
by its id.
getForumMessage
in interface ContentService
messageID
- 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 ContentService
subject
- 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 ContentService
subject
- 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 ContentService
subject
- 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 ContentService
query
- 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 ContentService
query
- 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 ContentService
categoryID
- 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 ContentService
categoryID
- 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 ContentService
query
- The query to find the number of results for.
UserNotFoundException
public int countMessageSearchResultsByCategoryID(long categoryID, Query query) throws ForumCategoryNotFoundException, UserNotFoundException
ContentService
countMessageSearchResultsByCategoryID
in interface ContentService
categoryID
- The id of the category.query
- The query to find the number of results for.
ForumCategoryNotFoundException
UserNotFoundException
public long[] messageSearchByForum(long forumID, Query query, int startIndex, int numResults) throws ForumNotFoundException, UserNotFoundException
ContentService
messageSearchByForum
in interface ContentService
forumID
- The id of the forum.query
- The query object.startIndex
- Starting point of results to return.numResults
- Ending point of results to return.
ForumNotFoundException
- Thrown if the forum does not exist
UserNotFoundException
public ForumMessage[] messageSearchByForumForObjects(long forumID, Query query, int startIndex, int numResults) throws ForumNotFoundException, ForumMessageNotFoundException, UserNotFoundException
ContentService
messageSearchByForumForObjects
in interface ContentService
forumID
- The id of the forum.query
- The query object.startIndex
- Starting point of results to return.numResults
- Ending point of results to return.
ForumNotFoundException
- Thrown if the forum does not exist
ForumMessageNotFoundException
UserNotFoundException
public int countMessageSearchResultsByForumID(long forumID, Query query) throws ForumNotFoundException, UserNotFoundException
ContentService
countMessageSearchResultsByForumID
in interface ContentService
forumID
- The id of the forum.query
- The query object.
ForumNotFoundException
- Thrown if the forum does not exist
UserNotFoundException
public long[] quickMessageSearch(java.lang.String query, int startIndex, int numResults)
ContentService
quickMessageSearch
in interface ContentService
query
- 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 ContentService
query
- 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 ContentService
categoryID
- 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 ContentService
categoryID
- The id of the category.query
- The query string.startIndex
- Starting point of results to grab.numResults
- Ending point of results to grab.
ForumCategoryNotFoundException
ForumMessageNotFoundException
public int countQuickMessageSearchResults(java.lang.String query)
ContentService
countQuickMessageSearchResults
in interface ContentService
query
- The query to find the number of results for.
public int countQuickMessageSearchResultsByCategoryID(long categoryID, java.lang.String query) throws ForumCategoryNotFoundException
ContentService
countQuickMessageSearchResultsByCategoryID
in interface ContentService
categoryID
- 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 ContentService
userID
- The id of the user.
UserNotFoundException
public ForumMessage[] getMessagesByUserID(long userID) throws UserNotFoundException
ContentService
getMessagesByUserID
in interface ContentService
userID
- 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 |