fr.paris.lutece.plugins.quiz.business
Class Quiz

java.lang.Object
  extended by fr.paris.lutece.plugins.quiz.business.Quiz

public class Quiz
extends java.lang.Object

This class represents business object Quiz


Constructor Summary
Quiz()
          Creates a new Quiz object.
 
Method Summary
 int getActiveCaptcha()
          Gest captcha status
 int getActiveRequirement()
          Gets the requirement status
 java.lang.String getCgu()
          Gets the CGU
 java.lang.String getConclusion()
          Returns the conclusion of this quiz.
 java.util.Date getDateBeginDisponibility()
          Return the date begin of the publication
 java.sql.Timestamp getDateCreation()
           
 java.util.Date getDateEndDisponibility()
           
 int getIdQuiz()
          Returns the identifier of this Quiz.
 byte[] getImg()
          Returns the Value
 java.lang.String getIntroduction()
          Returns the name of this quiz.
 java.lang.String getName()
          Returns the name of this quiz.
 java.util.Collection getQuestions()
          Returns a collection of questions
 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(java.lang.String strCgu)
          Sets CGU
 void setConclusion(java.lang.String strConclusion)
          Sets the conclusion of the quiz to the specified string
 void setDateBeginDisponibility(java.util.Date dateBeginDisponibility)
          Define the date begin of the publication
 void setDateCreation(java.sql.Timestamp dateCreation)
          set the creation date
 void setDateEndDisponibility(java.util.Date dateEndDisponibility)
          set the date of end disponibility
 void setIdQuiz(int nIdQuiz)
          Sets the identifier of the quiz to the specified integer.
 void setIntroduction(java.lang.String strIntroduction)
          Sets the introduction of the quiz to the specified string
 void setName(java.lang.String strName)
          Sets the name of the quiz to the specified string
 void setQuestions(java.util.Collection questions)
          Sets the list of questions on a Collection
 void setStatus(int status)
          Set The Boolean status
 void setValue(byte[] strImg)
          Sets the Value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Quiz

public Quiz()
Creates a new Quiz object.

Method Detail

getIdQuiz

public int getIdQuiz()
Returns the identifier of this Quiz.

Returns:
_nIdQuiz The Quiz identifier

setIdQuiz

public void setIdQuiz(int nIdQuiz)
Sets the identifier of the quiz to the specified integer.

Parameters:
nIdQuiz - The quiz identifier

getName

public java.lang.String getName()
Returns the name of this quiz.

Returns:
_strName The name of the quiz

setName

public void setName(java.lang.String strName)
Sets the name of the quiz to the specified string

Parameters:
strName - The new name

isEnabled

public boolean isEnabled()
Returns The boolean status of quiz

Returns:
_bIsEnabled The boolean

setStatus

public void setStatus(int status)
Set The Boolean status

Parameters:
status - The Status

getQuestions

public java.util.Collection getQuestions()
Returns a collection of questions

Returns:
_questions The list of questions

setQuestions

public void setQuestions(java.util.Collection questions)
Sets the list of questions on a Collection

Parameters:
questions - The Collection of quetsions

getIntroduction

public java.lang.String getIntroduction()
Returns the name of this quiz.

Returns:
_strName The name of the quiz

setIntroduction

public void setIntroduction(java.lang.String strIntroduction)
Sets the introduction of the quiz to the specified string

Parameters:
strIntroduction - The new name

getConclusion

public java.lang.String getConclusion()
Returns the conclusion of this quiz.

Returns:
The conclusion of the quiz

setConclusion

public void setConclusion(java.lang.String strConclusion)
Sets the conclusion of the quiz to the specified string

Parameters:
strConclusion - The conclusion

getCgu

public java.lang.String getCgu()
Gets the CGU

Returns:
the CGU

setCgu

public void setCgu(java.lang.String strCgu)
Sets CGU

Parameters:
strCgu - The CGU to set

setDateBeginDisponibility

public void setDateBeginDisponibility(java.util.Date dateBeginDisponibility)
Define the date begin of the publication

Parameters:
dateBeginDisponibility - The date begin of the publication

getDateBeginDisponibility

public java.util.Date getDateBeginDisponibility()
Return the date begin of the publication

Returns:
The date begin of the publication

getDateEndDisponibility

public java.util.Date getDateEndDisponibility()
Returns:
the date of end diosponibility

setDateEndDisponibility

public void setDateEndDisponibility(java.util.Date dateEndDisponibility)
set the date of end disponibility

Parameters:
dateEndDisponibility - the date of end disponibility

getDateCreation

public java.sql.Timestamp getDateCreation()
Returns:
the creation date

setDateCreation

public void setDateCreation(java.sql.Timestamp dateCreation)
set the creation date

Parameters:
dateCreation - the creation date

getImg

public byte[] getImg()
Returns the Value

Returns:
The Value

setValue

public void setValue(byte[] strImg)
Sets the Value

Parameters:
strImg - The Value

getActiveCaptcha

public int getActiveCaptcha()
Gest captcha status

Returns:
true if active

setActiveCaptcha

public void setActiveCaptcha(int nCaptcha)
Sets captcha status

Parameters:
nCaptcha - The captcha status

getActiveRequirement

public int getActiveRequirement()
Gets the requirement status

Returns:
the requirement status

setActiveRequirement

public void setActiveRequirement(int nRequirement)
Sets the requirement status

Parameters:
nRequirement - the requirement status


Copyright © 2011 Mairie de Paris. All Rights Reserved.