Class AccessControlValidatorProvider

  • All Implemented Interfaces:
    EditorProvider

    public class AccessControlValidatorProvider
    extends ValidatorProvider
    AccessControlValidatorProvider aimed to provide a root validator that makes sure access control related content modifications (adding, modifying and removing access control policies) are valid according to the constraints defined by this access control implementation.
    • Constructor Detail

      • AccessControlValidatorProvider

        public AccessControlValidatorProvider​(@NotNull
                                              @NotNull ProviderCtx providerCtx)
    • Method Detail

      • getRootValidator

        @NotNull
        public @NotNull Validator getRootValidator​(NodeState before,
                                                   NodeState after,
                                                   CommitInfo info)
        Description copied from class: ValidatorProvider
        Returns a validator for checking the changes between the given two root states.
        Specified by:
        getRootValidator in class ValidatorProvider
        Parameters:
        before - original root state
        after - modified root state
        info - metadata about this commit
        Returns:
        validator for checking the modifications, or null if this validator is not needed for this commit