String reorderedBeforeNameSegment,
boolean queryable ) {
NodeKey key = nodeKey(docId);
NodeKey parentKey = nodeKey(parentDocId);
PathFactory pathFactory = pathMappings.getPathFactory();
Path newExternalPath = pathFactory.create(newPath);
Path parentPath = newExternalPath.getParent();
Path oldExternalPath = pathFactory.create(parentPath, pathFactory.createSegment(oldNameSegment));
Path reorderedBeforePath = reorderedBeforeNameSegment == null ? null : pathFactory.create(parentPath,
pathFactory.createSegment(reorderedBeforeNameSegment));
// This external path in the connector may be projected into *multiple* nodes in the same or different workspaces ...
for (WorkspaceAndPath wsAndPath : pathMappings.resolveExternalPathToInternal(newExternalPath)) {
changesFor(wsAndPath).nodeReordered(key, primaryType, mixinTypes, parentKey, wsAndPath.getPath(), oldExternalPath,
reorderedBeforePath, queryable);