com.objectplanet.survey.event.events
Class PreSurveyPageEvent

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.PreSurveyPageEvent

public class PreSurveyPageEvent
extends SurveyEvent

Represents an event that is fired before a survey page is displayed/accessed.

Author:
Torgeir Lund
Created:
16 November 2005

Nested Class Summary
 
Nested classes/interfaces inherited from class com.objectplanet.survey.event.Event
Event.NonVetoable
 
Constructor Summary
PreSurveyPageEvent(IEventListener source)
          Creates a new event.
 
Method Summary
 java.util.HashMap getResources()
          Gets the Resources object.
 long getRespondentId()
          Returns the respondent id for this event.
 void setResources(java.util.HashMap resources)
          Sets the resources Object.
 void setRespondentId(long respondentId)
          Sets the value of respondentId.
 
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

PreSurveyPageEvent

public PreSurveyPageEvent(IEventListener source)
Creates a new event.

Parameters:
source - The event source
Method Detail

setResources

public void setResources(java.util.HashMap resources)
Sets the resources Object.

Parameters:
data.getRespondentId() - The new respondentId value

getResources

public java.util.HashMap getResources()
Gets the Resources object. This will contain the HttpServletRequest object, and must be retrieved like this:

HttpServletRequest request = (HttpServletRequest) preSurveyPageEvent.getResources().get("HttpRequest");

Returns:
The respondentId value

setRespondentId

public void setRespondentId(long respondentId)
Sets the value of respondentId.

Parameters:
respondentId - The new value for respondentId.

getRespondentId

public long getRespondentId()
Returns the respondent id for this event.

Returns:
the respondent id value.

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016