Interface PartialConflictHandler
-
- All Known Subinterfaces:
ConflictHandler
- All Known Implementing Classes:
ChildOrderConflictHandler
,DefaultConflictHandler
@Deprecated public interface PartialConflictHandler
Deprecated.UseThreeWayConflictHandler
instead.APartialConflictHandler
is responsible for handling conflicts which happen onRoot.rebase()
and on the implicit rebase operation which takes part onRoot.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 ornull
if it cannot resolve the conflict. The resolution indicates to use the changes in the currentRoot
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 thisConflictHandler
instance (PartialConflictHandler.Resolution.MERGED
).- See Also:
ConflictHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PartialConflictHandler.Resolution
Deprecated.Resolutions for conflicts
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description @Nullable PartialConflictHandler.Resolution
addExistingNode(NodeBuilder parent, java.lang.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, java.lang.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, java.lang.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, java.lang.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 Detail
-
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, java.lang.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, java.lang.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, java.lang.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, java.lang.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
-
-