public class ChildOrderConflictHandler extends ConflictHandlerWrapper
oak.plugins.tree.TreeConstants
ConflictHandler.Resolution
Constructor and Description |
---|
ChildOrderConflictHandler(ConflictHandler handler) |
Modifier and Type | Method and Description |
---|---|
ConflictHandler.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. |
ConflictHandler.Resolution |
changeChangedProperty(NodeBuilder parent,
PropertyState ours,
PropertyState theirs)
The property
ours has been changed in parent while it was
also changed to a different value (theirs ) in the persistence store. |
ConflictHandler.Resolution |
changeDeletedProperty(NodeBuilder parent,
PropertyState ours)
The property
ours has been changed in parent while it was
removed in the persistence store. |
ConflictHandler.Resolution |
deleteChangedProperty(NodeBuilder parent,
PropertyState theirs)
The property
theirs changed in the persistence store while it has been
deleted locally. |
ConflictHandler.Resolution |
deleteDeletedProperty(NodeBuilder parent,
PropertyState ours)
The property
ours has been removed in parent while it was
also removed in the persistence store. |
addExistingNode, changeDeletedNode, deleteChangedNode, deleteDeletedNode
public ChildOrderConflictHandler(ConflictHandler handler)
public ConflictHandler.Resolution addExistingProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs)
ConflictHandler
ours
has been added to parent
which conflicts
with property theirs
which has been added in the persistence store.addExistingProperty
in interface ConflictHandler
addExistingProperty
in class ConflictHandlerWrapper
parent
- root of the conflictours
- our version of the propertytheirs
- their version of the propertyConflictHandler.Resolution
of the conflictpublic ConflictHandler.Resolution changeDeletedProperty(NodeBuilder parent, PropertyState ours)
ConflictHandler
ours
has been changed in parent
while it was
removed in the persistence store.changeDeletedProperty
in interface ConflictHandler
changeDeletedProperty
in class ConflictHandlerWrapper
parent
- root of the conflictours
- our version of the propertyConflictHandler.Resolution
of the conflictpublic ConflictHandler.Resolution changeChangedProperty(NodeBuilder parent, PropertyState ours, PropertyState theirs)
ConflictHandler
ours
has been changed in parent
while it was
also changed to a different value (theirs
) in the persistence store.changeChangedProperty
in interface ConflictHandler
changeChangedProperty
in class ConflictHandlerWrapper
parent
- root of the conflictours
- our version of the propertytheirs
- their version of the propertyConflictHandler.Resolution
of the conflictpublic ConflictHandler.Resolution deleteDeletedProperty(NodeBuilder parent, PropertyState ours)
ConflictHandler
ours
has been removed in parent
while it was
also removed in the persistence store.deleteDeletedProperty
in interface ConflictHandler
deleteDeletedProperty
in class ConflictHandlerWrapper
parent
- root of the conflictours
- our version of the propertyConflictHandler.Resolution
of the conflictpublic ConflictHandler.Resolution deleteChangedProperty(NodeBuilder parent, PropertyState theirs)
ConflictHandler
theirs
changed in the persistence store while it has been
deleted locally.deleteChangedProperty
in interface ConflictHandler
deleteChangedProperty
in class ConflictHandlerWrapper
parent
- root of the conflicttheirs
- their version of the propertyConflictHandler.Resolution
of the conflict"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"