-
Improvement
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
-
UI Framework 4, UI Framework 11
-
2
We do have utilities to work with JCR such as NodeUtil or PropertyUtil.
These are quite hard to use inside of Streams/Optionals because of checked exceptions they throw.
The usual solution so far is extraction the calls to a method:
Optional.of(Node).map(getName()); String getName(Node node) { try { return node.getName(); } catch (RE e) { throw new RuntimeRepositoryException(e); } }
As result, such methods are duplicated all over the place.
The goal of this ticket would be introduce a utitility which would do the exception handling itself.
Acceptance criteria
- to be documented by
-
MAGNOLIA-7621 DOC: JcrFunctions utility
- Closed