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

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

public class QuizProfilHome
extends Object


Method Summary
static QuizProfil create(QuizProfil profil, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of an article Quiz profil
static Collection<QuizProfil> findAll(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all profils for a quiz
static QuizProfil findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load a profil with its id
static String getName(int nIdProfil, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return the name of a profil
static void remove(int nIdProfil, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
static void removeProfilsByQuiz(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
static fr.paris.lutece.util.ReferenceList selectQuizProfilsReferenceList(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select the list of profile
static void update(QuizProfil quizProfil, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static QuizProfil create(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
Returns:
The instance of the Quiz profil which has been created

selectQuizProfilsReferenceList

public static 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

findByPrimaryKey

public static QuizProfil findByPrimaryKey(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

getName

public static 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

findAll

public static 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

remove

public static void remove(int nIdProfil,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)

update

public static void update(QuizProfil quizProfil,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)

removeProfilsByQuiz

public static void removeProfilsByQuiz(int nIdQuiz,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)


Copyright © 2013 Mairie de Paris. All Rights Reserved.