Interface PartialConflictHandler
- All Known Subinterfaces:
ConflictHandler
- All Known Implementing Classes:
ChildOrderConflictHandler
,DefaultConflictHandler
Deprecated.
A
PartialConflictHandler
is responsible for handling conflicts which happen
on Root.rebase()
and on the implicit rebase operation which
takes part on Root.commit()
.
This interface contains one method per type of conflict which might occur.
Each of these methods may return a PartialConflictHandler.Resolution
for the current conflict or
null
if it cannot resolve the conflict.
The resolution indicates to use the changes in the current Root
instance
(PartialConflictHandler.Resolution.OURS
) or to use the changes from the underlying persistence
store (PartialConflictHandler.Resolution.THEIRS
). Alternatively the resolution can also indicate
that the changes have been successfully merged by this ConflictHandler
instance (PartialConflictHandler.Resolution.MERGED
).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Deprecated.Resolutions for conflicts -
Method Summary
Modifier and TypeMethodDescription@Nullable PartialConflictHandler.Resolution
addExistingNode
(NodeBuilder parent, String name, NodeState ours, NodeState theirs) Deprecated.The nodeours
has been added toparent
which conflicts with nodetheirs
which has been added in the persistence store.@Nullable PartialConflictHandler.Resolution
addExistingProperty
(NodeBuilder parent, PropertyState ours, PropertyState theirs) Deprecated.The propertyours
has been added toparent
which conflicts with propertytheirs
which has been added in the persistence store.@Nullable PartialConflictHandler.Resolution
changeChangedProperty
(NodeBuilder parent, PropertyState ours, PropertyState theirs) Deprecated.The propertyours
has been changed inparent
while it was also changed to a different value (theirs
) in the persistence store.@Nullable PartialConflictHandler.Resolution
changeDeletedNode
(NodeBuilder parent, String name, NodeState ours) Deprecated.The nodeours
has been changed inparent
while it was removed in the persistence store.@Nullable PartialConflictHandler.Resolution
changeDeletedProperty
(NodeBuilder parent, PropertyState ours) Deprecated.The propertyours
has been changed inparent
while it was removed in the persistence store.@Nullable PartialConflictHandler.Resolution
deleteChangedNode
(NodeBuilder parent, String name, NodeState theirs) Deprecated.The nodetheirs
changed in the persistence store while it has been deleted locally.@Nullable PartialConflictHandler.Resolution
deleteChangedProperty
(NodeBuilder parent, PropertyState theirs) Deprecated.The propertytheirs
changed in the persistence store while it has been deleted locally.@Nullable PartialConflictHandler.Resolution
deleteDeletedNode
(NodeBuilder parent, String name) Deprecated.The nodename
has been removed inparent
while it was also removed in the persistence store.@Nullable PartialConflictHandler.Resolution
deleteDeletedProperty
(NodeBuilder parent, PropertyState ours) Deprecated.The propertyours
has been removed inparent
while it was also removed in the persistence store.
-
Method Details
-
addExistingProperty
@Nullable @Nullable PartialConflictHandler.Resolution addExistingProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs) Deprecated.The propertyours
has been added toparent
which conflicts with propertytheirs
which has been added in the persistence store.- Parameters:
parent
- root of the conflictours
- our version of the propertytheirs
- their version of the property- Returns:
PartialConflictHandler.Resolution
of the conflict ornull
-
changeDeletedProperty
@Nullable @Nullable PartialConflictHandler.Resolution changeDeletedProperty(NodeBuilder parent, PropertyState ours) Deprecated.The propertyours
has been changed inparent
while it was removed in the persistence store.- Parameters:
parent
- root of the conflictours
- our version of the property- Returns:
PartialConflictHandler.Resolution
of the conflict ornull
-
changeChangedProperty
@Nullable @Nullable PartialConflictHandler.Resolution changeChangedProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs) Deprecated.The propertyours
has been changed inparent
while it was also changed to a different value (theirs
) in the persistence store.- Parameters:
parent
- root of the conflictours
- our version of the propertytheirs
- their version of the property- Returns:
PartialConflictHandler.Resolution
of the conflict ornull
-
deleteDeletedProperty
@Nullable @Nullable PartialConflictHandler.Resolution deleteDeletedProperty(NodeBuilder parent, PropertyState ours) Deprecated.The propertyours
has been removed inparent
while it was also removed in the persistence store.- Parameters:
parent
- root of the conflictours
- our version of the property- Returns:
PartialConflictHandler.Resolution
of the conflict ornull
-
deleteChangedProperty
@Nullable @Nullable PartialConflictHandler.Resolution deleteChangedProperty(NodeBuilder parent, PropertyState theirs) Deprecated.The propertytheirs
changed in the persistence store while it has been deleted locally.- Parameters:
parent
- root of the conflicttheirs
- their version of the property- Returns:
PartialConflictHandler.Resolution
of the conflict ornull
-
addExistingNode
@Nullable @Nullable PartialConflictHandler.Resolution addExistingNode(NodeBuilder parent, String name, NodeState ours, NodeState theirs) Deprecated.The nodeours
has been added toparent
which conflicts with nodetheirs
which has been added in the persistence store.- Parameters:
parent
- root of the conflictname
- name of the nodeours
- our version of the nodetheirs
- their version of the node- Returns:
PartialConflictHandler.Resolution
of the conflict ornull
-
changeDeletedNode
@Nullable @Nullable PartialConflictHandler.Resolution changeDeletedNode(NodeBuilder parent, String name, NodeState ours) Deprecated.The nodeours
has been changed inparent
while it was removed in the persistence store.- Parameters:
parent
- root of the conflictname
- name of the nodeours
- our version of the node- Returns:
PartialConflictHandler.Resolution
of the conflict ornull
-
deleteChangedNode
@Nullable @Nullable PartialConflictHandler.Resolution deleteChangedNode(NodeBuilder parent, String name, NodeState theirs) Deprecated.The nodetheirs
changed in the persistence store while it has been deleted locally.- Parameters:
parent
- root of the conflictname
- name of the nodetheirs
- their version of the node- Returns:
PartialConflictHandler.Resolution
of the conflict ornull
-
deleteDeletedNode
@Nullable @Nullable PartialConflictHandler.Resolution deleteDeletedNode(NodeBuilder parent, String name) Deprecated.The nodename
has been removed inparent
while it was also removed in the persistence store.- Parameters:
parent
- root of the conflictname
- name of the node- Returns:
PartialConflictHandler.Resolution
of the conflict ornull
-
ThreeWayConflictHandler
instead.