Re: Check if a node has children NOT matching a pattern

2022-01-14 Thread Jörg Hoh
Hi Angela, I raised https://issues.apache.org/jira/browse/JCR-4759 and incorporated your feedback. Not sure if I can provide an implementation, not familiar enough with JR/Oak internals :-) Jörg Am Fr., 14. Jan. 2022 um 11:45 Uhr schrieb Angela Schreiber : > Hi Jörg > > Thanks a lot for

Re: Check if a node has children NOT matching a pattern

2022-01-14 Thread Angela Schreiber
Hi Jörg Thanks a lot for reaching out. IMHO it makes sense to have this reported as feature request for jackrabbit-api as there is no easy way to extend the existing JCR Node API contract. There already exists a JackrabbitNode interface in oak-jackrabbit-api, which we could use to add the new

Check if a node has children NOT matching a pattern

2022-01-14 Thread Jörg Hoh
Hi, I have a requirement to check if a node has child nodes, which do not match a certain pattern. This is definitely important, because node.hasChildren() will return true, if there is a "rep:policy" childnode below it. But this node is an implementation detail of Oak, and it does not indicate