public Map<Name, Property> getPropertiesByName() { return request.getPropertiesFor(location); }
Map<Name, Property> propsByName = request.getPropertiesFor(parent); if (propsByName == null) propsByName = new HashMap<Name, Property>(); for (Property property : propertiesByName.values()) { Map<Name, Property> propsByName = request.getPropertiesFor(parentInFederation); if (propsByName == null) propsByName = new HashMap<Name, Property>(); for (Property property : propertiesByName.values()) {
Map<Name, Property> properties = readSubgraph.getPropertiesFor(topNode); if (properties == null) return; int startingDepth = 0; Collection<Property> nodePoperties = readSubgraph.getPropertiesFor(location).values(); CreateNodeRequest create = new CreateNodeRequest(parent, workspaceName, childName, nodePoperties);
/** * {@inheritDoc} * * @see org.modeshape.graph.request.processor.RequestProcessor#process(org.modeshape.graph.request.ReadBranchRequest) */ @Override public void process( ReadBranchRequest request ) { CacheableRequest source = (CacheableRequest)federatedRequest.getFirstProjectedRequest().getRequest(); if (checkErrorOrCancel(request, source)) return; if (RequestType.READ_BRANCH == source.getType()) { ReadBranchRequest readSource = (ReadBranchRequest)source; request.setActualLocationOfNode(readSource.getActualLocationOfNode()); for (Location node : readSource) { List<Location> children = readSource.getChildren(node); if (children != null) request.setChildren(node, children); Map<Name, Property> props = readSource.getPropertiesFor(node); if (props != null) request.setProperties(node, props.values()); } } else if (RequestType.READ_NODE == source.getType()) { ReadNodeRequest readSource = (ReadNodeRequest)source; request.setActualLocationOfNode(readSource.getActualLocationOfNode()); Location parent = readSource.getActualLocationOfNode(); request.setChildren(parent, readSource.getChildren()); request.setProperties(parent, readSource.getPropertiesByName().values()); } request.setCachePolicy(getDefaultCachePolicy()); setCacheableInfo(request, source.getCachePolicy()); }
for (Location location : readBranch) { node = getOrCreateNode(location, expires); node.setProperties(readBranch.getPropertiesFor(location)); node.setChildren(readBranch.getChildren(location));
for (Location parent : readFromSource) { List<Location> children = readFromSource.getChildren(parent); Map<Name, Property> properties = readFromSource.getPropertiesFor(parent); projectToFederated(actualLocation, projection, request, parent, children, properties);
for (Location location : readBranch) { node = getOrCreateNode(location, expires); node.setProperties(readBranch.getPropertiesFor(location)); node.setChildren(readBranch.getChildren(location));