Description
as discussed today Tree#getChildStatus is a bit problematic from my point
of view as it requires the parent Tree to be always accessible. as discussed
and stated multiple times in the past that may not be always the case.
a part from the drawback it offers once we have access control in place
it doesn't work for the root node, which doesn't have a parent by definition.
therefore i would suggest to refactor the method to Tree#getStatus and make it
an implementation detail if the status is stored with the parent or the tree
itself.
Attachments
Issue Links
- is related to
-
OAK-164 Replace Tree.remove(String) with Tree.remove()
- Closed
-
OAK-165 NodeDelegate should not use Tree.getChild() but rather Root.getTree()
- Closed
-
OAK-166 Add Tree.isRoot() method instead of relying on Tree.getParent() == null
- Closed
- relates to
-
OAK-164 Replace Tree.remove(String) with Tree.remove()
- Closed
-
OAK-165 NodeDelegate should not use Tree.getChild() but rather Root.getTree()
- Closed
-
OAK-160 Make oak interfaces permission aware
- Closed