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 enumDeprecated.Resolutions for conflicts -
Method Summary
Modifier and TypeMethodDescription@Nullable PartialConflictHandler.ResolutionaddExistingNode(NodeBuilder parent, String name, NodeState ours, NodeState theirs) Deprecated.The nodeourshas been added toparentwhich conflicts with nodetheirswhich has been added in the persistence store.@Nullable PartialConflictHandler.ResolutionaddExistingProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs) Deprecated.The propertyourshas been added toparentwhich conflicts with propertytheirswhich has been added in the persistence store.@Nullable PartialConflictHandler.ResolutionchangeChangedProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs) Deprecated.The propertyourshas been changed inparentwhile it was also changed to a different value (theirs) in the persistence store.@Nullable PartialConflictHandler.ResolutionchangeDeletedNode(NodeBuilder parent, String name, NodeState ours) Deprecated.The nodeourshas been changed inparentwhile it was removed in the persistence store.@Nullable PartialConflictHandler.ResolutionchangeDeletedProperty(NodeBuilder parent, PropertyState ours) Deprecated.The propertyourshas been changed inparentwhile it was removed in the persistence store.@Nullable PartialConflictHandler.ResolutiondeleteChangedNode(NodeBuilder parent, String name, NodeState theirs) Deprecated.The nodetheirschanged in the persistence store while it has been deleted locally.@Nullable PartialConflictHandler.ResolutiondeleteChangedProperty(NodeBuilder parent, PropertyState theirs) Deprecated.The propertytheirschanged in the persistence store while it has been deleted locally.@Nullable PartialConflictHandler.ResolutiondeleteDeletedNode(NodeBuilder parent, String name) Deprecated.The nodenamehas been removed inparentwhile it was also removed in the persistence store.@Nullable PartialConflictHandler.ResolutiondeleteDeletedProperty(NodeBuilder parent, PropertyState ours) Deprecated.The propertyourshas been removed inparentwhile it was also removed in the persistence store.
-
Method Details
-
addExistingProperty
@Nullable @Nullable PartialConflictHandler.Resolution addExistingProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs) Deprecated.The propertyourshas been added toparentwhich conflicts with propertytheirswhich 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.Resolutionof the conflict ornull
-
changeDeletedProperty
@Nullable @Nullable PartialConflictHandler.Resolution changeDeletedProperty(NodeBuilder parent, PropertyState ours) Deprecated.The propertyourshas been changed inparentwhile it was removed in the persistence store.- Parameters:
parent- root of the conflictours- our version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict ornull
-
changeChangedProperty
@Nullable @Nullable PartialConflictHandler.Resolution changeChangedProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs) Deprecated.The propertyourshas been changed inparentwhile 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.Resolutionof the conflict ornull
-
deleteDeletedProperty
@Nullable @Nullable PartialConflictHandler.Resolution deleteDeletedProperty(NodeBuilder parent, PropertyState ours) Deprecated.The propertyourshas been removed inparentwhile it was also removed in the persistence store.- Parameters:
parent- root of the conflictours- our version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict ornull
-
deleteChangedProperty
@Nullable @Nullable PartialConflictHandler.Resolution deleteChangedProperty(NodeBuilder parent, PropertyState theirs) Deprecated.The propertytheirschanged in the persistence store while it has been deleted locally.- Parameters:
parent- root of the conflicttheirs- their version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict ornull
-
addExistingNode
@Nullable @Nullable PartialConflictHandler.Resolution addExistingNode(NodeBuilder parent, String name, NodeState ours, NodeState theirs) Deprecated.The nodeourshas been added toparentwhich conflicts with nodetheirswhich 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.Resolutionof the conflict ornull
-
changeDeletedNode
@Nullable @Nullable PartialConflictHandler.Resolution changeDeletedNode(NodeBuilder parent, String name, NodeState ours) Deprecated.The nodeourshas been changed inparentwhile it was removed in the persistence store.- Parameters:
parent- root of the conflictname- name of the nodeours- our version of the node- Returns:
PartialConflictHandler.Resolutionof the conflict ornull
-
deleteChangedNode
@Nullable @Nullable PartialConflictHandler.Resolution deleteChangedNode(NodeBuilder parent, String name, NodeState theirs) Deprecated.The nodetheirschanged 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.Resolutionof the conflict ornull
-
deleteDeletedNode
@Nullable @Nullable PartialConflictHandler.Resolution deleteDeletedNode(NodeBuilder parent, String name) Deprecated.The nodenamehas been removed inparentwhile it was also removed in the persistence store.- Parameters:
parent- root of the conflictname- name of the node- Returns:
PartialConflictHandler.Resolutionof the conflict ornull
-
ThreeWayConflictHandlerinstead.