com.objectplanet.survey.event.events
Class NewLiveRespondentEvent
java.lang.Object
com.objectplanet.survey.event.Event
com.objectplanet.survey.event.events.SurveyEvent
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
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NewLiveRespondentEvent
public NewLiveRespondentEvent(IEventListener source)
- Creates a new event.
- Parameters:
source
- The event source
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.
Built on December 20 2016