|
Jive Forums API (5.5.8) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Question
Questions provide additional workflow around a thread; the thread creator asks a question and the question moves from unresolved to resolved as one or more answers are posted to the question. Note: Gold Edition feature only.
| Nested Class Summary | |
|---|---|
static class |
Question.State
Type-safe enumeration for the state a question is in. |
| Method Summary | |
|---|---|
void |
addHelpfulAnswer(ForumMessage message)
Marks the specified message as a helpful answer to this question. |
void |
deleteProperty(java.lang.String name)
Deletes an extended property. |
ForumMessage |
getCorrectAnswer()
Returns the correct answer, or null if no correct answer has been set. |
java.util.Date |
getCreationDate()
Returns the date this question was created. |
ForumThread |
getForumThread()
Returns the thread that the question is associated with. |
java.util.Collection |
getHelpfulAnswers()
Returns a read-only Collection of ForumMessage objects that have been marked as helpful. |
java.util.Collection |
getProperties(java.lang.String parentName)
Return all immediate children property values of a parent property as an unmodifiable Collection of String values. |
java.lang.String |
getProperty(java.lang.String name)
Returns an extended property of this object. |
java.util.Iterator |
getPropertyNames()
Returns an Iterator of String values for all the names of the properties. |
java.util.Date |
getResolutionDate()
Returns the date that question was resolved, or null if the question has not been resolved. |
Question.State |
getState()
Returns the resolution state of this question. |
User |
getUser()
Returns the user that created the question. |
boolean |
isCorrectAnswer(ForumMessage message)
Returns true if the specified message is the correct answer. |
boolean |
isHelpfulAnswer(ForumMessage message)
Returns true if the specified message has been marked as a helpful answer to this question. |
void |
setCorrectAnswer(ForumMessage message)
Sets the specified message as the correct answer. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets an extended property of object. |
void |
setState(Question.State state)
Sets the resolution state of this question. |
| Method Detail |
|---|
User getUser()
ForumThread getForumThread()
Question.State getState()
void setState(Question.State state)
throws UnauthorizedException
Question.State.open. Typically, this would happen
when the state has been set to Question.State.possibly_resolved
or Question.State.assumed_resolved but the user wants to
indicate that the question is still not resolved.
Question.State.possibly_resolved as long the state was previously
Question.State.open and there is at least one message posted
in the thread after the question creation date. Otherwise,
only a user with moderator or higher permission can set the state
to Question.State.possibly_resolved.
Question.State.assumed_resolved as long as the state
was not previously Question.State.resolved.
Question.State.resolved.Question.State.possibly_resolved when a new
message is posted in the thread if the current state is
Question.State.open.
Question.State.assumed_resolved when a support
agent posts an answer to the question that they believe is correct.
Or, when the user has abandoned the question and a moderator decides
that the question is answered.
Question.State.resolved
when a helpful answer is added to the question. Encourage the
question creator to set the state to Question.State.resolved when
a correct answer is set. Allow the user to set the state to
Question.State.resolved at any time; for example, if they solved
the problem themselves or independently of the forums.
state - the resolution state.
UnauthorizedException - if not allowed to change the resolution
state to the specified value.java.util.Date getCreationDate()
java.util.Date getResolutionDate()
Question.State.assumed_resolved or Question.State.resolved. The rules for the
resolution date are as follows:Question.State.assumed_resolved or Question.State.resolved.
void addHelpfulAnswer(ForumMessage message)
throws UnauthorizedException
message - the message.
UnauthorizedException - if not allowed to mark the message as a
helpful answer.
java.lang.IllegalArgumentException - if the message is not in the
thread assocated with this question.boolean isHelpfulAnswer(ForumMessage message)
message - the message.
java.util.Collection getHelpfulAnswers()
void setCorrectAnswer(ForumMessage message)
throws UnauthorizedException
message - the message.
UnauthorizedException - if not allowed to set the specified message
as the correct answer to this question.
java.lang.IllegalArgumentException - if the message is not in the
thread assocated with this question.boolean isCorrectAnswer(ForumMessage message)
message - the message.
ForumMessage getCorrectAnswer()
java.lang.String getProperty(java.lang.String name)
name - the name of the property to get.
java.util.Collection getProperties(java.lang.String parentName)
parentName - the name of the parent property to return the children for.
void setProperty(java.lang.String name,
java.lang.String value)
throws UnauthorizedException
name - the name of the property to set.value - the new value for the property.
UnauthorizedException - if not allowed to edit the message.
void deleteProperty(java.lang.String name)
throws UnauthorizedException
name does not exist, this method will do nothing.
name - the name of the property to delete.
UnauthorizedException - if not allowed to edit the message.java.util.Iterator getPropertyNames()
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||