Class RorParentOrgUnitMetadataContributor

java.lang.Object
org.dspace.importer.external.metadatamapping.contributor.SimpleJsonPathMetadataContributor
org.dspace.importer.external.metadatamapping.contributor.RorParentOrgUnitMetadataContributor
All Implemented Interfaces:
MetadataContributor<String>

public class RorParentOrgUnitMetadataContributor extends SimpleJsonPathMetadataContributor
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)
  • Constructor Details

    • RorParentOrgUnitMetadataContributor

      public RorParentOrgUnitMetadataContributor()
  • Method Details

    • contributeMetadata

      public Collection<MetadatumDTO> contributeMetadata(String fullJson)
      Creates a MetadatumDTO for each correctly mapped JSON node of the ROR response. Partial / Unmatched parent-type metadatum will be ignored from this mapping.
      Specified by:
      contributeMetadata in interface MetadataContributor<String>
      Overrides:
      contributeMetadata in class SimpleJsonPathMetadataContributor
      Parameters:
      fullJson - ROR response
      Returns:
      a collection of read ROR metadata.
    • getTypeField

      public String getTypeField()
    • setTypeField

      public void setTypeField(String typeField)
    • getLabelField

      public String getLabelField()
    • setLabelField

      public void setLabelField(String labelField)
    • getParentType

      public String getParentType()
    • setParentType

      public void setParentType(String parentType)