Package org.jboss.dna.graph.request

Examples of org.jboss.dna.graph.request.ReadNodeRequest.addProperty()


        // Create a single federated request...
        final FederatedRequest request = new FederatedRequest(original);
        // And "fork" the original request ...
        final ReadNodeRequest projected = new ReadNodeRequest(location("/a/b/c"), "workspaceM");
        projected.setActualLocationOfNode(Location.create(projected.at().getPath(), UUID.randomUUID()));
        projected.addProperty(property("propA", "valueA"));
        projected.addProperty(property("propB", "valueB"));
        projected.addChild(child(projected.getActualLocationOfNode(), "child1"));
        projected.addChild(child(projected.getActualLocationOfNode(), "child2"));
        request.add(projected, true, false, mirrorProjection);
        request.freeze();
View Full Code Here


        final FederatedRequest request = new FederatedRequest(original);
        // And "fork" the original request ...
        final ReadNodeRequest projected = new ReadNodeRequest(location("/a/b/c"), "workspaceM");
        projected.setActualLocationOfNode(Location.create(projected.at().getPath(), UUID.randomUUID()));
        projected.addProperty(property("propA", "valueA"));
        projected.addProperty(property("propB", "valueB"));
        projected.addChild(child(projected.getActualLocationOfNode(), "child1"));
        projected.addChild(child(projected.getActualLocationOfNode(), "child2"));
        request.add(projected, true, false, mirrorProjection);
        request.freeze();
        request.getLatch().countDown();
View Full Code Here

        // Create a single federated request using the mirror projection...
        final FederatedRequest request = new FederatedRequest(original);
        // And "fork" the original request by creating a mirror
        final ReadNodeRequest projected = new ReadNodeRequest(location("/b/c"), "workspaceM");
        projected.setActualLocationOfNode(Location.create(projected.at().getPath(), UUID.randomUUID()));
        projected.addProperty(property("propA", "valueA"));
        projected.addProperty(property("propB", "valueB"));
        projected.addChild(child(projected.getActualLocationOfNode(), "child1"));
        projected.addChild(child(projected.getActualLocationOfNode(), "child2"));
        request.add(projected, false, false, projectionA);
        request.freeze();
View Full Code Here

        final FederatedRequest request = new FederatedRequest(original);
        // And "fork" the original request by creating a mirror
        final ReadNodeRequest projected = new ReadNodeRequest(location("/b/c"), "workspaceM");
        projected.setActualLocationOfNode(Location.create(projected.at().getPath(), UUID.randomUUID()));
        projected.addProperty(property("propA", "valueA"));
        projected.addProperty(property("propB", "valueB"));
        projected.addChild(child(projected.getActualLocationOfNode(), "child1"));
        projected.addChild(child(projected.getActualLocationOfNode(), "child2"));
        request.add(projected, false, false, projectionA);
        request.freeze();
        request.getLatch().countDown();
View Full Code Here

        // Create a single federated request using the mirror projection...
        final FederatedRequest request = new FederatedRequest(original);
        // And "fork" the original request into the first source request ...
        final ReadNodeRequest projected1 = new ReadNodeRequest(location("/b/c"), "workspaceM");
        projected1.setActualLocationOfNode(Location.create(projected1.at().getPath(), UUID.randomUUID()));
        projected1.addProperty(property("propA", "valueA"));
        projected1.addProperty(property("propB", "valueB"));
        projected1.addChild(child(projected1.getActualLocationOfNode(), "child1"));
        projected1.addChild(child(projected1.getActualLocationOfNode(), "child2"));
        request.add(projected1, false, false, projectionA);
        // And a second source request ...
View Full Code Here

        final FederatedRequest request = new FederatedRequest(original);
        // And "fork" the original request into the first source request ...
        final ReadNodeRequest projected1 = new ReadNodeRequest(location("/b/c"), "workspaceM");
        projected1.setActualLocationOfNode(Location.create(projected1.at().getPath(), UUID.randomUUID()));
        projected1.addProperty(property("propA", "valueA"));
        projected1.addProperty(property("propB", "valueB"));
        projected1.addChild(child(projected1.getActualLocationOfNode(), "child1"));
        projected1.addChild(child(projected1.getActualLocationOfNode(), "child2"));
        request.add(projected1, false, false, projectionA);
        // And a second source request ...
        final ReadNodeRequest projected2 = new ReadNodeRequest(location("/a/b/c"), "workspaceM");
View Full Code Here

        projected1.addChild(child(projected1.getActualLocationOfNode(), "child2"));
        request.add(projected1, false, false, projectionA);
        // And a second source request ...
        final ReadNodeRequest projected2 = new ReadNodeRequest(location("/a/b/c"), "workspaceM");
        projected2.setActualLocationOfNode(Location.create(projected2.at().getPath(), UUID.randomUUID()));
        projected2.addProperty(property("propC", "valueC"));
        projected2.addProperty(property("propD", "valueD"));
        projected2.addChild(child(projected2.getActualLocationOfNode(), "child2"));
        projected2.addChild(child(projected2.getActualLocationOfNode(), "child3"));
        request.add(projected2, true, false, mirrorProjection);
        request.freeze();
View Full Code Here

        request.add(projected1, false, false, projectionA);
        // And a second source request ...
        final ReadNodeRequest projected2 = new ReadNodeRequest(location("/a/b/c"), "workspaceM");
        projected2.setActualLocationOfNode(Location.create(projected2.at().getPath(), UUID.randomUUID()));
        projected2.addProperty(property("propC", "valueC"));
        projected2.addProperty(property("propD", "valueD"));
        projected2.addChild(child(projected2.getActualLocationOfNode(), "child2"));
        projected2.addChild(child(projected2.getActualLocationOfNode(), "child3"));
        request.add(projected2, true, false, mirrorProjection);
        request.freeze();
        request.getLatch().countDown();
View Full Code Here

        // Create a single federated request using the mirror projection...
        final FederatedRequest request = new FederatedRequest(original);
        // And "fork" the original request into the first source request ...
        final ReadNodeRequest projected1 = new ReadNodeRequest(location("/b/c"), "workspaceM");
        projected1.setActualLocationOfNode(Location.create(projected1.at().getPath(), UUID.randomUUID()));
        projected1.addProperty(property("propA", "valueA"));
        projected1.addProperty(property("propB", "valueB"));
        projected1.addChild(child(projected1.getActualLocationOfNode(), "child1"));
        projected1.addChild(child(projected1.getActualLocationOfNode(), "child2"));
        request.add(projected1, false, false, projectionA);
        // And a second source request (that was cancelled)...
View Full Code Here

        final FederatedRequest request = new FederatedRequest(original);
        // And "fork" the original request into the first source request ...
        final ReadNodeRequest projected1 = new ReadNodeRequest(location("/b/c"), "workspaceM");
        projected1.setActualLocationOfNode(Location.create(projected1.at().getPath(), UUID.randomUUID()));
        projected1.addProperty(property("propA", "valueA"));
        projected1.addProperty(property("propB", "valueB"));
        projected1.addChild(child(projected1.getActualLocationOfNode(), "child1"));
        projected1.addChild(child(projected1.getActualLocationOfNode(), "child2"));
        request.add(projected1, false, false, projectionA);
        // And a second source request (that was cancelled)...
        final ReadNodeRequest projected2 = new ReadNodeRequest(location("/a/b/c"), "workspaceM");
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.