Package org.jboss.dna.graph

Examples of org.jboss.dna.graph.Graph.batch()


            ConfigurationDefinition content = getConfigurationDefinition();
            Graph graph = Graph.create(content.getRepositorySource(), content.getContext());
            if (content.getWorkspace() != null) {
                graph.useWorkspace(content.getWorkspace());
            }
            changes = graph.batch();
        }
        return changes;
    }

    /**
 
View Full Code Here


        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();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.