/** * Build a list of related target node ids for the collection * @param result * @return List<String> list of related resource ids */ private List<String> buildRelatedAssetList(QueryResult result) { List<String> relatedIds = new ArrayList<String>(); List<Relationship> relationships = result.getRelationships(); for (Relationship relationship : relationships) { String name = relationship.getPropertyValue(PropertyIds.NAME); String targetId = relationship.getPropertyValue(PropertyIds.TARGET_ID); log.debug(name+" "+targetId); relatedIds.add(targetId); } return relatedIds; }