Class HrcEntity

All Implemented Interfaces:
Serializable, IBaseEntity, ICoreEntity, IEntity, ISortableEntity
Direct Known Subclasses:
Classification, Collection, Navigation, Node

@Entity public abstract class HrcEntity extends ComplexEntity
Base class for entities that are structured in a hierarchical tree. Each HrcEntity can only have one parent, the root element has no parent. The number of levels the hierarchy can have is unlimited.
See Also:
  • Constructor Details

    • HrcEntity

      public HrcEntity()
    • HrcEntity

      public HrcEntity(HrcEntity source)
  • Method Details

    • getChildren

      public List<HrcEntity> getChildren()
    • getVisibleChildren

      public List<HrcEntity> getVisibleChildren()
    • getParent

      public HrcEntity getParent()
    • addChild

      public void addChild(HrcEntity child)
    • setChildren

      public void setChildren(List<HrcEntity> children)
    • setParent

      public void setParent(HrcEntity parent)
    • getHrc

      public abstract ComplexEntity getHrc()
      override in derived classes
      return hierarchy
    • hrcParentsDisplay

      public List<String> hrcParentsDisplay(Locale locale)
    • hrcPathDisplay

      public List<String> hrcPathDisplay(Locale locale)
    • hrcPathDisplay

      public List<String> hrcPathDisplay(Locale locale, boolean hrcIncluded)
    • hrcParents

      public List<? extends HrcEntity> hrcParents()
      Returns:
      Parents starting from root up to (but not including) this HrcEntity.
    • hrcPath

      public List<? extends HrcEntity> hrcPath()
      Returns:
      List of ancestors starting with root ancestor and including ourself at the end
      See Also: