com.objectplanet.survey.event.events
Class LoadSurveyEvent

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

public class LoadSurveyEvent
extends AdminEvent

Represents an event that is fired when a survey is loaded from the database

Author:
Irina Brun

Nested Class Summary
 
Nested classes/interfaces inherited from class com.objectplanet.survey.event.Event
Event.NonVetoable
 
Constructor Summary
LoadSurveyEvent(IEventListener source)
          Creates a new event.
 
Method Summary
 int getCreationType()
          Sets the creation type attribute.
 long getSurveyId()
          Gets the surveyId attribute of the LoadSurveyEvent object
 java.lang.String getSurveyName()
           
 void setCreationType(int creationType)
          Sets the creation type attribute.
 void setSurveyId(long surveyId)
          Sets the surveyId attribute of the LoadSurveyEvent object
 void setSurveyName(java.lang.String surveyName)
           
 
Methods inherited from class com.objectplanet.survey.event.events.AdminEvent
getLogin, getUserId, setLogin, setUserId
 
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

LoadSurveyEvent

public LoadSurveyEvent(IEventListener source)
Creates a new event.

Parameters:
source - The event source
Method Detail

setSurveyId

public void setSurveyId(long surveyId)
Sets the surveyId attribute of the LoadSurveyEvent object

Parameters:
surveyId - The new surveyId value

getSurveyId

public long getSurveyId()
Gets the surveyId attribute of the LoadSurveyEvent object

Returns:
The surveyId value

getSurveyName

public java.lang.String getSurveyName()
Returns:
the surveyName

setSurveyName

public void setSurveyName(java.lang.String surveyName)
Parameters:
surveyName - the surveyName to set

setCreationType

public void setCreationType(int creationType)
Sets the creation type attribute. This indicates in what context the survey was created (normal, copy, import, etc)

Parameters:
creationType -

getCreationType

public int getCreationType()
Sets the creation type attribute. This indicates in what context the survey was created (normal, copy, import, etc)

Returns:
Returns the creationType.

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016