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.ResolutionOURS, 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)
ThreeWayConflictHandlerours has been added to parent which conflicts
with property theirs which has been added in the persistence store.addExistingProperty in interface ThreeWayConflictHandleraddExistingProperty in class DefaultThreeWayConflictHandlerparent - 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)
ThreeWayConflictHandlerours has been changed in parent while it was
also changed to a different value (theirs) in the persistence store.changeChangedProperty in interface ThreeWayConflictHandlerchangeChangedProperty in class DefaultThreeWayConflictHandlerparent - 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 - 2023 Adobe. All Rights Reserved