|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.event.QuestionEvent
public class QuestionEvent
A class for Question events. This class will be passed to EventListeners
whenever a question event is fired and contains all the pertinent information to the event.
Certain event types will populate the params Map with additional objects as outlined below:
| Event Type | Extra Params |
|---|---|
QuestionEvent.Type.ADDED | None |
QuestionEvent.Type.DELETED | None |
QuestionEvent.Type.STATE_MODIFIED | oldState (Question.State) -- the resolution state that the Question was previously in. |
QuestionEvent.Type.CORRECT_ANSWER_SET | messageID (Long) -- the ID of the Message that was added or removed as a correct answer. |
QuestionEvent.Type.HELPFUL_ANSWER_ADDED | messageID (Long) -- the ID of the Message that was added or removed as a helpful answer. |
QuestionEvent.Type.PROPERTY_MODIFIED | None |
| Nested Class Summary | |
|---|---|
static class |
QuestionEvent.Type
|
| Constructor Summary | |
|---|---|
QuestionEvent()
|
|
QuestionEvent(QuestionEvent.Type eventType,
Question question,
Map<String,? extends Object> params)
Creates a new question event. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuestionEvent()
public QuestionEvent(QuestionEvent.Type eventType,
Question question,
Map<String,? extends Object> params)
eventType - the type of the question event.question - the question the event corresponds to.params - parameters corresponding to the event.
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||