Class LifeCycleStateImpl
java.lang.Object
org.nuxeo.ecm.core.lifecycle.impl.LifeCycleStateImpl
- All Implemented Interfaces:
LifeCycleState
Life cycle state implementation.
- Author:
- Julien Anguenot
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLifeCycleStateImpl(String name, String description, Collection<String> allowedStateTransitions, boolean initial) -
Method Summary
Modifier and TypeMethodDescriptionReturns the allowed state transitions.Returns the life cycle state descriptions.getName()Returns the life cycle state name.booleanReturns true if state is a valid initial state
-
Constructor Details
-
LifeCycleStateImpl
public LifeCycleStateImpl(String name, String description, Collection<String> allowedStateTransitions, boolean initial)
-
-
Method Details
-
getAllowedStateTransitions
Description copied from interface:LifeCycleStateReturns the allowed state transitions.- Specified by:
getAllowedStateTransitionsin interfaceLifeCycleState- Returns:
- a collection of string representing the allowed state transitions
-
getDescription
Description copied from interface:LifeCycleStateReturns the life cycle state descriptions.- Specified by:
getDescriptionin interfaceLifeCycleState- Returns:
- the life cycle state description
-
getName
Description copied from interface:LifeCycleStateReturns the life cycle state name.- Specified by:
getNamein interfaceLifeCycleState- Returns:
- the life cycle state name as a string
-
isInitial
public boolean isInitial()Description copied from interface:LifeCycleStateReturns true if state is a valid initial state- Specified by:
isInitialin interfaceLifeCycleState
-