|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.quiz.business.QuestionGroupHome
public final class QuestionGroupHome
This class provides instances management methods (create, find, ...) for QuestionGroup objects
| Method Summary | |
|---|---|
static QuestionGroup |
create(int nIdQuiz,
QuestionGroup group,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an instance of the group class |
static QuestionGroup |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a group whose identifier is specified in parameter |
static int |
findLastByQuiz(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the id of last group in quiz |
static QuestionGroup |
getGroupByPosition(int nIdQuiz,
int nPosition,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a group by its quiz and position |
static List<QuestionGroup> |
getGroupsList(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of every group objects attached to a given quiz and returns them in a list |
static fr.paris.lutece.util.ReferenceList |
getGroupsReferenceList(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the list of Groups |
static boolean |
hasGroupDisplayScore(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a quiz has a free HTML group that will display the result of the quiz |
static void |
moveDownGroup(int nIdQuiz,
QuestionGroup group,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Move down a group |
static void |
moveUpGroup(int nIdQuiz,
QuestionGroup group,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Move up a group |
static void |
remove(int nIdQuiz,
int nGroupId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the group whose identifier is specified in parameter |
static void |
removeByQuiz(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a group for a given quiz |
static QuestionGroup |
update(QuestionGroup group,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the group which is specified in parameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static QuestionGroup create(int nIdQuiz,
QuestionGroup group,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The quiz IDgroup - The instance of the QuestionGroup which contains the
informations to storeplugin - the Plugin
public static QuestionGroup update(QuestionGroup group,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
group - The instance of the QuestionGroup which contains the data to
storeplugin - the Plugin
public static void remove(int nIdQuiz,
int nGroupId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The quiz IDnGroupId - The group Idplugin - the Plugin
public static QuestionGroup findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - The group primary keyplugin - the Plugin
public static List<QuestionGroup> getGroupsList(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The quiz IDplugin - the Plugin
public static QuestionGroup getGroupByPosition(int nIdQuiz,
int nPosition,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The quiz IDnPosition - The position of the required groupplugin - the Plugin
public static fr.paris.lutece.util.ReferenceList getGroupsReferenceList(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The quiz IDplugin - plugin Quiz
public static void removeByQuiz(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The quiz idplugin - The plugin
public static void moveUpGroup(int nIdQuiz,
QuestionGroup group,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The quiz idgroup - The groupplugin - The plugin
public static void moveDownGroup(int nIdQuiz,
QuestionGroup group,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The quiz idgroup - The groupplugin - The plugin
public static int findLastByQuiz(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - the quiz idplugin - the plugin
public static boolean hasGroupDisplayScore(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The id of the quizplugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||