/** * {@inheritDoc} * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals( Object obj ) { if (obj == this) return true; if (this.getClass().isInstance(obj)) { ReadAllPropertiesRequest that = (ReadAllPropertiesRequest)obj; if (!this.at().isSame(that.at())) return false; if (!this.inWorkspace().equals(that.inWorkspace())) return false; return true; } return false; }
@Override public void process( ReadAllPropertiesRequest request ) { WorkspaceType workspace = getWorkspace(request, request.inWorkspace()); NodeType node = getTargetNode(workspace, request, request.at()); if (node == null) { assert request.hasError(); return; } // Get the properties of the node ... Location actualLocation = getActualLocation(workspace, request.at(), node); request.addProperty(propertyFactory.create(ModeShapeLexicon.UUID, node.getUuid())); request.addProperties(node.getProperties().values()); assert actualLocation != null; request.setActualLocationOfNode(actualLocation); setCacheableInfo(request); }
@Override public void process( ReadAllPropertiesRequest request ) { MapWorkspace workspace = getWorkspace(request, request.inWorkspace()); MapNode node = getTargetNode(workspace, request, request.at()); if (node == null) { assert request.hasError(); return; } // Get the properties of the node ... Location actualLocation = getActualLocation(request.at(), node); request.addProperty(propertyFactory.create(ModeShapeLexicon.UUID, node.getUuid())); for (Property property : node.getProperties().values()) { request.addProperty(property); } assert actualLocation != null; request.setActualLocationOfNode(actualLocation); setCacheableInfo(request); }
@Override public void process( ReadAllPropertiesRequest request ) { PathWorkspace workspace = getWorkspace(request, request.inWorkspace()); if (workspace == null) return; PathNode node = getTargetNode(workspace, request, request.at()); if (node == null) { request.setError(new PathNotFoundException(request.at(), workspace.getLowestExistingPath(request.at().getPath()))); return; } // Get the properties of the node ... request.addProperties(node.getProperties().values()); request.setActualLocationOfNode(Location.create(node.getPath(), node.getUuid())); setCacheableInfo(request); }
public void process( ReadAllPropertiesRequest request ) { ProjectedNode projectedNode = project(request.at(), request.inWorkspace(), request, false); request.inWorkspace()); placeholderRequest.addProperties(placeholder.properties().values()); placeholderRequest.setActualLocationOfNode(placeholder.location());