Class StepHome
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.business.StepHome
-
public final class StepHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Step objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stepcreate(Step step)Create an instance of the step classstatic StepfindByPrimaryKey(int nKey)Returns an instance of a step whose identifier is specified in parameterstatic java.util.List<java.lang.Integer>getIdStepsList()Load the id of all the step objects and returns them as a liststatic java.util.List<java.lang.Integer>getIdStepsListByForm(int nIdForm)Load the id of all the step objects linked to a given form and returns them as a liststatic StepgetInitialStep(int nIdForm)Returns the initial step of the given form idstatic fr.paris.lutece.util.ReferenceListgetStepReferenceListByForm(int nFormId)Load the data of all the steps linked to a given form and returns them as a ReferenceListstatic java.util.List<Step>getStepsList()Load the data of all the step objects and returns them as a liststatic java.util.List<Step>getStepsListByForm(int nFormId)Load the data of all the steps linked to a given form and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetStepsReferenceList()Load the data of all the step objects and returns them as a referenceListstatic voidremove(int nKey)Remove the step whose identifier is specified in parameterstatic Stepupdate(Step step)Update of the step which is specified in parameter
-
-
-
Method Detail
-
create
public static Step create(Step step)
Create an instance of the step class- Parameters:
step- The instance of the Step which contains the informations to store- Returns:
- The instance of step which has been created with its primary key.
-
update
public static Step update(Step step)
Update of the step which is specified in parameter- Parameters:
step- The instance of the Step which contains the data to store- Returns:
- The instance of the step which has been updated
-
remove
public static void remove(int nKey)
Remove the step whose identifier is specified in parameter- Parameters:
nKey- The step Id
-
findByPrimaryKey
public static Step findByPrimaryKey(int nKey)
Returns an instance of a step whose identifier is specified in parameter- Parameters:
nKey- The step primary key- Returns:
- an instance of Step
-
getInitialStep
public static Step getInitialStep(int nIdForm)
Returns the initial step of the given form id- Parameters:
nIdForm- The step form primary key- Returns:
- the initial step of the given form id
-
getStepsList
public static java.util.List<Step> getStepsList()
Load the data of all the step objects and returns them as a list- Returns:
- the list which contains the data of all the step objects
-
getStepsListByForm
public static java.util.List<Step> getStepsListByForm(int nFormId)
Load the data of all the steps linked to a given form and returns them as a list- Parameters:
nFormId- the form identifier- Returns:
- the list which contains the data of all the step objects
-
getStepReferenceListByForm
public static fr.paris.lutece.util.ReferenceList getStepReferenceListByForm(int nFormId)
Load the data of all the steps linked to a given form and returns them as a ReferenceList- Parameters:
nFormId- the form identifier- Returns:
- the ReferenceList which contains the data of all the step objects
-
getIdStepsList
public static java.util.List<java.lang.Integer> getIdStepsList()
Load the id of all the step objects and returns them as a list- Returns:
- the list which contains the id of all the step objects
-
getIdStepsListByForm
public static java.util.List<java.lang.Integer> getIdStepsListByForm(int nIdForm)
Load the id of all the step objects linked to a given form and returns them as a list- Parameters:
nIdForm- the form identifier- Returns:
- the list which contains the id of all the step objects
-
getStepsReferenceList
public static fr.paris.lutece.util.ReferenceList getStepsReferenceList()
Load the data of all the step objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the step objects
-
-