Class TransitionHome
java.lang.Object
fr.paris.lutece.plugins.forms.business.TransitionHome
This class provides instances management methods (create, find, ...) for Transition objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic Transitioncreate(Transition transition) Create an instance of the transition classstatic TransitioncreateWithoutPriorityCalculation(Transition transition) Create an instance of the transition classstatic TransitionfindByPrimaryKey(int nKey) Returns an instance of a transition whose identifier is specified in parameterstatic intgetCurrentPriorityByStep(int fromStep) Select the lowest priority of the transitions sharing the same starting Step Priority increase when value decrease.Load the id of all the transition objects and returns them as a liststatic TransitiongetTransitionByPriority(int nIdStep, int nPriority) Load the data of a transition object from the given step and the given prioritystatic List<Transition>Load the data of all the transition objects and returns them as a liststatic List<Transition>getTransitionsListFromForm(int nIdForm) Load the data of all the transition objects from the given form and returns them as a liststatic List<Transition>getTransitionsListFromStep(int nIdStep) Load the data of all the transition objects from the given step and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad the data of all the transition objects and returns them as a referenceListstatic voidrebuildPrioritySequence(int fromStep) Rebuild the priority sequence of the transitions sharing the same starting Stepstatic voidremove(int nKey) Remove the transition whose identifier is specified in parameterstatic voidremoveTransitionByStep(int nIdStep) Remove all the transitions starting from or leading to a given stepstatic Transitionupdate(Transition transition) Update of the transition which is specified in parameter
-
Method Details
-
create
Create an instance of the transition class- Parameters:
transition- The instance of the Transition which contains the informations to store- Returns:
- The instance of transition which has been created with its primary key.
-
createWithoutPriorityCalculation
Create an instance of the transition class- Parameters:
transition- The instance of the Transition which contains the informations to store- Returns:
- The instance of transition which has been created with its primary key.
-
update
Update of the transition which is specified in parameter- Parameters:
transition- The instance of the Transition which contains the data to store- Returns:
- The instance of the transition which has been updated
-
remove
public static void remove(int nKey) Remove the transition whose identifier is specified in parameter- Parameters:
nKey- The transition Id
-
findByPrimaryKey
Returns an instance of a transition whose identifier is specified in parameter- Parameters:
nKey- The transition primary key- Returns:
- an instance of Transition
-
getTransitionsList
Load the data of all the transition objects and returns them as a list- Returns:
- the list which contains the data of all the transition objects
-
getIdTransitionsList
Load the id of all the transition objects and returns them as a list- Returns:
- the list which contains the id of all the transition objects
-
getTransitionsReferenceList
public static fr.paris.lutece.util.ReferenceList getTransitionsReferenceList()Load the data of all the transition objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the transition objects
-
getTransitionsListFromStep
Load the data of all the transition objects from the given step and returns them as a list- Parameters:
nIdStep- The identifier of the starting step- Returns:
- the list which contains the data of all the transition objects
-
getTransitionByPriority
Load the data of a transition object from the given step and the given priority- Parameters:
nIdStep- The identifier of the stepnPriority- The priority value- Returns:
- the transition object if existing
-
rebuildPrioritySequence
public static void rebuildPrioritySequence(int fromStep) Rebuild the priority sequence of the transitions sharing the same starting Step- Parameters:
fromStep- The starting step
-
getCurrentPriorityByStep
public static int getCurrentPriorityByStep(int fromStep) Select the lowest priority of the transitions sharing the same starting Step Priority increase when value decrease.- Parameters:
fromStep- The starting step- Returns:
- the Minimum priority ( maximum value )
-
removeTransitionByStep
public static void removeTransitionByStep(int nIdStep) Remove all the transitions starting from or leading to a given step- Parameters:
nIdStep- The Step Id
-
getTransitionsListFromForm
Load the data of all the transition objects from the given form and returns them as a list- Parameters:
nIdForm-- Returns:
- the list which contains the data of all the transition objects for given form
-