Class CrossMountReferenceValidatorProvider
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.commit.ValidatorProvider
-
- org.apache.jackrabbit.oak.composite.CrossMountReferenceValidatorProvider
-
- All Implemented Interfaces:
EditorProvider
public class CrossMountReferenceValidatorProvider extends ValidatorProvider
Validatorwhich detects references crossing the mount boundaries
-
-
Constructor Summary
Constructors Constructor Description CrossMountReferenceValidatorProvider()CrossMountReferenceValidatorProvider(MountInfoProvider mountInfoProvider, boolean failOnDetection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbindMountInfoProvider(MountInfoProvider mip)protected ValidatorgetRootValidator(NodeState before, NodeState after, CommitInfo info)Returns a validator for checking the changes between the given two root states.protected voidunbindMountInfoProvider(MountInfoProvider mip)-
Methods inherited from class org.apache.jackrabbit.oak.spi.commit.ValidatorProvider
getRootEditor
-
-
-
-
Constructor Detail
-
CrossMountReferenceValidatorProvider
public CrossMountReferenceValidatorProvider()
-
CrossMountReferenceValidatorProvider
public CrossMountReferenceValidatorProvider(MountInfoProvider mountInfoProvider, boolean failOnDetection)
-
-
Method Detail
-
getRootValidator
protected Validator getRootValidator(NodeState before, NodeState after, CommitInfo info)
Description copied from class:ValidatorProviderReturns a validator for checking the changes between the given two root states.- Specified by:
getRootValidatorin classValidatorProvider- Parameters:
before- original root stateafter- modified root stateinfo- metadata about this commit- Returns:
- validator for checking the modifications,
or
nullif this validator is not needed for this commit
-
bindMountInfoProvider
protected void bindMountInfoProvider(MountInfoProvider mip)
-
unbindMountInfoProvider
protected void unbindMountInfoProvider(MountInfoProvider mip)
-
-