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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IFormPanelDisplayfindActiveFormPanel(List<IFormPanelDisplay> listFormPanelDisplay)Find the FormPanel which is active in the given listList<IFormColumn>getFormColumnsList(Integer nIdForm, Locale locale, fr.paris.lutece.api.user.User user)Get the form columns list from spring and multiview confList<FormFilter>getFormFiltersList(Integer nIdForm, List<IFormColumn> listFormColumn, Locale locale, fr.paris.lutece.api.user.User user)Get the form columns list from spring and multiview confstatic MultiviewFormServicegetInstance()Return the singleton of the MultiviewFormServicevoidpopulateFormColumns(FormPanel formPanel, List<IFormColumn> listFormColumn, List<FormFilter> listFormFilter, int nStartIndex, int nPageSize, FormItemSortConfig sortConfig)Populate the given FormPanel with the information from the given list of FormColumns and FormFiltersList<FormResponseItem>searchAllListFormResponseItem(FormPanel formPanel, List<IFormColumn> listFormColumn, List<FormFilter> listFormFilter, FormItemSortConfig sortConfig)
-
-
-
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, List<IFormColumn> listFormColumn, 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 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-
-
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 spring 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 spring and multiview conf- Parameters:
nIdForm-- Returns:
- the form columns list
-
-