SLING-3768 - Be more resilient when .content.xml listing and filesystem
disagree on child nodes

Cleanup - pass less Repository instances around.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1612271 13f79535-47bb-0310-9956-ffa450edef68
SLING-3768 - Be more resilient when .content.xml listing and filesystem
disagree on child nodes

Start work on a ResourceChangeCommandFactoryTest to allow for more
fine-grained tests on the vlt  commands.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1612272 13f79535-47bb-0310-9956-ffa450edef68
SLING-3768 - Be more resilient when .content.xml listing and filesystem
disagree on child nodes

Do not attempt to change the primary node type of the root node, as that
is an illegal operation.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1612273 13f79535-47bb-0310-9956-ffa450edef68
SLING-3584 - Offline-mode for NodeTypeRegistry

Migrate the StubNodeTypeRegistry from the api-test project as a
FallbackNodeTypeRegistry in the api bundle. The registry now uses
the java.lang.reflect.Proxy mechanism to implement calls to NodeType
instead of mockito. The reason is that we don't want another runtime
dependency for the API bundle.

However, this is still only called in tests and definitely not
production-ready.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1612274 13f79535-47bb-0310-9956-ffa450edef68
SLING-3768 - Be more resilient when .content.xml listing and filesystem
disagree on child nodes

Normalise the resource proxy's children based on the filesystem
representation

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1612275 13f79535-47bb-0310-9956-ffa450edef68