Class DefaultConflictHandler
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.commit.DefaultConflictHandler
-
- All Implemented Interfaces:
ConflictHandler,PartialConflictHandler
@Deprecated public class DefaultConflictHandler extends java.lang.Object implements ConflictHandler
Deprecated.UseDefaultThreeWayConflictHandlerinstead.This implementation of aConflictHandleralways 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
Fields Modifier and Type Field Description static ConflictHandlerOURSDeprecated.AConflictHandlerwhich always returnPartialConflictHandler.Resolution.OURS.static ConflictHandlerTHEIRSDeprecated.AConflictHandlerwhich always returnPartialConflictHandler.Resolution.THEIRS.
-
Constructor Summary
Constructors Constructor Description DefaultConflictHandler(PartialConflictHandler.Resolution resolution)Deprecated.Create a newConflictHandlerwhich always returnsresolution.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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.PartialConflictHandler.ResolutionaddExistingProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs)Deprecated.The propertyourshas been added toparentwhich conflicts with propertytheirswhich has been added in the persistence store.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.PartialConflictHandler.ResolutionchangeDeletedNode(NodeBuilder parent, java.lang.String name, NodeState ours)Deprecated.The nodeourshas been changed inparentwhile it was removed in the persistence store.PartialConflictHandler.ResolutionchangeDeletedProperty(NodeBuilder parent, PropertyState ours)Deprecated.The propertyourshas been changed inparentwhile it was removed in the persistence store.PartialConflictHandler.ResolutiondeleteChangedNode(NodeBuilder parent, java.lang.String name, NodeState theirs)Deprecated.The nodetheirschanged in the persistence store while it has been deleted locally.PartialConflictHandler.ResolutiondeleteChangedProperty(NodeBuilder parent, PropertyState theirs)Deprecated.The propertytheirschanged in the persistence store while it has been deleted locally.PartialConflictHandler.ResolutiondeleteDeletedNode(NodeBuilder parent, java.lang.String name)Deprecated.The nodenamehas been removed inparentwhile it was also removed in the persistence store.PartialConflictHandler.ResolutiondeleteDeletedProperty(NodeBuilder parent, PropertyState ours)Deprecated.The propertyourshas been removed inparentwhile it was also removed in the persistence store.
-
-
-
Field Detail
-
OURS
public static final ConflictHandler OURS
Deprecated.AConflictHandlerwhich always returnPartialConflictHandler.Resolution.OURS.
-
THEIRS
public static final ConflictHandler THEIRS
Deprecated.AConflictHandlerwhich always returnPartialConflictHandler.Resolution.THEIRS.
-
-
Constructor Detail
-
DefaultConflictHandler
public DefaultConflictHandler(PartialConflictHandler.Resolution resolution)
Deprecated.Create a newConflictHandlerwhich always returnsresolution.- Parameters:
resolution- the resolution to return from all methods of thisConflictHandlerinstance.
-
-
Method Detail
-
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, java.lang.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, java.lang.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, java.lang.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
public PartialConflictHandler.Resolution deleteDeletedNode(NodeBuilder parent, java.lang.String name)
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
-
-