public class EditorHook extends Object implements CommitHook
Editor instance provided by the EditorProvider
passed to the constructor.| Constructor and Description |
|---|
EditorHook(EditorProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
NodeState |
processCommit(NodeState before,
NodeState after,
CommitInfo info)
Validates and/or modifies the given content change before it gets
persisted.
|
String |
toString() |
public EditorHook(@Nonnull EditorProvider provider)
@Nonnull public NodeState processCommit(@Nonnull NodeState before, @Nonnull NodeState after, @Nonnull CommitInfo info) throws org.apache.jackrabbit.oak.api.CommitFailedException
CommitHookprocessCommit in interface CommitHookbefore - content tree before the commitafter - content tree prepared for the commitinfo - metadata associated with this commitorg.apache.jackrabbit.oak.api.CommitFailedException - if the commit should be rejectedCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.