com.objectplanet.survey.event.events
Class QuotasReachedEvent

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

public class QuotasReachedEvent
extends SurveyEvent

Represents an event that is fired when a respondent is prevented from continuing the survey because one or more quotas are reached. The respondent's response will be deleted. This event is triggered before the respondent is deleted.

Author:
Torgeir Lund
Created:
May 13, 2013

Nested Class Summary
 
Nested classes/interfaces inherited from class com.objectplanet.survey.event.Event
Event.NonVetoable
 
Constructor Summary
QuotasReachedEvent(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)
          Sets the resources Object.
 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

QuotasReachedEvent

public QuotasReachedEvent(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

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

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016