Interface IHrcManaged<T extends IEntity>

All Superinterfaces:
IBaseEntity, ICoreEntity, IEntity, Serializable
All Known Implementing Classes:
Collection, Navigation, Node

public interface IHrcManaged<T extends IEntity> extends IEntity
  • Method Details

    • hrcChildren

      List<T> hrcChildren()
      typesafe retrieval of HrcEntity children. never return proxies
      Returns:
      typesafe list of children entities or empty list. never null
    • hrcVisibleChildren

      List<T> hrcVisibleChildren()
      typesafe retrieval of HrcEntity visible children (filtered on life cycle flag visible)
      never return proxies
      Returns:
      typesafe list of children entities or empty list. never null
    • hrcParent

      T hrcParent()
      typesafe retrieval of HrcEntity parent. never return proxy. use this preferable over getParent() if you want access type special properties or use entity class, instead of safeCast to target type yourself. still use getParent() if you only need the id, cause no need to initialize (load) proxy then
      Returns:
      parent entity or null
    • hrcParents

      List<T> hrcParents()
      typesafe retrieval of HrcEntity parents. never return proxies. use this if you want access type special properties or use entity class, instead of safeCast to target type yourself
      Returns:
      list of parents with top down ordering (top level parent at beginning of list) or empty list if entity has no parent (is already top level). never null
    • hrcPath

      List<T> hrcPath()
      typesafe retrieval of HrcEntity parents plus entity itself. never return proxies. use this if you want access type special properties or use entity class, instead of safeCast to target type yourself
      Returns:
      list of parents with top down ordering (top level parent at beginning of list) and this entity add the end, or empty list if entity has no parent (is already top level). never null
    • hrcParentsDisplay

      List<String> hrcParentsDisplay(Locale locale)
      list of entity display string retrieved by rules from EntityUtils.toDisplay(IEntity, Locale). for logic and ordering see hrcParents()
      Parameters:
      locale - optional, if null master locale is used
      Returns:
      list of entity display strings for parents
    • hrcPathDisplay

      List<String> hrcPathDisplay(Locale locale)
      list of entity display string retrieved by rules from EntityUtils.toDisplay(IEntity, Locale). for logic and ordering see hrcPath()
      Parameters:
      locale - optional, if null master locale is used
      Returns:
      list of entity display strings for path
    • hrcPathDisplay

      List<String> hrcPathDisplay(Locale locale, boolean hrcIncluded)
      list of entity display string retrieved by rules from EntityUtils.toDisplay(IEntity, Locale). for logic and ordering see hrcPath()
      Parameters:
      hrcIncluded - if true, the first element is the display string of hierarchy.
      locale - optional, if null master locale is used
      Returns:
      list of entity display strings for path