Clearspace API (2.5.22) Core Javadocs

com.jivesoftware.community.event
Interface QuestionListener


public interface QuestionListener

A QuestionListener gets notified anytime a question event is fired. Concrete implementations of this class must have a zero argument constructor.


Method Summary
 void correctAnswerAdded(QuestionEvent event)
          Fired when a correct answer has been added to the question.
 void helpfulAnswerAdded(QuestionEvent event)
          Fired when a correct answer has been added to the question.
 void propertyModified(QuestionEvent event)
          Fired when an extended property of a question is added, modified, or deleted.
 void questionAdded(QuestionEvent event)
          Fired when a question has been added to the system.
 void questionDeleted(QuestionEvent event)
          Fired when a question is about to be deleted from the system.
 void questionStateModified(QuestionEvent event)
          Fired when the resolution state of a question changes.
 

Method Detail

questionAdded

void questionAdded(QuestionEvent event)
Fired when a question has been added to the system.

Parameters:
event - the event object.

questionDeleted

void questionDeleted(QuestionEvent event)
Fired when a question is about to be deleted from the system. This event will only be fired when an individual question is deleted; it is not fired when the thread or community that contains the question is deleted. Because various code pieces may depend on this event for performing cleanup tasks, it's guaranteed that this method will be called before the question is deleted from the database.

Parameters:
event - the event object.

questionStateModified

void questionStateModified(QuestionEvent event)
Fired when the resolution state of a question changes.

Parameters:
event - the event object.

correctAnswerAdded

void correctAnswerAdded(QuestionEvent event)
Fired when a correct answer has been added to the question.

Parameters:
event - the event object.

helpfulAnswerAdded

void helpfulAnswerAdded(QuestionEvent event)
Fired when a correct answer has been added to the question.

Parameters:
event - the event object.

propertyModified

void propertyModified(QuestionEvent event)
Fired when an extended property of a question is added, modified, or deleted.

Parameters:
event - the event object.

Clearspace Project Page

Copyright © 1999-2007 Jive Software.