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 classVersionablePropertiesEditor.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 EditorchildNodeAdded(String name, NodeState after)Processes an added child node.EditorchildNodeChanged(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:EditorProcesses an added child node.- Specified by:
childNodeAddedin interfaceEditor- Overrides:
childNodeAddedin classDefaultEditor- Parameters:
name- name of the added nodeafter- the added child node- Returns:
- an editor for processing the subtree below the added node,
or
nullif 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:EditorProcesses a changed child node. This method gets called for all child nodes that may contain changes between the before and after states.- Specified by:
childNodeChangedin interfaceEditor- Overrides:
childNodeChangedin 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
nullif the subtree does not need processing - Throws:
CommitFailedException- if processing failed
-
-