|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.lifecycle.impl.LifeCycleImpl
public class LifeCycleImpl
Life cycle implementation.
LifeCycle
Constructor Summary | |
---|---|
LifeCycleImpl(String name,
String defaultInitialStateName,
Collection<String> initialStateNames,
Collection<LifeCycleState> states,
Collection<LifeCycleTransition> transitions)
|
Method Summary | |
---|---|
Collection<String> |
getAllowedStateTransitionsFrom(String stateName)
Gets the allowed state transitions from a given state. |
String |
getDefaultInitialStateName()
Returns the default initial state name. |
Collection<String> |
getInitialStateNames()
Returns the list of allowed initial state names. |
String |
getName()
Gets the life cycle name. |
LifeCycleState |
getStateByName(String stateName)
Returns a life cycle state instance given its name. |
Collection<LifeCycleState> |
getStates()
Returns the list of life cycle state instances. |
LifeCycleTransition |
getTransitionByName(String transitionName)
Returns a life cycle transition instance given its name. |
Collection<LifeCycleTransition> |
getTransitions()
Returns a list of life cycle transition instances. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LifeCycleImpl(String name, String defaultInitialStateName, Collection<String> initialStateNames, Collection<LifeCycleState> states, Collection<LifeCycleTransition> transitions)
Method Detail |
---|
public String getDefaultInitialStateName()
LifeCycle
getDefaultInitialStateName
in interface LifeCycle
public Collection<String> getInitialStateNames()
LifeCycle
getInitialStateNames
in interface LifeCycle
public String getName()
LifeCycle
getName
in interface LifeCycle
public Collection<LifeCycleState> getStates()
LifeCycle
getStates
in interface LifeCycle
public LifeCycleState getStateByName(String stateName)
LifeCycle
getStateByName
in interface LifeCycle
stateName
- the state name
public Collection<String> getAllowedStateTransitionsFrom(String stateName) throws LifeCycleException
LifeCycle
getAllowedStateTransitionsFrom
in interface LifeCycle
stateName
- the current state name
LifeCycleException
public Collection<LifeCycleTransition> getTransitions()
LifeCycle
getTransitions
in interface LifeCycle
public LifeCycleTransition getTransitionByName(String transitionName)
LifeCycle
getTransitionByName
in interface LifeCycle
transitionName
- the transition name
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |