Class PermissionValidatorProvider
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.commit.ValidatorProvider
-
- org.apache.jackrabbit.oak.security.authorization.permission.PermissionValidatorProvider
-
- All Implemented Interfaces:
EditorProvider
public class PermissionValidatorProvider extends ValidatorProvider
ValidatorProvider
implementation for permission evaluation associated with write operations.
-
-
Constructor Summary
Constructors Constructor Description PermissionValidatorProvider(@NotNull String workspaceName, @NotNull Set<Principal> principals, @NotNull MoveTracker moveTracker, @NotNull ProviderCtx providerCtx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Validator
getRootValidator(NodeState before, NodeState after, CommitInfo info)
Returns a validator for checking the changes between the given two root states.-
Methods inherited from class org.apache.jackrabbit.oak.spi.commit.ValidatorProvider
getRootEditor
-
-
-
-
Constructor Detail
-
PermissionValidatorProvider
public PermissionValidatorProvider(@NotNull @NotNull String workspaceName, @NotNull @NotNull Set<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 classValidatorProvider
- Parameters:
before
- original root stateafter
- modified root stateinfo
- metadata about this commit- Returns:
- validator for checking the modifications,
or
null
if this validator is not needed for this commit
-
-