Class MultiviewFormService
java.lang.Object
fr.paris.lutece.plugins.forms.service.MultiviewFormService
Service dedicated to managing of the multiview of forms
-
Method Summary
Modifier and TypeMethodDescriptionfindActiveFormPanel(List<IFormPanelDisplay> listFormPanelDisplay) Find the FormPanel which is active in the given listgetFormColumnsList(Integer nIdForm, Locale locale, fr.paris.lutece.api.user.User user) Get the form columns list from CDI container and multiview confgetFormFiltersList(Integer nIdForm, List<IFormColumn> listFormColumn, Locale locale, fr.paris.lutece.api.user.User user) Get the form columns list from CDI container and multiview confstatic MultiviewFormServiceReturn the singleton of the MultiviewFormServicevoidpopulateFormColumns(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 FormFilterssearchAllListFormResponseItem(FormPanel formPanel, List<IFormColumn> listFormColumn, List<FormFilter> listFormFilter, FormItemSortConfig sortConfig)
-
Method Details
-
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 FormColumnslistFormColumn- The list of all FormColumn to use to be populatedlistFormFilter- The list of FormFilter to use for retrieving the data of the columns to populatenStartIndex- The start index of doc to loadnPageSize- The size of page of docs to loadsortConfig- The comparator config used for sortinguser- The current user
-
searchAllListFormResponseItem
public List<FormResponseItem> searchAllListFormResponseItem(FormPanel formPanel, List<IFormColumn> listFormColumn, List<FormFilter> listFormFilter, FormItemSortConfig sortConfig) -
findActiveFormPanel
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
-