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
ConstructorsConstructorDescriptionLifeCycleImpl(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:LifeCycleReturns the default initial state name.- Specified by:
getDefaultInitialStateNamein interfaceLifeCycle
-
getInitialStateNames
Description copied from interface:LifeCycleReturns the list of allowed initial state names.- Specified by:
getInitialStateNamesin interfaceLifeCycle
-
getName
Description copied from interface:LifeCycleGets the life cycle name. -
getStates
Description copied from interface:LifeCycleReturns the list of life cycle state instances. -
getStateByName
Description copied from interface:LifeCycleReturns a life cycle state instance given its name.- Specified by:
getStateByNamein interfaceLifeCycle- Parameters:
stateName- the state name- Returns:
- the life cycle state instance
-
getAllowedStateTransitionsFrom
Description copied from interface:LifeCycleGets the allowed state transitions from a given state.- Specified by:
getAllowedStateTransitionsFromin interfaceLifeCycle- Parameters:
stateName- the current state name- Returns:
- collection of allowed state transition names.
-
getTransitions
Description copied from interface:LifeCycleReturns a list of life cycle transition instances.- Specified by:
getTransitionsin interfaceLifeCycle- Returns:
- a list of life cycle transition instances.
-
getTransitionByName
Description copied from interface:LifeCycleReturns a life cycle transition instance given its name.- Specified by:
getTransitionByNamein interfaceLifeCycle- Parameters:
transitionName- the transition name- Returns:
- the life cycle transition instance
-