public class EditorHook extends java.lang.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.
|
java.lang.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 CommitFailedException
CommitHook
processCommit
in interface CommitHook
before
- 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. All Rights Reserved