com.objectplanet.survey.event.events
Class RespondentStoreEvent

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

public class RespondentStoreEvent
extends SurveyEvent

Represents an event that is fired after a respondent has been partly or fully stored

Author:
Rikard, Torgeir, Ina, Irina

Nested Class Summary
 
Nested classes/interfaces inherited from class com.objectplanet.survey.event.Event
Event.NonVetoable
 
Constructor Summary
RespondentStoreEvent(IEventListener source)
          Creates a new event.
 
Method Summary
 long getRespondentId()
           
 boolean isInitialStore()
          True if respondent didn't exist in the database before
 void setInitialStore(boolean isInitialStore)
          True if respondent didn't exist in the database before
 void setRespondentId(long respondentId)
           
 void setWasFullyStored(boolean wasFullyStored)
           
 boolean wasFullyStored()
           
 
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

RespondentStoreEvent

public RespondentStoreEvent(IEventListener source)
Creates a new event.

Parameters:
source - The event source
Method Detail

isInitialStore

public boolean isInitialStore()
True if respondent didn't exist in the database before

Returns:
Returns the isInitialStore.

setInitialStore

public void setInitialStore(boolean isInitialStore)
True if respondent didn't exist in the database before

Parameters:
isInitialStore - The isInitialStore to set.

wasFullyStored

public boolean wasFullyStored()
Returns:
Returns the wasFullyStored.

setWasFullyStored

public void setWasFullyStored(boolean wasFullyStored)
Parameters:
wasFullyStored - The wasFullyStored to set.

getRespondentId

public long getRespondentId()
Returns:
Returns the respondentId.

setRespondentId

public void setRespondentId(long respondentId)
Parameters:
respondentId - The respondentId to set.

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016