Merge pull request #2418 from atmire/entities-feedback-2019-04

Configurable entities feedback
This commit is contained in:
Tim Donohue
2019-05-09 12:01:37 -05:00
committed by GitHub
6 changed files with 118 additions and 95 deletions

View File

@@ -1501,17 +1501,16 @@ prevent the generation of resource policy entry values with null dspace_object a
}
private String getEntityTypeStringFromMetadata(List<MetadataValue> list) {
String entityType = null;
for (MetadataValue mdv : list) {
if (StringUtils.equals(mdv.getMetadataField().getMetadataSchema().getName(),
"relationship")
&& StringUtils.equals(mdv.getMetadataField().getElement(),
"type")) {
entityType = mdv.getValue();
return mdv.getValue();
}
}
return entityType;
return null;
}
private RelationshipMetadataValue constructResultingMetadataValue(Item item, String value,