public class ConflictHook extends Object implements CommitHook
ConflictHandler
for resolving the conflicts.Constructor and Description |
---|
ConflictHook(ConflictHandler conflictHandler)
Create a new instance of the conflict hook using the
passed conflict handler for resolving conflicts.
|
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.
|
public ConflictHook(ConflictHandler conflictHandler)
conflictHandler
- a conflict handlerpublic 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 © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"