public class EditorHook extends Object implements CommitHook
Editor instance provided by the EditorProvider
passed to the constructor.| Constructor and Description |
|---|
EditorHook(@NotNull EditorProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull NodeState |
processCommit(@NotNull NodeState before,
@NotNull NodeState after,
@NotNull CommitInfo info)
Validates and/or modifies the given content change before it gets
persisted.
|
String |
toString() |
public EditorHook(@NotNull
@NotNull EditorProvider provider)
@NotNull public @NotNull NodeState processCommit(@NotNull @NotNull NodeState before, @NotNull @NotNull NodeState after, @NotNull @NotNull 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–2021 The Apache Software Foundation. All rights reserved.