public class CompositeHook extends java.lang.Object implements CommitHook
Constructor and Description |
---|
CompositeHook(CommitHook... hooks) |
Modifier and Type | Method and Description |
---|---|
static CommitHook |
compose(java.util.Collection<CommitHook> hooks) |
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(java.util.Collection<CommitHook> hooks)
public NodeState processCommit(NodeState before, NodeState after, 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 rejected"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"