Jive API (3.0.13) Core Javadocs

com.jivesoftware.community.event
Class QuestionEvent

java.lang.Object
  extended by 
      extended by com.jivesoftware.community.event.QuestionEvent

public class QuestionEvent
extends

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_SETmessageID (Long) -- the ID of the Message that was added or removed as a correct answer.
QuestionEvent.Type.HELPFUL_ANSWER_ADDEDmessageID (Long) -- the ID of the Message that was added or removed as a helpful answer.
QuestionEvent.Type.PROPERTY_MODIFIEDNone


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

QuestionEvent

public QuestionEvent()

QuestionEvent

public QuestionEvent(QuestionEvent.Type eventType,
                     Question question,
                     Map<String,? extends Object> params)
Creates a new question event.

Parameters:
eventType - the type of the question event.
question - the question the event corresponds to.
params - parameters corresponding to the event.

Jive Product Page

Copyright © 1999-2007 Jive Software.