Added support for the leftItem and rightItem through the parameters

This commit is contained in:
Raf Ponsaerts
2018-12-14 17:20:45 +01:00
parent 8f81f28607
commit 4e51fd0c86
7 changed files with 37 additions and 18 deletions

View File

@@ -1371,10 +1371,7 @@ prevent the generation of resource policy entry values with null dspace_object a
}
private List<RelationshipMetadataValue> handleRelationshipTypeMetadataMappping(Context context, Item item,
HashMap<String, VirtualBean> hashMaps,
Item otherItem,
String relationName,
Integer relationshipId)
HashMap<String, VirtualBean> hashMaps, Item otherItem, String relationName, Integer relationshipId)
throws SQLException {
List<RelationshipMetadataValue> resultingMetadataValueList = new LinkedList<>();
for (Map.Entry<String, VirtualBean> entry : hashMaps.entrySet()) {
@@ -1439,7 +1436,8 @@ prevent the generation of resource policy entry values with null dspace_object a
if (metadataField == null) {
log.error(
"A MetadataValue was attempted to construct with MetadataField for paremeters: metadataschema: "
+ metadataSchema + ", metadataelement:" + metadataElement + ", metadataqualifier: " + metadataQualifier);
+ metadataSchema + ", metadataelement:" + metadataElement +
", metadataqualifier: " + metadataQualifier);
return null;
}
metadataValue.setMetadataField(metadataField);