com.objectplanet.survey.event.events
Class NewLiveRespondentEvent

java.lang.Object
  extended by com.objectplanet.survey.event.Event
      extended by com.objectplanet.survey.event.events.SurveyEvent
          extended by com.objectplanet.survey.event.events.NewLiveRespondentEvent

public class NewLiveRespondentEvent
extends SurveyEvent

Represents an event that is fired when a new live respondent is created. Only when a respondent actually responds through the survey module, the event is fired. If the respondent is created through the API, for example, this event will not be triggered.

Author:
Torgeir Lund
Created:
9. september 2002

Nested Class Summary
 
Nested classes/interfaces inherited from class com.objectplanet.survey.event.Event
Event.NonVetoable
 
Constructor Summary
NewLiveRespondentEvent(IEventListener source)
          Creates a new event.
 
Method Summary
 java.util.HashMap getResources()
          Gets the resources object.
 long getRespondentId()
          Gets the respondentId attribute of the RespondentCompleteEvent object
 void setResources(java.util.HashMap resources)
           
 void setRespondentId(long respondentId)
          Sets the respondentId attribute of the RespondentCompleteEvent object
 
Methods inherited from class com.objectplanet.survey.event.events.SurveyEvent
getSurveyId, setSurveyId
 
Methods inherited from class com.objectplanet.survey.event.Event
getSource, isVetoed, paramString, toString, veto
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewLiveRespondentEvent

public NewLiveRespondentEvent(IEventListener source)
Creates a new event.

Parameters:
source - The event source
Method Detail

setRespondentId

public void setRespondentId(long respondentId)
Sets the respondentId attribute of the RespondentCompleteEvent object

Parameters:
respondentId - The new respondentId value

getRespondentId

public long getRespondentId()
Gets the respondentId attribute of the RespondentCompleteEvent object

Returns:
The respondentId value

getResources

public java.util.HashMap getResources()
Gets the resources object. This will have access to the HttpRequest, if the respondent responded through the Web. For example:
HttpServletRequest request = event.getResources().get("HttpRequest");

Returns:
Returns the resources.

setResources

public void setResources(java.util.HashMap resources)
Parameters:
resources - The resources to set.

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016