Class VersionablePropertiesEditor
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.commit.DefaultEditor
-
- org.apache.jackrabbit.oak.plugins.migration.version.VersionablePropertiesEditor
-
- All Implemented Interfaces:
Editor
public final class VersionablePropertiesEditor extends DefaultEditor
The VersionablePropertiesEditor adds missing versionable properties.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VersionablePropertiesEditor.Provider
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.oak.spi.commit.DefaultEditor
INSTANCE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.apache.jackrabbit.oak.spi.commit.DefaultEditor
childNodeDeleted, enter, leave, propertyAdded, propertyChanged, propertyDeleted
-
-
-
-
Method Detail
-
childNodeAdded
public Editor childNodeAdded(String name, NodeState after) throws CommitFailedException
Description copied from interface:Editor
Processes an added child node.- Specified by:
childNodeAdded
in interfaceEditor
- Overrides:
childNodeAdded
in classDefaultEditor
- Parameters:
name
- name of the added nodeafter
- the added child node- Returns:
- an editor for processing the subtree below the added node,
or
null
if the subtree does not need processing - Throws:
CommitFailedException
- if processing failed
-
childNodeChanged
public Editor childNodeChanged(String name, NodeState before, NodeState after) throws CommitFailedException
Description copied from interface:Editor
Processes a changed child node. This method gets called for all child nodes that may contain changes between the before and after states.- Specified by:
childNodeChanged
in interfaceEditor
- Overrides:
childNodeChanged
in classDefaultEditor
- Parameters:
name
- name of the changed nodebefore
- child node before the changeafter
- child node after the change- Returns:
- an editor for processing the subtree below the added node,
or
null
if the subtree does not need processing - Throws:
CommitFailedException
- if processing failed
-
-