Interface PartialConflictHandler
- 
- All Known Subinterfaces:
 ConflictHandler
- All Known Implementing Classes:
 ChildOrderConflictHandler,DefaultConflictHandler
@Deprecated public interface PartialConflictHandlerDeprecated.UseThreeWayConflictHandlerinstead.APartialConflictHandleris 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.Resolutionfor the current conflict ornullif it cannot resolve the conflict. The resolution indicates to use the changes in the currentRootinstance (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 thisConflictHandlerinstance (PartialConflictHandler.Resolution.MERGED).- See Also:
 ConflictHandler
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPartialConflictHandler.ResolutionDeprecated.Resolutions for conflicts 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description @Nullable PartialConflictHandler.ResolutionaddExistingNode(NodeBuilder parent, java.lang.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, java.lang.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, java.lang.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, java.lang.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 Detail
- 
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, java.lang.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, java.lang.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, java.lang.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, java.lang.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
 
 - 
 
 -