Class LifeCycleImpl
java.lang.Object
org.nuxeo.ecm.core.lifecycle.impl.LifeCycleImpl
- All Implemented Interfaces:
LifeCycle
Life cycle implementation.
- Author:
- Julien Anguenot, Florent Guillaume
- See Also:
-
Constructor Summary
ConstructorDescriptionLifeCycleImpl
(String name, String defaultInitialStateName, Collection<String> initialStateNames, Collection<LifeCycleState> states, Collection<LifeCycleTransition> transitions) -
Method Summary
Modifier and TypeMethodDescriptiongetAllowedStateTransitionsFrom
(String stateName) Gets the allowed state transitions from a given state.Returns the default initial state name.Returns the list of allowed initial state names.getName()
Gets the life cycle name.getStateByName
(String stateName) Returns a life cycle state instance given its name.Returns the list of life cycle state instances.getTransitionByName
(String transitionName) Returns a life cycle transition instance given its name.Returns a list of life cycle transition instances.
-
Constructor Details
-
LifeCycleImpl
public LifeCycleImpl(String name, String defaultInitialStateName, Collection<String> initialStateNames, Collection<LifeCycleState> states, Collection<LifeCycleTransition> transitions)
-
-
Method Details
-
getDefaultInitialStateName
Description copied from interface:LifeCycle
Returns the default initial state name.- Specified by:
getDefaultInitialStateName
in interfaceLifeCycle
-
getInitialStateNames
Description copied from interface:LifeCycle
Returns the list of allowed initial state names.- Specified by:
getInitialStateNames
in interfaceLifeCycle
-
getName
Description copied from interface:LifeCycle
Gets the life cycle name. -
getStates
Description copied from interface:LifeCycle
Returns the list of life cycle state instances. -
getStateByName
Description copied from interface:LifeCycle
Returns a life cycle state instance given its name.- Specified by:
getStateByName
in interfaceLifeCycle
- Parameters:
stateName
- the state name- Returns:
- the life cycle state instance
-
getAllowedStateTransitionsFrom
Description copied from interface:LifeCycle
Gets the allowed state transitions from a given state.- Specified by:
getAllowedStateTransitionsFrom
in interfaceLifeCycle
- Parameters:
stateName
- the current state name- Returns:
- collection of allowed state transition names.
-
getTransitions
Description copied from interface:LifeCycle
Returns a list of life cycle transition instances.- Specified by:
getTransitions
in interfaceLifeCycle
- Returns:
- a list of life cycle transition instances.
-
getTransitionByName
Description copied from interface:LifeCycle
Returns a life cycle transition instance given its name.- Specified by:
getTransitionByName
in interfaceLifeCycle
- Parameters:
transitionName
- the transition name- Returns:
- the life cycle transition instance
-