public class AnnotatingConflictHandler extends java.lang.Object implements ThreeWayConflictHandler
ThreeWayConflictHandler implementation resolves conflicts to
ThreeWayConflictHandler.Resolution.THEIRS and in addition marks nodes where a
conflict occurred with the mixin rep:MergeConflict:
[rep:MergeConflict] mixin primaryitem rep:ours + rep:ours (rep:Unstructured) protected IGNOREThe
rep:ours sub node contains our version of the node prior to
the conflict.ConflictValidatorThreeWayConflictHandler.Resolution| Constructor and Description |
|---|
AnnotatingConflictHandler() |
| Modifier and Type | Method and Description |
|---|---|
ThreeWayConflictHandler.Resolution |
addExistingNode(NodeBuilder parent,
java.lang.String name,
NodeState ours,
NodeState theirs)
The node
ours has been added to parent which conflicts
with node theirs which has been added in the persistence store. |
ThreeWayConflictHandler.Resolution |
addExistingProperty(NodeBuilder parent,
PropertyState ours,
PropertyState theirs)
The property
ours has been added to parent which conflicts
with property theirs which has been added in the persistence store. |
ThreeWayConflictHandler.Resolution |
changeChangedProperty(NodeBuilder parent,
PropertyState ours,
PropertyState theirs,
PropertyState base)
The property
ours has been changed in parent while it was
also changed to a different value (theirs) in the persistence store. |
ThreeWayConflictHandler.Resolution |
changeDeletedNode(NodeBuilder parent,
java.lang.String name,
NodeState ours,
NodeState base)
The node
ours has been changed in parent while it was
removed in the persistence store. |
ThreeWayConflictHandler.Resolution |
changeDeletedProperty(NodeBuilder parent,
PropertyState ours,
PropertyState base)
The property
ours has been changed in parent while it was
removed in the persistence store. |
ThreeWayConflictHandler.Resolution |
deleteChangedNode(NodeBuilder parent,
java.lang.String name,
NodeState theirs,
NodeState base)
The node
theirs changed in the persistence store while it has been
deleted locally. |
ThreeWayConflictHandler.Resolution |
deleteChangedProperty(NodeBuilder parent,
PropertyState theirs,
PropertyState base)
The property
theirs changed in the persistence store while it has been
deleted locally. |
ThreeWayConflictHandler.Resolution |
deleteDeletedNode(NodeBuilder parent,
java.lang.String name,
NodeState base)
The node
name has been removed in parent while it was
also removed in the persistence store. |
ThreeWayConflictHandler.Resolution |
deleteDeletedProperty(NodeBuilder parent,
PropertyState base)
The property
ours has been removed in parent while it was
also removed in the persistence store. |
public ThreeWayConflictHandler.Resolution addExistingProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs)
ThreeWayConflictHandlerours has been added to parent which conflicts
with property theirs which has been added in the persistence store.addExistingProperty in interface ThreeWayConflictHandlerparent - root of the conflictours - our version of the propertytheirs - their version of the propertyThreeWayConflictHandler.Resolution of the conflictpublic ThreeWayConflictHandler.Resolution changeDeletedProperty(NodeBuilder parent, PropertyState ours, PropertyState base)
ThreeWayConflictHandlerours has been changed in parent while it was
removed in the persistence store.changeDeletedProperty in interface ThreeWayConflictHandlerparent - root of the conflictours - our version of the propertybase - the base version of the propertyThreeWayConflictHandler.Resolution of the conflictpublic ThreeWayConflictHandler.Resolution changeChangedProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs, PropertyState base)
ThreeWayConflictHandlerours has been changed in parent while it was
also changed to a different value (theirs) in the persistence store.changeChangedProperty in interface ThreeWayConflictHandlerparent - root of the conflictours - our version of the propertytheirs - their version of the propertybase - the base version of the propertyThreeWayConflictHandler.Resolution of the conflictpublic ThreeWayConflictHandler.Resolution deleteChangedProperty(NodeBuilder parent, PropertyState theirs, PropertyState base)
ThreeWayConflictHandlertheirs changed in the persistence store while it has been
deleted locally.deleteChangedProperty in interface ThreeWayConflictHandlerparent - root of the conflicttheirs - their version of the propertybase - the base version of the propertyThreeWayConflictHandler.Resolution of the conflictpublic ThreeWayConflictHandler.Resolution deleteDeletedProperty(NodeBuilder parent, PropertyState base)
ThreeWayConflictHandlerours has been removed in parent while it was
also removed in the persistence store.deleteDeletedProperty in interface ThreeWayConflictHandlerparent - root of the conflictbase - the base version of the propertyThreeWayConflictHandler.Resolution of the conflictpublic ThreeWayConflictHandler.Resolution addExistingNode(NodeBuilder parent, java.lang.String name, NodeState ours, NodeState theirs)
ThreeWayConflictHandlerours has been added to parent which conflicts
with node theirs which has been added in the persistence store.addExistingNode in interface ThreeWayConflictHandlerparent - root of the conflictname - name of the nodeours - our version of the nodetheirs - their version of the nodeThreeWayConflictHandler.Resolution of the conflictpublic ThreeWayConflictHandler.Resolution changeDeletedNode(NodeBuilder parent, java.lang.String name, NodeState ours, NodeState base)
ThreeWayConflictHandlerours has been changed in parent while it was
removed in the persistence store.changeDeletedNode in interface ThreeWayConflictHandlerparent - root of the conflictname - name of the nodeours - our version of the nodebase - the base version of the nodeThreeWayConflictHandler.Resolution of the conflictpublic ThreeWayConflictHandler.Resolution deleteChangedNode(NodeBuilder parent, java.lang.String name, NodeState theirs, NodeState base)
ThreeWayConflictHandlertheirs changed in the persistence store while it has been
deleted locally.deleteChangedNode in interface ThreeWayConflictHandlerparent - root of the conflictname - name of the nodetheirs - their version of the nodebase - the base version of the nodeThreeWayConflictHandler.Resolution of the conflictpublic ThreeWayConflictHandler.Resolution deleteDeletedNode(NodeBuilder parent, java.lang.String name, NodeState base)
ThreeWayConflictHandlername has been removed in parent while it was
also removed in the persistence store.deleteDeletedNode in interface ThreeWayConflictHandlerparent - root of the conflictname - name of the nodebase - the base version of the nodeThreeWayConflictHandler.Resolution of the conflictCopyright © 2010 - 2023 Adobe. All Rights Reserved