Class LifeCycleStateImpl
- java.lang.Object
-
- org.nuxeo.ecm.core.lifecycle.impl.LifeCycleStateImpl
-
- All Implemented Interfaces:
LifeCycleState
public class LifeCycleStateImpl extends Object implements LifeCycleState
Life cycle state implementation.- Author:
- Julien Anguenot
- See Also:
LifeCycleState
-
-
Constructor Summary
Constructors Constructor Description LifeCycleStateImpl(String name, String description, Collection<String> allowedStateTransitions, boolean initial)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>
getAllowedStateTransitions()
Returns the allowed state transitions.String
getDescription()
Returns the life cycle state descriptions.String
getName()
Returns the life cycle state name.boolean
isInitial()
Returns true if state is a valid initial state
-
-
-
Constructor Detail
-
LifeCycleStateImpl
public LifeCycleStateImpl(String name, String description, Collection<String> allowedStateTransitions, boolean initial)
-
-
Method Detail
-
getAllowedStateTransitions
public Collection<String> 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
public String getDescription()
Description copied from interface:LifeCycleState
Returns the life cycle state descriptions.- Specified by:
getDescription
in interfaceLifeCycleState
- Returns:
- the life cycle state description
-
getName
public String 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
-
-