public class CompositeHook extends java.lang.Object implements CommitHook
| Constructor and Description |
|---|
CompositeHook(CommitHook... hooks) |
| Modifier and Type | Method and Description |
|---|---|
static CommitHook |
compose(@NotNull java.util.Collection<CommitHook> hooks) |
@NotNull NodeState |
processCommit(NodeState before,
NodeState after,
CommitInfo info)
Validates and/or modifies the given content change before it gets
persisted.
|
public CompositeHook(CommitHook... hooks)
public static CommitHook compose(@NotNull @NotNull java.util.Collection<CommitHook> hooks)
@NotNull public @NotNull 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 rejectedCopyright © 2010 - 2023 Adobe. All Rights Reserved