Class RorParentOrgUnitMetadataContributor
java.lang.Object
org.dspace.importer.external.metadatamapping.contributor.SimpleJsonPathMetadataContributor
org.dspace.importer.external.metadatamapping.contributor.RorParentOrgUnitMetadataContributor
- All Implemented Interfaces:
MetadataContributor<String>
A ROR JsonPath Metadata processor that should be configured inside the
ror-integration.xml file.
This allows the extraction of a given contributor with a specific mappings from the ROR JSON response.- Author:
- Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com)
-
Field Summary
Fields inherited from class org.dspace.importer.external.metadatamapping.contributor.SimpleJsonPathMetadataContributor
metadataProcessor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontributeMetadata(String fullJson) Creates aMetadatumDTOfor each correctly mapped JSON node of the ROR response.voidsetLabelField(String labelField) voidsetParentType(String parentType) voidsetTypeField(String typeField) Methods inherited from class org.dspace.importer.external.metadatamapping.contributor.SimpleJsonPathMetadataContributor
getField, getQuery, setField, setMetadataFieldMapping, setMetadataProcessor, setQuery
-
Constructor Details
-
RorParentOrgUnitMetadataContributor
public RorParentOrgUnitMetadataContributor()
-
-
Method Details
-
contributeMetadata
Creates aMetadatumDTOfor each correctly mapped JSON node of the ROR response. Partial / Unmatched parent-type metadatum will be ignored from this mapping.- Specified by:
contributeMetadatain interfaceMetadataContributor<String>- Overrides:
contributeMetadatain classSimpleJsonPathMetadataContributor- Parameters:
fullJson- ROR response- Returns:
- a collection of read ROR metadata.
-
getTypeField
-
setTypeField
-
getLabelField
-
setLabelField
-
getParentType
-
setParentType
-