|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QuestionManager
Manages questions.
| Method Summary | |
|---|---|
Question |
createQuestion(ForumThread thread)
Creates a new question. |
void |
deleteQuestion(Question question)
Deletes an existing question. |
int |
getHelpfulAnswersPerThread()
Returns the number of helpful answers allowed per question. |
Question |
getQuestion(ForumThread thread)
Returns the question associated with a thread. |
int |
getQuestionCount()
Returns the count of all questions in the system. |
int |
getQuestionCount(Forum forum)
Returns the count of all questions in a forum. |
int |
getQuestionCount(ForumCategory category)
Returns the count of all questions in a category. |
int |
getQuestionCount(ForumCategory category,
QuestionFilter questionFilter)
Returns the count of questions in a category that pass the specified question filter. |
int |
getQuestionCount(Forum forum,
QuestionFilter questionFilter)
Returns the count of questions in a forum that pass the specified question filter. |
int |
getQuestionCount(QuestionFilter questionFilter)
Returns the count of all questions in the system that pass the specified question filter. |
java.util.Iterator |
getQuestions()
Returns an iterator for all questions in the system. |
java.util.Iterator |
getQuestions(Forum forum)
Returns an iterator for all questions in a forum. |
java.util.Iterator |
getQuestions(ForumCategory category)
Returns an iterator for all questions in a category. |
java.util.Iterator |
getQuestions(ForumCategory category,
QuestionFilter questionFilter)
Returns an iterator for all questions in a categetory that pass the specified question filter. |
java.util.Iterator |
getQuestions(Forum forum,
QuestionFilter questionFilter)
Returns an iterator for all questions in a forum that pass the specified question filter. |
java.util.Iterator |
getQuestions(QuestionFilter questionFilter)
Returns an iterator for all questions in the system that pass the specified question filter. |
boolean |
hasQuestion(ForumThread thread)
Returns true if the thread has a question associated with it. |
void |
setHelpfulAnswersPerThread(int count)
Sets the number of helpful answers allowed per question. |
| Method Detail |
|---|
int getHelpfulAnswersPerThread()
void setHelpfulAnswersPerThread(int count)
throws UnauthorizedException
count - the number of helpful answers allowed per thread.
UnauthorizedException - if not a system administrator.
Question getQuestion(ForumThread thread)
throws NotFoundException
thread - the thread.
NotFoundException - if the question for the thread could not be found.boolean hasQuestion(ForumThread thread)
thread - the thread.
Question createQuestion(ForumThread thread)
throws UnauthorizedException
thread - the thread the question is associated with.
UnauthorizedException
void deleteQuestion(Question question)
throws UnauthorizedException
question - the question.
UnauthorizedExceptionint getQuestionCount()
int getQuestionCount(QuestionFilter questionFilter)
questionFilter - the question filter.
int getQuestionCount(ForumCategory category)
category - the category.
int getQuestionCount(ForumCategory category,
QuestionFilter questionFilter)
category - the category.questionFilter - the question filter.
int getQuestionCount(Forum forum)
forum - the forum.
int getQuestionCount(Forum forum,
QuestionFilter questionFilter)
forum - the forum.questionFilter - the question filter.
java.util.Iterator getQuestions()
java.util.Iterator getQuestions(QuestionFilter questionFilter)
questionFilter - the question filter.
java.util.Iterator getQuestions(ForumCategory category)
category - the category.
java.util.Iterator getQuestions(ForumCategory category,
QuestionFilter questionFilter)
category - the category.questionFilter - the question filter.
java.util.Iterator getQuestions(Forum forum)
forum - the forum.
java.util.Iterator getQuestions(Forum forum,
QuestionFilter questionFilter)
forum - the forum.questionFilter - the question filter.
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||