fr.paris.lutece.plugins.quiz.service.outputprocessor
Interface IQuizOutputProcessor


public interface IQuizOutputProcessor

Interface for output processor services


Method Summary
 void doProcessOutputProcessor(Map<String,String[]> mapAnswers, String strScore, int nIdQuiz)
          Do process the output processor
 void doUpdateConfiguration(javax.servlet.http.HttpServletRequest request, int nIdQuiz)
          Do update the configuration of the output processor for a given quiz
 String getProcessorConfigurationHtml(javax.servlet.http.HttpServletRequest request, int nIdQuiz)
          Get the HTML to display the configuration form of the processor for a given quiz.
 String getProcessorId()
          Get the unique id of the processor.
 String getTitle(Locale locale)
          Get the title of the processor
 void notifyProcessorDisabling(int nIdQuiz)
          Notify the processor that it has been disabled for a given quiz.
 void notifyProcessorEnabling(int nIdQuiz)
          Notify the processor that it has been enabled for a given quiz
 

Method Detail

doProcessOutputProcessor

void doProcessOutputProcessor(Map<String,String[]> mapAnswers,
                              String strScore,
                              int nIdQuiz)
Do process the output processor

Parameters:
mapAnswers - The map containing answers of the user to the quiz. Keys of the map can either be ids of questions or keys of free HTML parameters. Values of the map are data entered by the user
strScore - the score
nIdQuiz - The id of the quiz

getProcessorConfigurationHtml

String getProcessorConfigurationHtml(javax.servlet.http.HttpServletRequest request,
                                     int nIdQuiz)
Get the HTML to display the configuration form of the processor for a given quiz. Returns null if this processor does not need to display any configuration form

Parameters:
request - The request
nIdQuiz - The id of the quiz
Returns:
The HTML code to display, or null if no configuration is needed

doUpdateConfiguration

void doUpdateConfiguration(javax.servlet.http.HttpServletRequest request,
                           int nIdQuiz)
Do update the configuration of the output processor for a given quiz

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

notifyProcessorEnabling

void notifyProcessorEnabling(int nIdQuiz)
Notify the processor that it has been enabled for a given quiz

Parameters:
nIdQuiz - The id of the quiz

notifyProcessorDisabling

void notifyProcessorDisabling(int nIdQuiz)
Notify the processor that it has been disabled for a given quiz. Any configuration for the quiz must be removed once this method has been called.

Parameters:
nIdQuiz - The id of the quiz

getProcessorId

String getProcessorId()
Get the unique id of the processor.

Returns:
The unique id of the processor

getTitle

String getTitle(Locale locale)
Get the title of the processor

Parameters:
locale - The locale to display the title in
Returns:
The title of the processor


Copyright © 2014 Mairie de Paris. All Rights Reserved.