Examples of MoveBranchRequest


Examples of org.jboss.dna.graph.request.MoveBranchRequest

    protected void assertNextRequestIsMove( Location from,
                                            Location to ) {
        Request request = executedRequests.poll();
        assertThat(request, is(instanceOf(MoveBranchRequest.class)));
        MoveBranchRequest move = (MoveBranchRequest)request;
        assertThat(move.from(), is(from));
        assertThat(move.into(), is(to));
    }
View Full Code Here

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

     */
    @Override
    public void process( MoveBranchRequest request ) {
        Location fromLocationInSource = projectIntoSource(request.from());
        Location intoLocationInSource = projectIntoSource(request.into());
        MoveBranchRequest projected = new MoveBranchRequest(fromLocationInSource, intoLocationInSource);
        getConnection().execute(this.getExecutionContext(), projected);
        if (projected.hasError()) {
            projectError(projected, null, request);
            return;
        }
    }
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.