Class MultiviewFormService


  • public final class MultiviewFormService
    extends java.lang.Object
    Service dedicated to managing of the multiview of forms
    • Method Detail

      • getInstance

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

        public void populateFormColumns​(FormPanel formPanel,
                                        java.util.List<IFormColumn> listFormColumn,
                                        java.util.List<FormFilter> listFormFilter,
                                        int nStartIndex,
                                        int nPageSize,
                                        FormItemSortConfig sortConfig)
        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 -
      • findActiveFormPanel

        public IFormPanelDisplay findActiveFormPanel​(java.util.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 java.util.List<IFormColumn> getFormColumnsList​(java.lang.Integer nIdForm,
                                                              java.util.Locale locale,
                                                              fr.paris.lutece.api.user.User user)
        Get the form columns list from spring and multiview conf
        Parameters:
        nIdForm -
        Returns:
        the form columns list
      • getFormFiltersList

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