Class AMetadataMapAction

java.lang.Object
org.dspace.qaevent.action.AMetadataMapAction
All Implemented Interfaces:
QualityAssuranceAction
Direct Known Subclasses:
QANotifyMetadataMapAction, QAOpenaireMetadataMapAction

public abstract class AMetadataMapAction extends Object implements QualityAssuranceAction
Implementation of QualityAssuranceAction that add a specific metadata on the given item based on the child class implementation.
Author:
Francesco Bacchelli (francesco.bacchelli at 4science.it)
  • Field Details

  • Constructor Details

    • AMetadataMapAction

      public AMetadataMapAction()
  • Method Details

    • setItemService

      public void setItemService(ItemService itemService)
    • getTypes

      public Map<String,String> getTypes()
    • setTypes

      public void setTypes(Map<String,String> types)
    • extractMetadataType

      public abstract String extractMetadataType(QAMessageDTO message)
    • extractMetadataValue

      public abstract String extractMetadataValue(QAMessageDTO message)
    • applyCorrection

      public void applyCorrection(Context context, Item item, Item relatedItem, QAMessageDTO message)
      Apply the correction on one metadata field of the given item based on the openaire message type.
      Specified by:
      applyCorrection in interface QualityAssuranceAction
      Parameters:
      context - the DSpace context
      item - the item to correct
      relatedItem - the related item, if any
      message - the message with the correction details
    • splitMetadata

      public String[] splitMetadata(String metadata)