fr.paris.lutece.plugins.quiz.business
Interface IQuizProfilDAO

All Known Implementing Classes:
QuizProfilDAO

public interface IQuizProfilDAO


Method Summary
 void delete(int nIdProfil, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a profil
 void deleteByQuiz(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete profils linked to a quiz
 Collection<QuizProfil> findAll(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all profils for a quiz
 String getName(int nIdProfil, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return the name of a profil
 void insert(QuizProfil profil, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of an article Quiz profil
 QuizProfil load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load a profil with its id
 fr.paris.lutece.util.ReferenceList selectQuizProfilsReferenceList(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select the list of profile
 void store(QuizProfil quizProfil, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Updates of the QuizProfil instance specified in parameter
 

Method Detail

insert

void insert(QuizProfil profil,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of an article Quiz profil

Parameters:
profil - An instance of the Quiz profil which contains the informations to store
plugin - the plugin

selectQuizProfilsReferenceList

fr.paris.lutece.util.ReferenceList selectQuizProfilsReferenceList(int nIdQuiz,
                                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the list of profile

Parameters:
nIdQuiz - The quiz ID
plugin - plugin Quiz
Returns:
profils list

getName

String getName(int nIdProfil,
               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the name of a profil

Parameters:
nIdProfil - The profil ID
plugin - plugin Quiz
Returns:
name of the corresponding profil

load

QuizProfil load(int nKey,
                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load a profil with its id

Parameters:
nKey - the id to load
plugin - plugin Quiz
Returns:
corresponding profil

findAll

Collection<QuizProfil> findAll(int nIdQuiz,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all profils for a quiz

Parameters:
nIdQuiz - the id quiz
plugin - plugin Quiz
Returns:
profils list

delete

void delete(int nIdProfil,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a profil

Parameters:
nIdProfil - the profil id
plugin - plugin Quiz

store

void store(QuizProfil quizProfil,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates of the QuizProfil instance specified in parameter

Parameters:
quizProfil - An instance of the QuizProfil which contains the informations to store
plugin - the plugin

deleteByQuiz

void deleteByQuiz(int nIdQuiz,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete profils linked to a quiz

Parameters:
nIdQuiz - the quiz id
plugin - plugin Quiz


Copyright © 2013 Mairie de Paris. All Rights Reserved.