|
Jive API (3.0.13) 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.
| 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. |
ForumMessage |
getCorrectAnswer()
Returns the correct answer, or null if no correct answer has been set. |
Date |
getCreationDate()
Returns the date this question was created. |
ForumThread |
getForumThread()
Returns the thread that the question is associated with. |
Collection<ForumMessage> |
getHelpfulAnswers()
Returns a read-only Collection of ForumMessage objects that have been marked as helpful. |
Map<String,String> |
getProperties()
Retrieve a map of all the extended properties for the question. |
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 |
isAssumedResolved()
Determines if the state is Question.State.assumed_resolved |
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. |
boolean |
isOpen()
Determines if the state is Question.State.open |
boolean |
isPossiblyResolved()
Determines if the state is Question.State.possibly_resolved |
boolean |
isResolved()
Determines if the state is Question.State.resolved |
void |
setAssumedResolved()
Sets the state to Question.State.assumed_resolved |
void |
setCorrectAnswer(ForumMessage message)
Sets the specified message as the correct answer. |
void |
setOpen()
Sets the state to Question.State.open |
void |
setPossiblyResolved()
Sets the state to Question.State.possibly_resolved |
void |
setResolved()
Sets the state to Question.State.resolved |
void |
setState(Question.State state)
Sets the resolution state of this question. |
| Methods inherited from interface com.jivesoftware.community.JiveObject |
|---|
getID, getObjectType |
| 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 community.
state - the resolution state.
UnauthorizedException - if not allowed to change the resolution
state to the specified value.boolean isResolved()
Question.State.resolved
Question.State.resolved, false otherwise.boolean isAssumedResolved()
Question.State.assumed_resolved
Question.State.assumed_resolved, false otherwise.boolean isPossiblyResolved()
Question.State.possibly_resolved
Question.State.possibly_resolved, false otherwise.boolean isOpen()
Question.State.open
Question.State.open, false otherwise.void setResolved()
Question.State.resolved
void setAssumedResolved()
Question.State.assumed_resolved
void setPossiblyResolved()
Question.State.possibly_resolved
void setOpen()
Question.State.open
Date getCreationDate()
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.
IllegalArgumentException - if the message is not in the
thread assocated with this question.boolean isHelpfulAnswer(ForumMessage message)
message - the message.
Collection<ForumMessage> 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.
IllegalArgumentException - if the message is not in the
thread assocated with this question.boolean isCorrectAnswer(ForumMessage message)
message - the message.
ForumMessage getCorrectAnswer()
Map<String,String> getProperties()
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||