Package org.jboss.dna.graph

Examples of org.jboss.dna.graph.Location


            assert request.hasError();
            return;
        }

        // Get the properties of the node ...
        Location actualLocation = getActualLocation(request.at(), node);
        request.addProperty(propertyFactory.create(DnaLexicon.UUID, node.getUuid()));
        for (Property property : node.getProperties().values()) {
            request.addProperty(property);
        }
View Full Code Here


                                              request.desiredName(),
                                              request.desiredSegment(),
                                              request.removeExisting(),
                                              removedExistingNodes);
        Path newPath = getExecutionContext().getValueFactories().getPathFactory().create(newParentPath, newNode.getName());
        Location oldLocation = getActualLocation(request.from(), node);
        Location newLocation = Location.create(newPath, newNode.getUuid());
        request.setActualLocations(oldLocation, newLocation);
        request.setRemovedNodes(Collections.unmodifiableSet(removedExistingNodes));
        recordChange(request);
    }
View Full Code Here

        Path newParentPath = request.into().getPath();
        Name desiredName = request.desiredName();
        MapNode newParent = newWorkspace.getNode(newParentPath);
        MapNode newNode = workspace.copyNode(getExecutionContext(), node, newWorkspace, newParent, desiredName, true);
        Path newPath = getExecutionContext().getValueFactories().getPathFactory().create(newParentPath, newNode.getName());
        Location oldLocation = getActualLocation(request.from(), node);
        Location newLocation = Location.create(newPath, newNode.getUuid());
        request.setActualLocations(oldLocation, newLocation);
        recordChange(request);
    }
View Full Code Here

                break;
        }
        assert node != null;
        Path path = getExecutionContext().getValueFactories().getPathFactory().create(parent, node.getName());

        Location actualLocation = getActualLocation(Location.create(path), node);
        request.setActualLocationOfNode(actualLocation);
        recordChange(request);
    }
View Full Code Here

        MapWorkspace workspace = getWorkspace(request, request.inWorkspace());
        if (workspace == null) return;
        MapNode node = getTargetNode(workspace, request, request.at());
        if (node == null) return;
        workspace.removeNode(getExecutionContext(), node);
        Location actualLocation = getActualLocation(request.at(), node);
        request.setActualLocationOfNode(actualLocation);
        recordChange(request);
    }
View Full Code Here

            return;
        }
        workspace.moveNode(getExecutionContext(), node, request.desiredName(), workspace, newParent, beforeNode);
        assert node.getParent().equals(newParent);
        Path newPath = getExecutionContext().getValueFactories().getPathFactory().create(newParentPath, node.getName());
        Location oldLocation = getActualLocation(request.from(), node);
        Location newLocation = Location.create(newPath, node.getUuid());
        request.setActualLocations(oldLocation, newLocation);
        recordChange(request);
    }
View Full Code Here

                    request.setNewProperty(propName);
                }
                node.setProperty(property);
            }
        }
        Location actualLocation = getActualLocation(request.on(), node);
        request.setActualLocationOfNode(actualLocation);
        recordChange(request);
    }
View Full Code Here

     */
    public void addChild( Path pathToChild,
                          Property firstIdProperty,
                          Property... remainingIdProperties ) {
        checkNotFrozen();
        Location child = Location.create(pathToChild, firstIdProperty, remainingIdProperties);
        this.children.add(child);
    }
View Full Code Here

     * @see #addChild(Path, Property, Property...)
     */
    public void addChild( Path pathToChild,
                          Property idProperty ) {
        checkNotFrozen();
        Location child = Location.create(pathToChild, idProperty);
        this.children.add(child);
    }
View Full Code Here

     */
    public void addChild( Path pathToChild,
                          Property firstIdProperty,
                          Property... remainingIdProperties ) {
        checkNotFrozen();
        Location child = Location.create(pathToChild, firstIdProperty, remainingIdProperties);
        this.children.add(child);
    }
View Full Code Here

TOP

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

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.