Class MultiviewFormService
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.service.MultiviewFormService
-
public final class MultiviewFormService extends java.lang.ObjectService dedicated to managing of the multiview of forms
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IFormPanelDisplayfindActiveFormPanel(java.util.List<IFormPanelDisplay> listFormPanelDisplay)Find the FormPanel which is active in the given listjava.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 confjava.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 confstatic MultiviewFormServicegetInstance()Return the singleton of the MultiviewFormServicevoidpopulateFormColumns(FormPanel formPanel, java.util.List<IFormColumn> listFormColumn, java.util.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 FormFiltersjava.util.List<FormResponseItem>searchAllListFormResponseItem(FormPanel formPanel, java.util.List<IFormColumn> listFormColumn, java.util.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, java.util.List<IFormColumn> listFormColumn, java.util.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 java.util.List<FormResponseItem> searchAllListFormResponseItem(FormPanel formPanel, java.util.List<IFormColumn> listFormColumn, java.util.List<FormFilter> listFormFilter, FormItemSortConfig 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
-
-