Package org.jboss.dna.graph

Examples of org.jboss.dna.graph.NodeConflictBehavior


        Map<Name, Property> propsToStore = new HashMap<Name, Property>(request.properties().size());
        for (Property property : request.properties()) {
            if (property.size() > 0) propsToStore.put(property.getName(), property);
        }

        NodeConflictBehavior conflictBehavior = request.conflictBehavior();
        switch (conflictBehavior) {
            case APPEND:
                node = newWorkspace.createNode(getExecutionContext(), parentNode, request.named(), propsToStore, conflictBehavior);
                break;
            case DO_NOT_REPLACE:
View Full Code Here


            create = batch.create(path);
        } else {
            create = batch.create(path, properties);
        }
        assert create != null;
        NodeConflictBehavior behavior = createBehaviorFor(path);
        if (behavior != null) {
            switch (behavior) {
                case APPEND:
                    create.byAppending();
                    break;
View Full Code Here

            create = batch.create(path);
        } else {
            create = batch.create(path, firstProperty, additionalProperties);
        }
        assert create != null;
        NodeConflictBehavior behavior = createBehaviorFor(path);
        if (behavior != null) {
            switch (behavior) {
                case APPEND:
                    create.byAppending();
                    break;
View Full Code Here

TOP

Related Classes of org.jboss.dna.graph.NodeConflictBehavior

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.