Interface ConflictHandler
-
- All Superinterfaces:
PartialConflictHandler
- All Known Implementing Classes:
DefaultConflictHandler
@Deprecated public interface ConflictHandler extends PartialConflictHandler
Deprecated.UseThreeWayConflictHandlerinstead.AConflictHandleris 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 must return aPartialConflictHandler.Resolutionfor the current 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).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.commit.PartialConflictHandler
PartialConflictHandler.Resolution
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description @NotNull 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.@NotNull PartialConflictHandler.ResolutionaddExistingProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs)Deprecated.The propertyourshas been added toparentwhich conflicts with propertytheirswhich has been added in the persistence store.@NotNull 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.@NotNull PartialConflictHandler.ResolutionchangeDeletedNode(NodeBuilder parent, java.lang.String name, NodeState ours)Deprecated.The nodeourshas been changed inparentwhile it was removed in the persistence store.@NotNull PartialConflictHandler.ResolutionchangeDeletedProperty(NodeBuilder parent, PropertyState ours)Deprecated.The propertyourshas been changed inparentwhile it was removed in the persistence store.@NotNull PartialConflictHandler.ResolutiondeleteChangedNode(NodeBuilder parent, java.lang.String name, NodeState theirs)Deprecated.The nodetheirschanged in the persistence store while it has been deleted locally.@NotNull PartialConflictHandler.ResolutiondeleteChangedProperty(NodeBuilder parent, PropertyState theirs)Deprecated.The propertytheirschanged in the persistence store while it has been deleted locally.@NotNull PartialConflictHandler.ResolutiondeleteDeletedNode(NodeBuilder parent, java.lang.String name)Deprecated.The nodenamehas been removed inparentwhile it was also removed in the persistence store.@NotNull PartialConflictHandler.ResolutiondeleteDeletedProperty(NodeBuilder parent, PropertyState ours)Deprecated.The propertyourshas been removed inparentwhile it was also removed in the persistence store.
-
-
-
Method Detail
-
addExistingProperty
@NotNull @NotNull 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.- Specified by:
addExistingPropertyin interfacePartialConflictHandler- Parameters:
parent- root of the conflictours- our version of the propertytheirs- their version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict
-
changeDeletedProperty
@NotNull @NotNull PartialConflictHandler.Resolution changeDeletedProperty(NodeBuilder parent, PropertyState ours)
Deprecated.The propertyourshas been changed inparentwhile it was removed in the persistence store.- Specified by:
changeDeletedPropertyin interfacePartialConflictHandler- Parameters:
parent- root of the conflictours- our version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict
-
changeChangedProperty
@NotNull @NotNull 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.- Specified by:
changeChangedPropertyin interfacePartialConflictHandler- Parameters:
parent- root of the conflictours- our version of the propertytheirs- their version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict
-
deleteDeletedProperty
@NotNull @NotNull PartialConflictHandler.Resolution deleteDeletedProperty(NodeBuilder parent, PropertyState ours)
Deprecated.The propertyourshas been removed inparentwhile it was also removed in the persistence store.- Specified by:
deleteDeletedPropertyin interfacePartialConflictHandler- Parameters:
parent- root of the conflictours- our version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict
-
deleteChangedProperty
@NotNull @NotNull PartialConflictHandler.Resolution deleteChangedProperty(NodeBuilder parent, PropertyState theirs)
Deprecated.The propertytheirschanged in the persistence store while it has been deleted locally.- Specified by:
deleteChangedPropertyin interfacePartialConflictHandler- Parameters:
parent- root of the conflicttheirs- their version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict
-
addExistingNode
@NotNull @NotNull 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.- Specified by:
addExistingNodein interfacePartialConflictHandler- 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
-
changeDeletedNode
@NotNull @NotNull PartialConflictHandler.Resolution changeDeletedNode(NodeBuilder parent, java.lang.String name, NodeState ours)
Deprecated.The nodeourshas been changed inparentwhile it was removed in the persistence store.- Specified by:
changeDeletedNodein interfacePartialConflictHandler- Parameters:
parent- root of the conflictname- name of the nodeours- our version of the node- Returns:
PartialConflictHandler.Resolutionof the conflict
-
deleteChangedNode
@NotNull @NotNull PartialConflictHandler.Resolution deleteChangedNode(NodeBuilder parent, java.lang.String name, NodeState theirs)
Deprecated.The nodetheirschanged in the persistence store while it has been deleted locally.- Specified by:
deleteChangedNodein interfacePartialConflictHandler- Parameters:
parent- root of the conflictname- name of the nodetheirs- their version of the node- Returns:
PartialConflictHandler.Resolutionof the conflict
-
deleteDeletedNode
@NotNull @NotNull PartialConflictHandler.Resolution deleteDeletedNode(NodeBuilder parent, java.lang.String name)
Deprecated.The nodenamehas been removed inparentwhile it was also removed in the persistence store.- Specified by:
deleteDeletedNodein interfacePartialConflictHandler- Parameters:
parent- root of the conflictname- name of the node- Returns:
PartialConflictHandler.Resolutionof the conflict
-
-