Class GenericFormsProvider

java.lang.Object
fr.paris.lutece.plugins.forms.service.provider.GenericFormsProvider

public abstract class GenericFormsProvider extends Object
  • Constructor Details

    • GenericFormsProvider

      public GenericFormsProvider()
  • Method Details

    • getValuesModel

      public static Map<String,Object> getValuesModel(FormResponse formResponse, jakarta.servlet.http.HttpServletRequest request)
      Provides forms values as model (map), responses of iterations are merged into one FormQuestionResponse identified by the question id.
      Parameters:
      formResponse -
      request -
      Returns:
      the model map
    • getValuesModel

      public static Map<String,Object> getValuesModel(FormResponse formResponse, jakarta.servlet.http.HttpServletRequest request, boolean mergeGroupedResponses)
      Provides forms values as model (map). If mergeGroupedResponses is true, then responses of iterations are merged into one FormQuestionResponse identified by the question id, otherwise, responses of iterations are available with their question id and iteration number.
      Parameters:
      formResponse -
      request -
      mergeGroupedResponses -
      Returns:
      the model map
    • getTitlesModel

      public static Map<String,Object> getTitlesModel(Form form)
      Get the question titles as model, for the given form
      Parameters:
      form - The form
      Returns:
      the map of markers
    • getProviderMarkerDescriptions

      public static Collection<fr.paris.lutece.plugins.workflowcore.service.provider.InfoMarker> getProviderMarkerDescriptions(Form form)
      Get the reference list of available InfoMarkers. By default, the markers are base on the question codes, you can use question ids by setting the config property forms.bookmarks.byQuestionCode to false.
      Parameters:
      form - The form
      Returns:
      the collection of the Markers