Class DefaultConflictHandler
java.lang.Object
org.apache.jackrabbit.oak.plugins.commit.DefaultConflictHandler
- All Implemented Interfaces:
ConflictHandler,PartialConflictHandler
Deprecated.
This implementation of a
ConflictHandler always returns the same resolution.
It can be used to implement default behaviour or as a base class for more specialised
implementations.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.commit.PartialConflictHandler
PartialConflictHandler.Resolution -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConflictHandlerDeprecated.AConflictHandlerwhich always returnPartialConflictHandler.Resolution.OURS.static final ConflictHandlerDeprecated.AConflictHandlerwhich always returnPartialConflictHandler.Resolution.THEIRS. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a newConflictHandlerwhich always returnsresolution. -
Method Summary
Modifier and TypeMethodDescriptionaddExistingNode(NodeBuilder parent, String name, NodeState ours, NodeState theirs) Deprecated.The nodeourshas been added toparentwhich conflicts with nodetheirswhich has been added in the persistence store.addExistingProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs) Deprecated.The propertyourshas been added toparentwhich conflicts with propertytheirswhich has been added in the persistence store.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.changeDeletedNode(NodeBuilder parent, String name, NodeState ours) Deprecated.The nodeourshas been changed inparentwhile it was removed in the persistence store.changeDeletedProperty(NodeBuilder parent, PropertyState ours) Deprecated.The propertyourshas been changed inparentwhile it was removed in the persistence store.deleteChangedNode(NodeBuilder parent, String name, NodeState theirs) Deprecated.The nodetheirschanged in the persistence store while it has been deleted locally.deleteChangedProperty(NodeBuilder parent, PropertyState theirs) Deprecated.The propertytheirschanged in the persistence store while it has been deleted locally.deleteDeletedNode(NodeBuilder parent, String name) Deprecated.The nodenamehas been removed inparentwhile it was also removed in the persistence store.deleteDeletedProperty(NodeBuilder parent, PropertyState ours) Deprecated.The propertyourshas been removed inparentwhile it was also removed in the persistence store.
-
Field Details
-
OURS
Deprecated.AConflictHandlerwhich always returnPartialConflictHandler.Resolution.OURS. -
THEIRS
Deprecated.AConflictHandlerwhich always returnPartialConflictHandler.Resolution.THEIRS.
-
-
Constructor Details
-
DefaultConflictHandler
Deprecated.Create a newConflictHandlerwhich always returnsresolution.- Parameters:
resolution- the resolution to return from all methods of thisConflictHandlerinstance.
-
-
Method Details
-
addExistingProperty
public PartialConflictHandler.Resolution addExistingProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs) Deprecated.Description copied from interface:ConflictHandlerThe propertyourshas been added toparentwhich conflicts with propertytheirswhich has been added in the persistence store.- Specified by:
addExistingPropertyin interfaceConflictHandler- 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
public PartialConflictHandler.Resolution changeDeletedProperty(NodeBuilder parent, PropertyState ours) Deprecated.Description copied from interface:ConflictHandlerThe propertyourshas been changed inparentwhile it was removed in the persistence store.- Specified by:
changeDeletedPropertyin interfaceConflictHandler- Specified by:
changeDeletedPropertyin interfacePartialConflictHandler- Parameters:
parent- root of the conflictours- our version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict
-
changeChangedProperty
public PartialConflictHandler.Resolution changeChangedProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs) Deprecated.Description copied from interface:ConflictHandlerThe propertyourshas been changed inparentwhile it was also changed to a different value (theirs) in the persistence store.- Specified by:
changeChangedPropertyin interfaceConflictHandler- 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
-
deleteChangedProperty
public PartialConflictHandler.Resolution deleteChangedProperty(NodeBuilder parent, PropertyState theirs) Deprecated.Description copied from interface:ConflictHandlerThe propertytheirschanged in the persistence store while it has been deleted locally.- Specified by:
deleteChangedPropertyin interfaceConflictHandler- Specified by:
deleteChangedPropertyin interfacePartialConflictHandler- Parameters:
parent- root of the conflicttheirs- their version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict
-
deleteDeletedProperty
public PartialConflictHandler.Resolution deleteDeletedProperty(NodeBuilder parent, PropertyState ours) Deprecated.Description copied from interface:ConflictHandlerThe propertyourshas been removed inparentwhile it was also removed in the persistence store.- Specified by:
deleteDeletedPropertyin interfaceConflictHandler- Specified by:
deleteDeletedPropertyin interfacePartialConflictHandler- Parameters:
parent- root of the conflictours- our version of the property- Returns:
PartialConflictHandler.Resolutionof the conflict
-
addExistingNode
public PartialConflictHandler.Resolution addExistingNode(NodeBuilder parent, String name, NodeState ours, NodeState theirs) Deprecated.Description copied from interface:ConflictHandlerThe nodeourshas been added toparentwhich conflicts with nodetheirswhich has been added in the persistence store.- Specified by:
addExistingNodein interfaceConflictHandler- 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
public PartialConflictHandler.Resolution changeDeletedNode(NodeBuilder parent, String name, NodeState ours) Deprecated.Description copied from interface:ConflictHandlerThe nodeourshas been changed inparentwhile it was removed in the persistence store.- Specified by:
changeDeletedNodein interfaceConflictHandler- 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
public PartialConflictHandler.Resolution deleteChangedNode(NodeBuilder parent, String name, NodeState theirs) Deprecated.Description copied from interface:ConflictHandlerThe nodetheirschanged in the persistence store while it has been deleted locally.- Specified by:
deleteChangedNodein interfaceConflictHandler- 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
Deprecated.Description copied from interface:ConflictHandlerThe nodenamehas been removed inparentwhile it was also removed in the persistence store.- Specified by:
deleteDeletedNodein interfaceConflictHandler- Specified by:
deleteDeletedNodein interfacePartialConflictHandler- Parameters:
parent- root of the conflictname- name of the node- Returns:
PartialConflictHandler.Resolutionof the conflict
-
DefaultThreeWayConflictHandlerinstead.