Class PermissionValidatorProvider

  • All Implemented Interfaces:
    EditorProvider

    public class PermissionValidatorProvider
    extends ValidatorProvider
    ValidatorProvider implementation for permission evaluation associated with write operations.
    • Constructor Detail

      • PermissionValidatorProvider

        public PermissionValidatorProvider​(@NotNull
                                           @NotNull java.lang.String workspaceName,
                                           @NotNull
                                           @NotNull java.util.Set<java.security.Principal> principals,
                                           @NotNull
                                           @NotNull MoveTracker moveTracker,
                                           @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