Class ItemSaveValidatorProvider

java.lang.Object
org.apache.jackrabbit.oak.spi.commit.ValidatorProvider
org.apache.jackrabbit.oak.plugins.itemsave.ItemSaveValidatorProvider
All Implemented Interfaces:
EditorProvider

public class ItemSaveValidatorProvider extends ValidatorProvider
This validator checks that all changes are contained within the subtree rooted at a given path.
  • Constructor Details

    • ItemSaveValidatorProvider

      public ItemSaveValidatorProvider()
  • Method Details

    • getRootValidator

      @Nullable protected @Nullable 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