Am 21.04.2021 um 10:47 schrieb Konrad Windszus:
What about providing a bridge from JCR to Oak API by adding the following
method to org.apache.jackrabbit.oak.jcr.JCR:
@NotNull
public static org.apache.jackrabbit.oak.api.ContentSession
toContentSession(javax.jcr.Session session)
that can return the underlying Oak API entity if the JCR session is backed by
Oak, otherwise throws an ISE?
IMHO it doesn't make sense to duplicate methods exposed by Oak API already in
Jackrabbit API...
Konrad
That would introduce a dependency on the Oak API; I don't think we would
want that.
Best regards, Julian