public class Quiz extends Object
| Constructor and Description |
|---|
Quiz()
Creates a new Quiz object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveCaptcha()
Gest captcha status
|
int |
getActiveRequirement()
Gets the requirement status
|
String |
getCgu()
Gets the CGU
|
String |
getConclusion()
Returns the conclusion of this quiz.
|
Date |
getDateBeginDisponibility()
Return the date begin of the publication
|
Timestamp |
getDateCreation() |
Date |
getDateEndDisponibility() |
boolean |
getDisplayResultAfterEachStep()
Check if results of the quiz should be displayed after each step or at
the end of the quiz
|
boolean |
getDisplayStepByStep()
Check if this quiz should be displayed step by step or in a block
|
int |
getIdQuiz()
Returns the identifier of this Quiz.
|
byte[] |
getImg()
Returns the Value
|
String |
getIntroduction()
Returns the name of this quiz.
|
String |
getName()
Returns the name of this quiz.
|
Collection<QuizQuestion> |
getQuestions()
Returns a collection of questions
|
String |
getTypeQuiz() |
boolean |
isEnabled()
Returns The boolean status of quiz
|
void |
setActiveCaptcha(int nCaptcha)
Sets captcha status
|
void |
setActiveRequirement(int nRequirement)
Sets the requirement status
|
void |
setCgu(String strCgu)
Sets CGU
|
void |
setConclusion(String strConclusion)
Sets the conclusion of the quiz to the specified string
|
void |
setDateBeginDisponibility(Date dateBeginDisponibility)
Define the date begin of the publication
|
void |
setDateCreation(Timestamp dateCreation)
set the creation date
|
void |
setDateEndDisponibility(Date dateEndDisponibility)
set the date of end disponibility
|
void |
setDisplayResultAfterEachStep(boolean bDisplayResultAfterEachStep)
Display results of the quiz after each step or at the end of the quiz
|
void |
setDisplayStepByStep(boolean bDisplayStepByStep)
Set the display method of this quiz
|
void |
setIdQuiz(int nIdQuiz)
Sets the identifier of the quiz to the specified integer.
|
void |
setIntroduction(String strIntroduction)
Sets the introduction of the quiz to the specified string
|
void |
setName(String strName)
Sets the name of the quiz to the specified string
|
void |
setQuestions(Collection<QuizQuestion> questions)
Sets the list of questions on a Collection
|
void |
setStatus(int status)
Set The Boolean status
|
void |
setTypeQuiz(String strTypeQuiz) |
void |
setValue(byte[] strImg)
Sets the Value
|
public int getIdQuiz()
public void setIdQuiz(int nIdQuiz)
nIdQuiz - The quiz identifierpublic String getName()
public void setName(String strName)
strName - The new namepublic boolean isEnabled()
public void setStatus(int status)
status - The Statuspublic Collection<QuizQuestion> getQuestions()
public void setQuestions(Collection<QuizQuestion> questions)
questions - The Collection of questionspublic String getIntroduction()
public void setIntroduction(String strIntroduction)
strIntroduction - The new namepublic String getConclusion()
public void setConclusion(String strConclusion)
strConclusion - The conclusionpublic String getCgu()
public void setCgu(String strCgu)
strCgu - The CGU to setpublic void setDateBeginDisponibility(Date dateBeginDisponibility)
dateBeginDisponibility - The date begin of the publicationpublic Date getDateBeginDisponibility()
public Date getDateEndDisponibility()
public void setDateEndDisponibility(Date dateEndDisponibility)
dateEndDisponibility - the date of end disponibilitypublic Timestamp getDateCreation()
public void setDateCreation(Timestamp dateCreation)
dateCreation - the creation datepublic byte[] getImg()
public void setValue(byte[] strImg)
strImg - The Valuepublic int getActiveCaptcha()
public void setActiveCaptcha(int nCaptcha)
nCaptcha - The captcha statuspublic int getActiveRequirement()
public void setActiveRequirement(int nRequirement)
nRequirement - the requirement statuspublic String getTypeQuiz()
public void setTypeQuiz(String strTypeQuiz)
strTypeQuiz - the _strTypeQuiz to setpublic boolean getDisplayStepByStep()
public void setDisplayStepByStep(boolean bDisplayStepByStep)
bDisplayStepByStep - True if this quiz should be displayed step by
step, false if it should be displayed in a blockpublic boolean getDisplayResultAfterEachStep()
public void setDisplayResultAfterEachStep(boolean bDisplayResultAfterEachStep)
bDisplayResultAfterEachStep - True if results of the quiz should be
displayed after each step or at the end of the quizCopyright © 2015 City of Paris. All rights reserved.