Class FormFilterDisplaySearchedText

java.lang.Object
fr.paris.lutece.plugins.forms.web.form.filter.display.impl.AbstractFormFilterDisplay
fr.paris.lutece.plugins.forms.web.form.filter.display.impl.FormFilterDisplaySearchedText
All Implemented Interfaces:
IFormFilterDisplay, IFilterable, IFormListPosition

public class FormFilterDisplaySearchedText extends AbstractFormFilterDisplay
Implementation of the IFormFilterDisplay interface for the filter on workflow state
  • Constructor Details

    • FormFilterDisplaySearchedText

      public FormFilterDisplaySearchedText(IFormSearchEngine formSearchEngine)
  • Method Details

    • getBaseTemplate

      public String getBaseTemplate()
      Return the base template of the FormFilterDisplay, before being filled
      Specified by:
      getBaseTemplate in interface IFormFilterDisplay
      Overrides:
      getBaseTemplate in class AbstractFormFilterDisplay
      Returns:
      the base template of the FormFilterDisplay
    • getParameterName

      public String getParameterName()
      Return the name of the parameter associated to the FormFilterDisplay. This name correspond to the name on which the filter used to retrieve the value which has been selected on the screen by the user. If the name returned by this method doesn't match the name used to retrieve the value selected by the user this value will be lost during the redirection between the page of the details of the form response and the page which list all the form responses.
      Returns:
      the name of the parameter associated to the FormFilterDisplay
    • buildTemplate

      public void buildTemplate(javax.servlet.http.HttpServletRequest request, Locale locale)
      Build the Template of the FormFilterDisplay
      Parameters:
      request - The HttpServletRequest to use to build the template of the filter
      locale - The locale to use for i18n labels in the template
    • getValue

      public String getValue()
      Return the value of the the template of the FormFilterDisplay
      Specified by:
      getValue in interface IFormFilterDisplay
      Overrides:
      getValue in class AbstractFormFilterDisplay
      Returns:
      the value of the FormFilterDisplay
    • getTemplate

      public String getTemplate()
      Return the template of the FormFilterDisplay
      Specified by:
      getTemplate in interface IFormFilterDisplay
      Overrides:
      getTemplate in class AbstractFormFilterDisplay
      Returns:
      the template of the FormFilterDisplay
    • createFormParameters

      public FormParameters createFormParameters(javax.servlet.http.HttpServletRequest request)
      Create a FormParameters for the filter with the data in the given request
      Specified by:
      createFormParameters in interface IFilterable
      Overrides:
      createFormParameters in class AbstractFormFilterDisplay
      Parameters:
      request - The request to retrieve the data of the filter
      Returns:
      the FormParameters for the given filter with the data of the request
    • setFormFilter

      public void setFormFilter(FormFilter formFilter)
      Set the FormFilter associated to the FilterDisplay
      Specified by:
      setFormFilter in interface IFilterable
      Overrides:
      setFormFilter in class AbstractFormFilterDisplay
      Parameters:
      formFilter - The FormFilter to associate to the FormFilterDisplay
    • getFormFilter

      public FormFilter getFormFilter()
      Return the FormFilter of the FilterDisplay
      Specified by:
      getFormFilter in interface IFilterable
      Overrides:
      getFormFilter in class AbstractFormFilterDisplay
      Returns:
      the FormFilter of the FilterDisplay
    • getPosition

      public int getPosition()
      Return the position of the element
      Specified by:
      getPosition in interface IFormListPosition
      Overrides:
      getPosition in class AbstractFormFilterDisplay
      Returns:
      the position of the element
    • setPosition

      public void setPosition(int nPosition)
      Set the position of the element
      Specified by:
      setPosition in interface IFormListPosition
      Overrides:
      setPosition in class AbstractFormFilterDisplay
      Parameters:
      nPosition - The position to set to the element