Interface PropagateAttributeContext.Parent
- All Superinterfaces:
AttributeContext
- Enclosing interface:
- PropagateAttributeContext
The context interface for preparing children loading function by a propagate.
Note that this interface does not extend AttributeLoaderContext, so no
dependency values are available at this point. It can be used by an implementation of
a PropagateAttributeLoader to get a list of children and otherwise prepare
the actual loading function, which will be passed PropagateAttributeContext.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of all children of the parent row.Returns the current parent row, which children are about to be calculated.default booleanReturns true if the current parent is the super-root and the children are forest roots.default booleanReturns true if the current parent is nothing and the child to be loaded is the super-root.Methods inherited from interface AttributeContext
getBaseStructureId, getBaseUrl, getI18n, getI18nHelper, getLoadTimeMillis, getLoadTimeNanos, getLocale, getObject, getTimeZone, getUser, putObject
-
Method Details
-
getChildren
Returns the list of all children of the parent row. The values for Some of these children are about to be calculated.- Returns:
- children rows under the parent with the indicated value
-
getParent
Returns the current parent row, which children are about to be calculated.
Null means the children is only the super-root. If this method returns a super-root, then the children will be roots. Note that this logic does not depend on the value of
PropagateAttributeLoader.isLoadingSuperRoot().- See Also:
-
isLoadingSuperRoot
default boolean isLoadingSuperRoot()Returns true if the current parent is nothing and the child to be loaded is the super-root.- Returns:
- true if the super-root is about to be loaded
-
isLoadingRoots
default boolean isLoadingRoots()Returns true if the current parent is the super-root and the children are forest roots.- Returns:
- true if forest roots are about to be loaded
-