com.objectplanet.survey.event.events
Class NewSurveyEvent

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

public class NewSurveyEvent
extends AdminEvent

Represents an event that is fired when a new Survey is created.

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
NewSurveyEvent(IEventListener source)
          Creates a new event.
 
Method Summary
 int getCreationType()
          Sets the creation type attribute.
 long getSurveyId()
          Gets the surveyId attribute of the NewSurveyEvent object
 java.lang.String getSurveyName()
           
 boolean isQuestionLibrary()
           
 void setCreationType(int creationType)
          Sets the creation type attribute.
 void setQuestionLibrary(boolean isQuestionLibrary)
           
 void setSurveyId(long surveyId)
          Sets the surveyId attribute of the NewSurveyEvent 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

NewSurveyEvent

public NewSurveyEvent(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 NewSurveyEvent object

Parameters:
surveyId - The new surveyId value

getSurveyId

public long getSurveyId()
Gets the surveyId attribute of the NewSurveyEvent 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.

isQuestionLibrary

public boolean isQuestionLibrary()
Returns:
if survey is a library, true is returned

setQuestionLibrary

public void setQuestionLibrary(boolean isQuestionLibrary)
Parameters:
isQuestionLibrary - set to true, if the survey is a library.

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016