public class EditorHook extends java.lang.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.
|
java.lang.String |
toString() |
public EditorHook(EditorProvider provider)
public NodeState processCommit(NodeState before, NodeState after, CommitInfo info) throws CommitFailedException
CommitHookprocessCommit in interface CommitHookbefore - content tree before the commitafter - content tree prepared for the commitinfo - metadata associated with this commitCommitFailedException - if the commit should be rejectedpublic java.lang.String toString()
toString in class java.lang.Object"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"