Package org.jboss.dna.graph.requests

Examples of org.jboss.dna.graph.requests.CreateNodeRequest


     * @see org.jboss.dna.graph.requests.processor.RequestProcessor#process(org.jboss.dna.graph.requests.CreateNodeRequest)
     */
    @Override
    public void process( CreateNodeRequest request ) {
        Location locationInSource = projectIntoSource(request.at());
        CreateNodeRequest projected = new CreateNodeRequest(locationInSource, request.properties());
        getConnection().execute(this.getExecutionContext(), projected);
        if (projected.hasError()) {
            projectError(projected, request.at(), request);
            return;
        }
    }
View Full Code Here


        final ExecutionContext context = getExecutionContext();
        final RepositoryConnection cacheConnection = getConnectionToCache();
        final Location path = mergedNode.at();

        List<Request> requests = new ArrayList<Request>();
        requests.add(new CreateNodeRequest(path, mergedNode.getProperties()));
        for (Location child : mergedNode.getChildren()) {
            requests.add(new CreateNodeRequest(child));
        }
        cacheConnection.execute(context, CompositeRequest.with(requests));
    }
View Full Code Here

TOP

Related Classes of org.jboss.dna.graph.requests.CreateNodeRequest

Copyright © 2018 www.massapicom. 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.