com.objectplanet.survey.event.events
Class SurveySaveEvent

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

public class SurveySaveEvent
extends SurveyEvent

Represents an event that is fired when a survey is saved by a respondent, right before the return message is sent. This message can be edited when subscribing to this event.

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
SurveySaveEvent(IEventListener source)
          Creates a new SurveySaveEvent.
 
Method Summary
 long getRespondentId()
          Gets the respondentId attribute of the SurveySaveEvent object
 java.lang.String getSurveyReturnMessage()
          Gets the survey return message, which will be emailed to the respondent.
 void setRespondentId(long respondentId)
          Sets the respondentId attribute of the SurveySaveEvent object
 void setSurveyReturnMessage(java.lang.String surveyReturnMessage)
          Sets the message that will be sent to the respondent when the survey is sent.
 
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

SurveySaveEvent

public SurveySaveEvent(IEventListener source)
Creates a new SurveySaveEvent.

Parameters:
source - The event source
Method Detail

setRespondentId

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

Parameters:
respondentId - The new respondentId value

getRespondentId

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

Returns:
The respondentId value

setSurveyReturnMessage

public void setSurveyReturnMessage(java.lang.String surveyReturnMessage)
Sets the message that will be sent to the respondent when the survey is sent. The message should contain a valid return link. The default message with a valid link is already set; use the getSurveyReturnMessage()

Parameters:
surveyReturnMessage - The new surveyReturnMessage value

getSurveyReturnMessage

public java.lang.String getSurveyReturnMessage()
Gets the survey return message, which will be emailed to the respondent.

Returns:
The new survey return message.

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016