|
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.proxy.QuestionManagerProxy
public class QuestionManagerProxy
Protection proxy for QuestionManager instances.
| Constructor Summary | |
|---|---|
QuestionManagerProxy(QuestionManager manager,
AuthToken authToken,
Permissions permissions)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuestionManagerProxy(QuestionManager manager,
AuthToken authToken,
Permissions permissions)
| Method Detail |
|---|
public int getHelpfulAnswersPerThread()
QuestionManager
getHelpfulAnswersPerThread in interface QuestionManager
public void setHelpfulAnswersPerThread(int count)
throws UnauthorizedException
QuestionManager
setHelpfulAnswersPerThread in interface QuestionManagercount - the number of helpful answers allowed per thread.
UnauthorizedException - if not a system administrator.
public Question getQuestion(ForumThread thread)
throws NotFoundException
QuestionManager
getQuestion in interface QuestionManagerthread - the thread.
NotFoundException - if the question for the thread could not be found.public boolean hasQuestion(ForumThread thread)
QuestionManager
hasQuestion in interface QuestionManagerthread - the thread.
public Question createQuestion(ForumThread thread)
throws UnauthorizedException
QuestionManager
createQuestion in interface QuestionManagerthread - the thread the question is associated with.
UnauthorizedException
public void deleteQuestion(Question question)
throws UnauthorizedException
QuestionManager
deleteQuestion in interface QuestionManagerquestion - the question.
UnauthorizedExceptionpublic int getQuestionCount()
QuestionManager
getQuestionCount in interface QuestionManagerpublic int getQuestionCount(QuestionFilter questionFilter)
QuestionManager
getQuestionCount in interface QuestionManagerquestionFilter - the question filter.
public int getQuestionCount(ForumCategory category)
QuestionManager
getQuestionCount in interface QuestionManagercategory - the category.
public int getQuestionCount(ForumCategory category,
QuestionFilter questionFilter)
QuestionManager
getQuestionCount in interface QuestionManagercategory - the category.questionFilter - the question filter.
public int getQuestionCount(Forum forum)
QuestionManager
getQuestionCount in interface QuestionManagerforum - the forum.
public int getQuestionCount(Forum forum,
QuestionFilter questionFilter)
QuestionManager
getQuestionCount in interface QuestionManagerforum - the forum.questionFilter - the question filter.
public java.util.Iterator getQuestions()
QuestionManager
getQuestions in interface QuestionManagerpublic java.util.Iterator getQuestions(QuestionFilter questionFilter)
QuestionManager
getQuestions in interface QuestionManagerquestionFilter - the question filter.
public java.util.Iterator getQuestions(ForumCategory category)
QuestionManager
getQuestions in interface QuestionManagercategory - the category.
public java.util.Iterator getQuestions(ForumCategory category,
QuestionFilter questionFilter)
QuestionManager
getQuestions in interface QuestionManagercategory - the category.questionFilter - the question filter.
public java.util.Iterator getQuestions(Forum forum)
QuestionManager
getQuestions in interface QuestionManagerforum - the forum.
public java.util.Iterator getQuestions(Forum forum,
QuestionFilter questionFilter)
QuestionManager
getQuestions in interface QuestionManagerforum - 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 | |||||||||