com.objectplanet.survey.event.events
Class PreDeleteRespondentsEvent

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

public class PreDeleteRespondentsEvent
extends AdminEvent

Represents an event that is fired just before 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
PreDeleteRespondentsEvent(IEventListener source)
          Creates a new event.
 
Method Summary
 int getDeletionType()
          One of the constants defined in Constants
 long getSurveyId()
           
 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 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

PreDeleteRespondentsEvent

public PreDeleteRespondentsEvent(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.

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016