public class DefaultEditor extends Object implements Editor
| Constructor and Description |
|---|
DefaultEditor() |
| Modifier and Type | Method and Description |
|---|---|
Editor |
childNodeAdded(String name,
NodeState after)
Processes an added child node.
|
Editor |
childNodeChanged(String name,
NodeState before,
NodeState after)
Processes a changed child node.
|
Editor |
childNodeDeleted(String name,
NodeState before)
Processes a deleted child node.
|
void |
enter(NodeState before,
NodeState after)
Called before the given before and after states are compared.
|
void |
leave(NodeState before,
NodeState after)
Called after the given before and after states are compared.
|
void |
propertyAdded(org.apache.jackrabbit.oak.api.PropertyState after)
Processes an added property.
|
void |
propertyChanged(org.apache.jackrabbit.oak.api.PropertyState before,
org.apache.jackrabbit.oak.api.PropertyState after)
Processes a changed property.
|
void |
propertyDeleted(org.apache.jackrabbit.oak.api.PropertyState before)
Processes a removed property.
|
public static final Editor INSTANCE
public void enter(NodeState before, NodeState after) throws org.apache.jackrabbit.oak.api.CommitFailedException
Editorenter in interface Editorbefore - before state, non-existent if this node was addedafter - after state, non-existent if this node was removedorg.apache.jackrabbit.oak.api.CommitFailedException - if this commit should be rejectedpublic void leave(NodeState before, NodeState after) throws org.apache.jackrabbit.oak.api.CommitFailedException
Editorleave in interface Editorbefore - before state, non-existent if this node was addedafter - after state, non-existent if this node was removedorg.apache.jackrabbit.oak.api.CommitFailedException - if this commit should be rejectedpublic void propertyAdded(org.apache.jackrabbit.oak.api.PropertyState after) throws org.apache.jackrabbit.oak.api.CommitFailedException
EditorpropertyAdded in interface Editorafter - the added propertyorg.apache.jackrabbit.oak.api.CommitFailedException - if processing failedpublic void propertyChanged(org.apache.jackrabbit.oak.api.PropertyState before, org.apache.jackrabbit.oak.api.PropertyState after) throws org.apache.jackrabbit.oak.api.CommitFailedException
EditorpropertyChanged in interface Editorbefore - the original propertyafter - the changed propertyorg.apache.jackrabbit.oak.api.CommitFailedException - if processing failedpublic void propertyDeleted(org.apache.jackrabbit.oak.api.PropertyState before) throws org.apache.jackrabbit.oak.api.CommitFailedException
EditorpropertyDeleted in interface Editorbefore - the removed propertyorg.apache.jackrabbit.oak.api.CommitFailedException - if processing failedpublic Editor childNodeAdded(String name, NodeState after) throws org.apache.jackrabbit.oak.api.CommitFailedException
EditorchildNodeAdded in interface Editorname - name of the added nodeafter - the added child nodenull if the subtree does not need processingorg.apache.jackrabbit.oak.api.CommitFailedException - if processing failedpublic Editor childNodeChanged(String name, NodeState before, NodeState after) throws org.apache.jackrabbit.oak.api.CommitFailedException
EditorchildNodeChanged in interface Editorname - name of the changed nodebefore - child node before the changeafter - child node after the changenull if the subtree does not need processingorg.apache.jackrabbit.oak.api.CommitFailedException - if processing failedpublic Editor childNodeDeleted(String name, NodeState before) throws org.apache.jackrabbit.oak.api.CommitFailedException
EditorchildNodeDeleted in interface Editorname - name of the deleted nodebefore - the deleted child nodenull if the subtree does not need processingorg.apache.jackrabbit.oak.api.CommitFailedException - if processing failedCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.