You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Timothee Maret (Jira)" <ji...@apache.org> on 2020/09/02 10:14:00 UTC

[jira] [Created] (OAK-9193) Allow to build Jcr with a PostValidationHook

Timothee Maret created OAK-9193:
-----------------------------------

             Summary: Allow to build Jcr with a PostValidationHook
                 Key: OAK-9193
                 URL: https://issues.apache.org/jira/browse/OAK-9193
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: jcr
    Affects Versions: 1.32.0
            Reporter: Timothee Maret


Oak store SPI exports a [PostValidationHook|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/spi/commit/PostValidationHook.java] that extends CommitHook. According to the Javadoc, post validation hooks are meant to be executed after validation hooks. The [Jcr builder|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/Jcr.java] should allow specifying a [PostValidationHook|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/spi/commit/PostValidationHook.java] to be placed after the built in ACL validations.

The following signature would be added to the Jcr class
{code:java}
public Jcr with(@NotNull PostValidationHook postValidationHook)
{code}
The provided hook would be included after the security provider hooks via the [MutableRoot|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/MutableRoot.java#L291].



--
This message was sent by Atlassian Jira
(v8.3.4#803005)