public class JcrLastModifiedConflictHandler extends DefaultThreeWayConflictHandler
org.apache.jackrabbit.JcrConstants.JCR_LASTMODIFIED
by picking the
older of the 2 conflicting dates and
org.apache.jackrabbit.JcrConstants.JCR_CREATED
by picking the newer
of the 2 conflicting dates.ThreeWayConflictHandler.Resolution
OURS, THEIRS
Constructor and Description |
---|
JcrLastModifiedConflictHandler() |
Modifier and Type | Method and Description |
---|---|
@NotNull ThreeWayConflictHandler.Resolution |
addExistingProperty(NodeBuilder parent,
PropertyState ours,
PropertyState theirs)
The property
ours has been added to parent which conflicts
with property theirs which has been added in the persistence store. |
@NotNull ThreeWayConflictHandler.Resolution |
changeChangedProperty(NodeBuilder parent,
PropertyState ours,
PropertyState theirs,
PropertyState base)
The property
ours has been changed in parent while it was
also changed to a different value (theirs ) in the persistence store. |
addExistingNode, changeDeletedNode, changeDeletedProperty, deleteChangedNode, deleteChangedProperty, deleteDeletedNode, deleteDeletedProperty
@NotNull public @NotNull ThreeWayConflictHandler.Resolution addExistingProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs)
ThreeWayConflictHandler
ours
has been added to parent
which conflicts
with property theirs
which has been added in the persistence store.addExistingProperty
in interface ThreeWayConflictHandler
addExistingProperty
in class DefaultThreeWayConflictHandler
parent
- root of the conflictours
- our version of the propertytheirs
- their version of the propertyThreeWayConflictHandler.Resolution
of the conflict@NotNull public @NotNull ThreeWayConflictHandler.Resolution changeChangedProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs, PropertyState base)
ThreeWayConflictHandler
ours
has been changed in parent
while it was
also changed to a different value (theirs
) in the persistence store.changeChangedProperty
in interface ThreeWayConflictHandler
changeChangedProperty
in class DefaultThreeWayConflictHandler
parent
- root of the conflictours
- our version of the propertytheirs
- their version of the propertybase
- the base version of the propertyThreeWayConflictHandler.Resolution
of the conflictCopyright © 2010 - 2020 Adobe. All Rights Reserved