Interface ConflictHandler
- All Superinterfaces:
PartialConflictHandler
- All Known Implementing Classes:
DefaultConflictHandler
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.Resolution
addExistingNode
(NodeBuilder parent, 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.@NotNull 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.@NotNull 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.@NotNull PartialConflictHandler.Resolution
changeDeletedNode
(NodeBuilder parent, String name, NodeState ours) Deprecated.The nodeours
has been changed inparent
while it was removed in the persistence store.@NotNull PartialConflictHandler.Resolution
changeDeletedProperty
(NodeBuilder parent, PropertyState ours) Deprecated.The propertyours
has been changed inparent
while it was removed in the persistence store.@NotNull PartialConflictHandler.Resolution
deleteChangedNode
(NodeBuilder parent, String name, NodeState theirs) Deprecated.The nodetheirs
changed in the persistence store while it has been deleted locally.@NotNull PartialConflictHandler.Resolution
deleteChangedProperty
(NodeBuilder parent, PropertyState theirs) Deprecated.The propertytheirs
changed in the persistence store while it has been deleted locally.@NotNull PartialConflictHandler.Resolution
deleteDeletedNode
(NodeBuilder parent, String name) Deprecated.The nodename
has been removed inparent
while it was also removed in the persistence store.@NotNull PartialConflictHandler.Resolution
deleteDeletedProperty
(NodeBuilder parent, PropertyState ours) Deprecated.The propertyours
has been removed inparent
while it was also removed in the persistence store.
-
Method Details
-
addExistingProperty
@NotNull @NotNull 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.- Specified by:
addExistingProperty
in interfacePartialConflictHandler
- Parameters:
parent
- root of the conflictours
- our version of the propertytheirs
- their version of the property- Returns:
PartialConflictHandler.Resolution
of the conflict
-
changeDeletedProperty
@NotNull @NotNull PartialConflictHandler.Resolution changeDeletedProperty(NodeBuilder parent, PropertyState ours) Deprecated.The propertyours
has been changed inparent
while it was removed in the persistence store.- Specified by:
changeDeletedProperty
in interfacePartialConflictHandler
- Parameters:
parent
- root of the conflictours
- our version of the property- Returns:
PartialConflictHandler.Resolution
of the conflict
-
changeChangedProperty
@NotNull @NotNull 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.- Specified by:
changeChangedProperty
in interfacePartialConflictHandler
- Parameters:
parent
- root of the conflictours
- our version of the propertytheirs
- their version of the property- Returns:
PartialConflictHandler.Resolution
of the conflict
-
deleteDeletedProperty
@NotNull @NotNull PartialConflictHandler.Resolution deleteDeletedProperty(NodeBuilder parent, PropertyState ours) Deprecated.The propertyours
has been removed inparent
while it was also removed in the persistence store.- Specified by:
deleteDeletedProperty
in interfacePartialConflictHandler
- Parameters:
parent
- root of the conflictours
- our version of the property- Returns:
PartialConflictHandler.Resolution
of the conflict
-
deleteChangedProperty
@NotNull @NotNull PartialConflictHandler.Resolution deleteChangedProperty(NodeBuilder parent, PropertyState theirs) Deprecated.The propertytheirs
changed in the persistence store while it has been deleted locally.- Specified by:
deleteChangedProperty
in interfacePartialConflictHandler
- Parameters:
parent
- root of the conflicttheirs
- their version of the property- Returns:
PartialConflictHandler.Resolution
of the conflict
-
addExistingNode
@NotNull @NotNull PartialConflictHandler.Resolution addExistingNode(NodeBuilder parent, 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.- Specified by:
addExistingNode
in interfacePartialConflictHandler
- 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
-
changeDeletedNode
@NotNull @NotNull PartialConflictHandler.Resolution changeDeletedNode(NodeBuilder parent, String name, NodeState ours) Deprecated.The nodeours
has been changed inparent
while it was removed in the persistence store.- Specified by:
changeDeletedNode
in interfacePartialConflictHandler
- Parameters:
parent
- root of the conflictname
- name of the nodeours
- our version of the node- Returns:
PartialConflictHandler.Resolution
of the conflict
-
deleteChangedNode
@NotNull @NotNull PartialConflictHandler.Resolution deleteChangedNode(NodeBuilder parent, String name, NodeState theirs) Deprecated.The nodetheirs
changed in the persistence store while it has been deleted locally.- Specified by:
deleteChangedNode
in interfacePartialConflictHandler
- Parameters:
parent
- root of the conflictname
- name of the nodetheirs
- their version of the node- Returns:
PartialConflictHandler.Resolution
of the conflict
-
deleteDeletedNode
@NotNull @NotNull PartialConflictHandler.Resolution deleteDeletedNode(NodeBuilder parent, String name) Deprecated.The nodename
has been removed inparent
while it was also removed in the persistence store.- Specified by:
deleteDeletedNode
in interfacePartialConflictHandler
- Parameters:
parent
- root of the conflictname
- name of the node- Returns:
PartialConflictHandler.Resolution
of the conflict
-
ThreeWayConflictHandler
instead.