fr.paris.lutece.plugins.quiz.modules.jeuxconcours.service
Class RandService

java.lang.Object
  extended by fr.paris.lutece.plugins.quiz.modules.jeuxconcours.service.RandService

public class RandService
extends java.lang.Object

Rand Service


Constructor Summary
RandService()
           
 
Method Summary
 QuizParticipant create(QuizParticipant quizParticipant, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of an article QuizParticipant
 java.util.List<QuizParticipant> findAllValidByQuizId(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns QuizParticipant list
 QuizParticipant findByIdentifiantAndQuizId(java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandService

public RandService()
Method Detail

create

public QuizParticipant create(QuizParticipant quizParticipant,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of an article QuizParticipant

Parameters:
quizParticipant - An instance of the QuizParticipant which contains the informations to store
plugin - the plugin
Returns:
The instance of the QuizParticipant which has been created

removeParticipantsByQuiz

public void removeParticipantsByQuiz(int nQuiz,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the QuizParticipant instance whose identifier is specified in parameter

Parameters:
nQuiz - The identifier of the article QuizParticipant to delete in the database
plugin - the plugin

findAllValidByQuizId

public java.util.List<QuizParticipant> findAllValidByQuizId(int nIdQuiz,
                                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns QuizParticipant list

Parameters:
plugin - the plugin
nIdQuiz - The identifier of the article Quiz to find it in the database
Returns:
the list of the QuizParticipant of the database in form of a QuizParticipant Collection object

findByIdentifiantAndQuizId

public QuizParticipant findByIdentifiantAndQuizId(java.lang.String identifiant,
                                                  int idQuiz,
                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return a participant by this identifiant and by quiz

Parameters:
identifiant - the participant identifiant
idQuiz - the quiz id
plugin - the plugin
Returns:
participant


Copyright © 2012 Mairie de Paris. All Rights Reserved.