ModeShape/modeshape — pull request #606 by hchiorean (2012-11-23 12:42:27+00:00)
Title: Mode 1713 - Implemented "delta mechanism" for the Connector SPI update method

The implementation takes place in 2 different layers:

1) the _SessionNode_ exposes a _NodeChanges_ object which contains information about each different change within the session node
2) the _FederatedDocumentStore_, in case when an _update_ call is issued to a connector, reads the node changes from the SessionNode and transforms them into a _DocumentChanges_ object which will then be passed down to a connector.

To validate the changes, the unit tests were modified as follows:
- _FileConnector_ and _MockConnector_ tests were split up
- the MockConnector _update_ implementation was changed to process the _DocumentChanges_ object
- additional test cases were added to validate the different possible changes: property changes, mixin changes, children changes, moving, reordering and referencing.