Class LifeCycleImpl
- java.lang.Object
-
- org.nuxeo.ecm.core.lifecycle.impl.LifeCycleImpl
-
-
Constructor Summary
Constructors Constructor Description LifeCycleImpl(String name, String defaultInitialStateName, Collection<String> initialStateNames, Collection<LifeCycleState> states, Collection<LifeCycleTransition> transitions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>getAllowedStateTransitionsFrom(String stateName)Gets the allowed state transitions from a given state.StringgetDefaultInitialStateName()Returns the default initial state name.Collection<String>getInitialStateNames()Returns the list of allowed initial state names.StringgetName()Gets the life cycle name.LifeCycleStategetStateByName(String stateName)Returns a life cycle state instance given its name.Collection<LifeCycleState>getStates()Returns the list of life cycle state instances.LifeCycleTransitiongetTransitionByName(String transitionName)Returns a life cycle transition instance given its name.Collection<LifeCycleTransition>getTransitions()Returns a list of life cycle transition instances.
-
-
-
Constructor Detail
-
LifeCycleImpl
public LifeCycleImpl(String name, String defaultInitialStateName, Collection<String> initialStateNames, Collection<LifeCycleState> states, Collection<LifeCycleTransition> transitions)
-
-
Method Detail
-
getDefaultInitialStateName
public String getDefaultInitialStateName()
Description copied from interface:LifeCycleReturns the default initial state name.- Specified by:
getDefaultInitialStateNamein interfaceLifeCycle
-
getInitialStateNames
public Collection<String> getInitialStateNames()
Description copied from interface:LifeCycleReturns the list of allowed initial state names.- Specified by:
getInitialStateNamesin interfaceLifeCycle
-
getName
public String getName()
Description copied from interface:LifeCycleGets the life cycle name.
-
getStates
public Collection<LifeCycleState> getStates()
Description copied from interface:LifeCycleReturns the list of life cycle state instances.
-
getStateByName
public LifeCycleState getStateByName(String stateName)
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
public Collection<String> getAllowedStateTransitionsFrom(String stateName)
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
public Collection<LifeCycleTransition> 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
public LifeCycleTransition getTransitionByName(String transitionName)
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
-
-