Interface IStateManaged

All Superinterfaces:
IBaseEntity, ICoreEntity, IEntity, ITypeManaged, Serializable
All Known Implementing Classes:
Asset, Attribute, NavigationHrc, Node, PublicationProfile

public interface IStateManaged extends ITypeManaged
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 Details

    • getStates

      List<State> getStates()
      Returns:
      the complete list of States assigned to this instance. There must only be one State per StateGroup
    • getState

      State getState(StateGroupType stateGroupType, Locale locale)
      Parameters:
      stateGroupType - mandatory
      locale - 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