public interface Validator extends Editor
NodeState.| Modifier and Type | Method and Description |
|---|---|
Validator |
childNodeAdded(String name,
NodeState after)
Validate an added node
|
Validator |
childNodeChanged(String name,
NodeState before,
NodeState after)
Validate a changed node
|
Validator |
childNodeDeleted(String name,
NodeState before)
Validate a deleted node
|
void |
propertyAdded(org.apache.jackrabbit.oak.api.PropertyState after)
Validate an added property
|
void |
propertyChanged(org.apache.jackrabbit.oak.api.PropertyState before,
org.apache.jackrabbit.oak.api.PropertyState after)
Validate a changed property
|
void |
propertyDeleted(org.apache.jackrabbit.oak.api.PropertyState before)
Validate a deleted property
|
void propertyAdded(org.apache.jackrabbit.oak.api.PropertyState after) throws org.apache.jackrabbit.oak.api.CommitFailedException
propertyAdded in interface Editorafter - the added propertyorg.apache.jackrabbit.oak.api.CommitFailedException - if validation fails.void propertyChanged(org.apache.jackrabbit.oak.api.PropertyState before, org.apache.jackrabbit.oak.api.PropertyState after) throws org.apache.jackrabbit.oak.api.CommitFailedException
propertyChanged in interface Editorbefore - the original propertyafter - the changed propertyorg.apache.jackrabbit.oak.api.CommitFailedException - if validation fails.void propertyDeleted(org.apache.jackrabbit.oak.api.PropertyState before) throws org.apache.jackrabbit.oak.api.CommitFailedException
propertyDeleted in interface Editorbefore - the original propertyorg.apache.jackrabbit.oak.api.CommitFailedException - if validation fails.@CheckForNull Validator childNodeAdded(String name, NodeState after) throws org.apache.jackrabbit.oak.api.CommitFailedException
childNodeAdded in interface Editorname - the name of the added nodeafter - the added nodeValidator for after or null if validation
should not decent into the subtree rooted at after.org.apache.jackrabbit.oak.api.CommitFailedException - if validation fails.@CheckForNull Validator childNodeChanged(String name, NodeState before, NodeState after) throws org.apache.jackrabbit.oak.api.CommitFailedException
childNodeChanged in interface Editorname - the name of the changed nodebefore - the original nodeafter - the changed nodeValidator for after or null if validation
should not decent into the subtree rooted at after.org.apache.jackrabbit.oak.api.CommitFailedException - if validation fails.@CheckForNull Validator childNodeDeleted(String name, NodeState before) throws org.apache.jackrabbit.oak.api.CommitFailedException
childNodeDeleted in interface Editorname - The name of the deleted node.before - the original nodeValidator for the removed subtree or
null if validation should not decent into the subtreeorg.apache.jackrabbit.oak.api.CommitFailedException - if validation fails.Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.