public class ConflictHook extends java.lang.Object implements CommitHook
ThreeWayConflictHandler
for resolving the conflicts.Constructor and Description |
---|
ConflictHook(ThreeWayConflictHandler conflictHandler)
Create a new instance of the conflict hook using the
passed conflict handler for resolving conflicts.
|
Modifier and Type | Method and Description |
---|---|
static ConflictHook |
of(ConflictHandler handler)
Deprecated.
Use
of(ThreeWayConflictHandler) instead. |
static ConflictHook |
of(ThreeWayConflictHandler handler) |
@NotNull NodeState |
processCommit(NodeState before,
NodeState after,
CommitInfo info)
Validates and/or modifies the given content change before it gets
persisted.
|
public ConflictHook(ThreeWayConflictHandler conflictHandler)
conflictHandler
- a conflict handler@Deprecated public static final ConflictHook of(ConflictHandler handler)
of(ThreeWayConflictHandler)
instead.public static final ConflictHook of(ThreeWayConflictHandler handler)
@NotNull public @NotNull 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 rejectedCopyright © 2010 - 2020 Adobe. All Rights Reserved