Class FormDisplayHome
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.business.FormDisplayHome
-
public final class FormDisplayHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for FormDisplay objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 java.util.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 java.util.List<FormDisplay>getFormDisplayList()Load the data of all the formDisplay objects and returns them as a liststatic java.util.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 java.util.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 Detail
-
create
public static FormDisplay create(FormDisplay formDisplay)
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
public static FormDisplay update(FormDisplay formDisplay)
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
public static FormDisplay findByPrimaryKey(int nKey)
Returns an instance of a formDisplay whose identifier is specified in parameter- Parameters:
nKey- The formDisplay primary key- Returns:
- an instance of FormDisplay
-
getFormDisplayList
public static java.util.List<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
public static java.util.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 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 java.util.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
public static void initConditionalDisplayForFormDisplay(FormDisplay formDisplay)
Inits the Conditional display for a given form display- Parameters:
formDisplay- the form display to init
-
getFormDisplayByForm
public static java.util.List<FormDisplay> getFormDisplayByForm(int nIdForm)
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
-
-