Package mc.core.model.base
Interface IStateManaged
- All Superinterfaces:
IBaseEntity,ICoreEntity,IEntity,ITypeManaged,Serializable
- All Known Implementing Classes:
Asset,Attribute,NavigationHrc,Node,PublicationProfile
Interface to signal that implementing class can have one or more states. If state management is active is configured
in type of entity by assigning one or more StateGroupTypes.
-
Method Summary
Methods inherited from interface mc.core.model.base.IBaseEntity
getId, setIdMethods inherited from interface mc.core.model.base.IEntity
getDescription, getInternalDescription, getName, getPrio, setInternalDescriptionMethods inherited from interface mc.core.model.base.ITypeManaged
getType
-
Method Details
-
getStates
- Returns:
- the complete list of States assigned to this instance. There must only be one State per StateGroup
-
getState
- Parameters:
stateGroupType- mandatorylocale- mandatory if stateGroupType is locale dependent- Returns:
- the state in given stateGroupType, if stateGroupType is locale dependent in the given locale. Returns null if there is no such state. NOTE: implementing entity must be attached.
-
getStateGroupTypes
List<StateGroupType> getStateGroupTypes()- Returns:
- the list of StateGroupTypes configured for this entity, usually by delegating to type of entity
-