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
ConstructorDescriptionLifeCycleStateImpl
(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.boolean
Returns 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:LifeCycleState
Returns the allowed state transitions.- Specified by:
getAllowedStateTransitions
in interfaceLifeCycleState
- Returns:
- a collection of string representing the allowed state transitions
-
getDescription
Description copied from interface:LifeCycleState
Returns the life cycle state descriptions.- Specified by:
getDescription
in interfaceLifeCycleState
- Returns:
- the life cycle state description
-
getName
Description copied from interface:LifeCycleState
Returns the life cycle state name.- Specified by:
getName
in interfaceLifeCycleState
- Returns:
- the life cycle state name as a string
-
isInitial
public boolean isInitial()Description copied from interface:LifeCycleState
Returns true if state is a valid initial state- Specified by:
isInitial
in interfaceLifeCycleState
-