return connectionFactory;
}
@SuppressWarnings( "synthetic-access" )
public Subgraph getConfiguration( int depth ) {
Graph result = Graph.create(configRepositorySource, context);
result.useWorkspace("configSpace");
return result.getSubgraphOfDepth(depth).at("/a/b/Test Repository");
}
};
source = new FederatedRepositorySource();
source.setName(repositoryName);
sourceName = "federated source";
source.setName(sourceName);
source.initialize(repositoryContext);
Graph configRepository = Graph.create(configRepositorySource, context);
configRepository.createWorkspace().named("configSpace");
Graph.Batch batch = configRepository.batch();
batch.create("/a").and();
batch.create("/a/b").and();
batch.create("/a/b/Test Repository").with(DnaLexicon.DEFAULT_WORKSPACE_NAME, "fedSpace").and();
batch.create("/a/b/Test Repository/dna:workspaces").and();
batch.create("/a/b/Test Repository/dna:workspaces/fedSpace").and();