Package mc.core.model.base
Interface IHrcManaged<T extends IEntity>
- All Superinterfaces:
IBaseEntity,ICoreEntity,IEntity,Serializable
- All Known Implementing Classes:
Collection,Navigation,Node
-
Method Summary
Modifier and TypeMethodDescriptiontypesafe retrieval of HrcEntity children.typesafe retrieval of HrcEntity parent.typesafe retrieval of HrcEntity parents.hrcParentsDisplay(Locale locale) list of entity display string retrieved by rules fromEntityUtils.toDisplay(IEntity, Locale).hrcPath()typesafe retrieval of HrcEntity parents plus entity itself.hrcPathDisplay(Locale locale) list of entity display string retrieved by rules fromEntityUtils.toDisplay(IEntity, Locale).hrcPathDisplay(Locale locale, boolean hrcIncluded) list of entity display string retrieved by rules fromEntityUtils.toDisplay(IEntity, Locale).typesafe retrieval of HrcEntity visible children (filtered on life cycle flag visible)
never return proxiesMethods inherited from interface mc.core.model.base.IBaseEntity
getId, setIdMethods inherited from interface mc.core.model.base.IEntity
getDescription, getInternalDescription, getName, getPrio, setInternalDescription
-
Method Details
-
hrcChildren
typesafe retrieval of HrcEntity children. never return proxies- Returns:
- typesafe list of children entities or empty list. never null
-
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
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
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 of entity display string retrieved by rules fromEntityUtils.toDisplay(IEntity, Locale). for logic and ordering seehrcParents()- Parameters:
locale- optional, if null master locale is used- Returns:
- list of entity display strings for parents
-
hrcPathDisplay
list of entity display string retrieved by rules fromEntityUtils.toDisplay(IEntity, Locale). for logic and ordering seehrcPath()- Parameters:
locale- optional, if null master locale is used- Returns:
- list of entity display strings for path
-
hrcPathDisplay
list of entity display string retrieved by rules fromEntityUtils.toDisplay(IEntity, Locale). for logic and ordering seehrcPath()- 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
-