Class MultiviewFormService

java.lang.Object
fr.paris.lutece.plugins.forms.service.MultiviewFormService

public final class MultiviewFormService extends Object
Service dedicated to managing of the multiview of forms
  • Method Details

    • getInstance

      public static MultiviewFormService getInstance()
      Return the singleton of the MultiviewFormService
      Returns:
      the singleton of the MultiviewFormService
    • populateFormColumns

      public void populateFormColumns(FormPanel formPanel, List<IFormColumn> listFormColumn, List<FormFilter> listFormFilter, int nStartIndex, int nPageSize, FormItemSortConfig sortConfig, fr.paris.lutece.api.user.User user)
      Populate the given FormPanel with the information from the given list of FormColumns and FormFilters
      Parameters:
      formPanel - The FormPanel used to retrieve the values of the FormColumns
      listFormColumn - The list of all FormColumn to use to be populated
      listFormFilter - The list of FormFilter to use for retrieving the data of the columns to populate
      nStartIndex - The start index of doc to load
      nPageSize - The size of page of docs to load
      sortConfig - The comparator config used for sorting
      user - The current user
    • searchAllListFormResponseItem

      public List<FormResponseItem> searchAllListFormResponseItem(FormPanel formPanel, List<IFormColumn> listFormColumn, List<FormFilter> listFormFilter, FormItemSortConfig sortConfig)
    • findActiveFormPanel

      public IFormPanelDisplay findActiveFormPanel(List<IFormPanelDisplay> listFormPanelDisplay)
      Find the FormPanel which is active in the given list
      Parameters:
      listFormPanelDisplay - The list to retrieve the active FormPanelDisplay
      Returns:
      the IFormFilterPanelDisplay which is active or null if not found
    • getFormColumnsList

      public List<IFormColumn> getFormColumnsList(Integer nIdForm, Locale locale, fr.paris.lutece.api.user.User user)
      Get the form columns list from CDI container and multiview conf
      Parameters:
      nIdForm -
      Returns:
      the form columns list
    • getFormFiltersList

      public List<FormFilter> getFormFiltersList(Integer nIdForm, List<IFormColumn> listFormColumn, Locale locale, fr.paris.lutece.api.user.User user)
      Get the form columns list from CDI container and multiview conf
      Parameters:
      nIdForm -
      Returns:
      the form columns list