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

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

public final class QuizProfileHome
extends Object

Home for profiles


Method Summary
static QuizProfile create(QuizProfile profile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of an article Quiz profile
static Collection<QuizProfile> findAll(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all profiles for a quiz
static QuizProfile findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load a profile with its id
static String getName(int nIdProfile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return the name of a profile
static void remove(int nIdProfile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove a profile
static void removeProfilesByQuiz(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove every profiles associated with a given quiz
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(QuizProfile quizProfile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update a profile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static QuizProfile create(QuizProfile profile,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of an article Quiz profile

Parameters:
profile - An instance of the Quiz profile which contains the informations to store
plugin - the plugin
Returns:
The instance of the Quiz profile 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:
profiles list

findByPrimaryKey

public static QuizProfile findByPrimaryKey(int nKey,
                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load a profile with its id

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

getName

public static String getName(int nIdProfile,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the name of a profile

Parameters:
nIdProfile - The profile ID
plugin - plugin Quiz
Returns:
name of the corresponding profile

findAll

public static Collection<QuizProfile> findAll(int nIdQuiz,
                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all profiles for a quiz

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

remove

public static void remove(int nIdProfile,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a profile

Parameters:
nIdProfile - The id of the profile to remove
plugin - The plugin

update

public static void update(QuizProfile quizProfile,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a profile

Parameters:
quizProfile - The profile to update
plugin - The plugin

removeProfilesByQuiz

public static void removeProfilesByQuiz(int nIdQuiz,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove every profiles associated with a given quiz

Parameters:
nIdQuiz - The id of the quiz
plugin - The plugin


Copyright © 2014 Mairie de Paris. All Rights Reserved.