Package org.jboss.dna.graph.request

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


                    } else {
                        details.removeProperty(entry.getKey());
                    }
                }
            } else if (change instanceof SetPropertyRequest) {
                SetPropertyRequest set = (SetPropertyRequest)change;
                details.changeProperty(set.property());
            } else if (change instanceof RemovePropertyRequest) {
                RemovePropertyRequest remove = (RemovePropertyRequest)change;
                details.removeProperty(remove.propertyName());
            } else if (change instanceof DeleteBranchRequest) {
                details.addEventType(ChangeType.NODE_REMOVED);
View Full Code Here


        newValues.addAll(request.addedValues());
        Property newProperty = getExecutionContext().getPropertyFactory().create(propertyName, newValues);
       
        // Update the current values
        SetPropertyRequest setProperty = new SetPropertyRequest(on, workspaceName, newProperty);
        process(setProperty);

        if (setProperty.hasError()) {
            request.setError(setProperty.getError());
        } else {
            // Set the actual location ...
            request.setActualLocation(setProperty.getActualLocationOfNode(), request.addedValues(), actualRemovedValues);
        }

    }
View Full Code Here

    protected void assertNextRequestSetProperty( Location on,
                                                 Property property ) {
        Request request = executedRequests.poll();
        assertThat(request, is(instanceOf(SetPropertyRequest.class)));
        SetPropertyRequest read = (SetPropertyRequest)request;
        assertThat(read.on(), is(on));
        assertThat(read.property(), is(property));
    }
View Full Code Here

TOP

Related Classes of org.jboss.dna.graph.request.SetPropertyRequest

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.