com.objectplanet.survey.event.events
Class PostDeleteRespondentsEvent

java.lang.Object
  extended by com.objectplanet.survey.event.Event
      extended by com.objectplanet.survey.event.events.AdminEvent
          extended by com.objectplanet.survey.event.events.PostDeleteRespondentsEvent

public class PostDeleteRespondentsEvent
extends AdminEvent

Represents an event that is fired right after survey respondents are deleted.

Author:
Irina Brun

Nested Class Summary
 
Nested classes/interfaces inherited from class com.objectplanet.survey.event.Event
Event.NonVetoable
 
Constructor Summary
PostDeleteRespondentsEvent(IEventListener source)
          Creates a new event.
 
Method Summary
 int getDeletionType()
          One of the constants defined in Constants
 long getSurveyId()
           
 long getTrashedSurveyId()
           
 long getUserId()
          Gets the userId of the user who performed this action.
 void setDeletionType(int deletionType)
          One of the constants defined in Constants
 void setSurveyId(long surveyId)
           
 void setTrashedSurveyId(long trashedSurveyId)
           
 void setUserId(long userId)
          Sets the userId of the user who performed this action.
 
Methods inherited from class com.objectplanet.survey.event.events.AdminEvent
getLogin, setLogin
 
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

PostDeleteRespondentsEvent

public PostDeleteRespondentsEvent(IEventListener source)
Creates a new event.

Parameters:
source - The event source
Method Detail

getDeletionType

public int getDeletionType()
One of the constants defined in Constants

Returns:
Returns the deletionType.

getSurveyId

public long getSurveyId()
Returns:
Returns the surveyId.

getUserId

public long getUserId()
Description copied from class: AdminEvent
Gets the userId of the user who performed this action.

Overrides:
getUserId in class AdminEvent
Returns:
Returns the userId.

setDeletionType

public void setDeletionType(int deletionType)
One of the constants defined in Constants

Parameters:
deletionType - The deletionType to set.

setSurveyId

public void setSurveyId(long surveyId)
Parameters:
surveyId - The surveyId to set.

setUserId

public void setUserId(long userId)
Description copied from class: AdminEvent
Sets the userId of the user who performed this action.

Overrides:
setUserId in class AdminEvent
Parameters:
userId - The userId to set.

getTrashedSurveyId

public long getTrashedSurveyId()
Returns:
the trashedSurveyId

setTrashedSurveyId

public void setTrashedSurveyId(long trashedSurveyId)
Parameters:
trashedSurveyId - the trashedSurveyId to set

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016