Registration of Custom Privileges
As far as registration of custom privileges the Oak implementation behaves different to Jackrabbit 2.x in the following two aspects:
- Registration of new privileges fails with IllegalStateException if the editing session has pending changes.
- Any validation is performed by CommitHooks in order to make sure that modifications made on the Oak API directly is equally verified. Subsequently any violation (permission, privilege consistency) is only detected at the end of the registration process. The privilege manager itself does not perform any validation.