Interface ConflictHandler
- All Superinterfaces:
PartialConflictHandler
Deprecated.
A
ConflictHandler 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 must return a PartialConflictHandler.Resolution for the current 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).-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.commit.PartialConflictHandler
PartialConflictHandler.Resolution -
Method Summary
Modifier and TypeMethodDescription@NotNull 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.@NotNull PartialConflictHandler.ResolutionaddExistingProperty(NodeBuilder parent, org.apache.jackrabbit.oak.api.PropertyState ours, org.apache.jackrabbit.oak.api.PropertyState theirs) Deprecated.The propertyourshas been added toparentwhich conflicts with propertytheirswhich has been added in the persistence store.@NotNull PartialConflictHandler.ResolutionchangeChangedProperty(NodeBuilder parent, org.apache.jackrabbit.oak.api.PropertyState ours, org.apache.jackrabbit.oak.api.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, String name, NodeState ours) Deprecated.The nodeourshas been changed inparentwhile it was removed in the persistence store.@NotNull PartialConflictHandler.ResolutionchangeDeletedProperty(NodeBuilder parent, org.apache.jackrabbit.oak.api.PropertyState ours) Deprecated.The propertyourshas been changed inparentwhile it was removed in the persistence store.@NotNull PartialConflictHandler.ResolutiondeleteChangedNode(NodeBuilder parent, String name, NodeState theirs) Deprecated.The nodetheirschanged in the persistence store while it has been deleted locally.@NotNull PartialConflictHandler.ResolutiondeleteChangedProperty(NodeBuilder parent, org.apache.jackrabbit.oak.api.PropertyState theirs) Deprecated.The propertytheirschanged in the persistence store while it has been deleted locally.@NotNull PartialConflictHandler.ResolutiondeleteDeletedNode(NodeBuilder parent, String name) Deprecated.The nodenamehas been removed inparentwhile it was also removed in the persistence store.@NotNull PartialConflictHandler.ResolutiondeleteDeletedProperty(NodeBuilder parent, org.apache.jackrabbit.oak.api.PropertyState ours) Deprecated.The propertyourshas been removed inparentwhile it was also removed in the persistence store.
-
Method Details
-
addExistingProperty
@NotNull @NotNull PartialConflictHandler.Resolution addExistingProperty(NodeBuilder parent, org.apache.jackrabbit.oak.api.PropertyState ours, org.apache.jackrabbit.oak.api.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, org.apache.jackrabbit.oak.api.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, org.apache.jackrabbit.oak.api.PropertyState ours, org.apache.jackrabbit.oak.api.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, org.apache.jackrabbit.oak.api.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, org.apache.jackrabbit.oak.api.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, 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, 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, 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, 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
-
ThreeWayConflictHandlerinstead.