public class RandService extends Object
| Constructor and Description |
|---|
RandService() |
| Modifier and Type | Method and Description |
|---|---|
QuizParticipant |
create(QuizParticipant quizParticipant,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of an article QuizParticipant
|
List<QuizParticipant> |
findAllValidByQuizId(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns QuizParticipant list
|
QuizParticipant |
findByIdentifiantAndQuizId(String identifiant,
int idQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return a participant by this identifiant and by quiz
|
void |
removeParticipantsByQuiz(int nQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the QuizParticipant instance whose identifier is specified in
parameter
|
public QuizParticipant create(QuizParticipant quizParticipant, fr.paris.lutece.portal.service.plugin.Plugin plugin)
quizParticipant - An instance of the QuizParticipant which contains
the informations to storeplugin - the pluginpublic void removeParticipantsByQuiz(int nQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nQuiz - The identifier of the article QuizParticipant to delete in
the databaseplugin - the pluginpublic List<QuizParticipant> findAllValidByQuizId(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the pluginnIdQuiz - The identifier of the article Quiz to find it in the
databasepublic QuizParticipant findByIdentifiantAndQuizId(String identifiant, int idQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
identifiant - the participant identifiantidQuiz - the quiz idplugin - the pluginCopyright © 2019 City of Paris. All rights reserved.