Class FormDisplayHome
java.lang.Object
fr.paris.lutece.plugins.forms.business.FormDisplayHome
This class provides instances management methods (create, find, ...) for FormDisplay objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic FormDisplaycreate(FormDisplay formDisplay) Create an instance of the formDisplay classstatic FormDisplayfindByPrimaryKey(int nKey) Returns an instance of a formDisplay whose identifier is specified in parameterstatic List<FormDisplay>getFormDisplayByForm(int nIdForm) Return the FormDisplay associated to the given parametersstatic FormDisplaygetFormDisplayByFormStepAndComposite(int nIdForm, int nIdStep, int nIdComposite) Return the FormDisplay associated to the given parametersstatic List<FormDisplay>Load the data of all the formDisplay objects and returns them as a liststatic List<FormDisplay>getFormDisplayListByParent(int nIdStep, int nIdParent) Load the data of all the formDisplay that are direct children of a given parent and returns them as a liststatic List<FormDisplay>getFormDisplayListByParentOrderByQuestionExportDisplayOrder(int nIdStep, int nIdParent) Load the data of all the formDisplay from a form step and returns them as a list ordered by export orderstatic fr.paris.lutece.util.ReferenceListgetGroupDisplayReferenceListByStep(int nIdStep) Load the data of all the FormDisplay objects of type "Group" linked to a given FormStep and returns them as a referenceListstatic voidinitConditionalDisplayForFormDisplay(FormDisplay formDisplay) Inits the Conditional display for a given form displaystatic voidremove(int nKey) Remove the formDisplay whose identifier is specified in parameterstatic FormDisplayupdate(FormDisplay formDisplay) Update of the formDisplay which is specified in parameter
-
Method Details
-
create
Create an instance of the formDisplay class- Parameters:
formDisplay- The instance of the FormDisplay which contains the informations to store- Returns:
- The instance of formDisplay which has been created with its primary key.
-
update
Update of the formDisplay which is specified in parameter- Parameters:
formDisplay- The instance of the FormDisplay which contains the data to store- Returns:
- The instance of the formDisplay which has been updated
-
remove
public static void remove(int nKey) Remove the formDisplay whose identifier is specified in parameter- Parameters:
nKey- The formDisplay Id
-
findByPrimaryKey
Returns an instance of a formDisplay whose identifier is specified in parameter- Parameters:
nKey- The formDisplay primary key- Returns:
- an instance of FormDisplay
-
getFormDisplayList
Load the data of all the formDisplay objects and returns them as a list- Returns:
- the list which contains the data of all the formDisplay objects
-
getFormDisplayListByParent
Load the data of all the formDisplay that are direct children of a given parent and returns them as a list- Parameters:
nIdStep- The step primary keynIdParent- The parent primary key- Returns:
- the list which contains the data of all the formDisplay objects by parent
-
getFormDisplayListByParentOrderByQuestionExportDisplayOrder
public static List<FormDisplay> getFormDisplayListByParentOrderByQuestionExportDisplayOrder(int nIdStep, int nIdParent) Load the data of all the formDisplay from a form step and returns them as a list ordered by export order- Parameters:
nIdStep-nIdParent- TODO- Returns:
-
getGroupDisplayReferenceListByStep
public static fr.paris.lutece.util.ReferenceList getGroupDisplayReferenceListByStep(int nIdStep) Load the data of all the FormDisplay objects of type "Group" linked to a given FormStep and returns them as a referenceList- Parameters:
nIdStep- the step identifier- Returns:
- the referenceList which contains the data of all the Display objects of group type
-
getFormDisplayByFormStepAndComposite
public static FormDisplay getFormDisplayByFormStepAndComposite(int nIdForm, int nIdStep, int nIdComposite) Return the FormDisplay associated to the given parameters- Parameters:
nIdForm- The identifier of the Form to matchnIdStep- The identifier of the Step to matchnIdComposite- The identifier of the Composite to match- Returns:
- the formDisplay associated to the given parameters
-
initConditionalDisplayForFormDisplay
Inits the Conditional display for a given form display- Parameters:
formDisplay- the form display to init
-
getFormDisplayByForm
Return the FormDisplay associated to the given parameters- Parameters:
nIdForm- The identifier of the Form to match- Returns:
- the formDisplay associated to the given parameters
-