Interface MetadataListener

All Known Implementing Classes:
SimpleMetadataListener

public interface MetadataListener
The interface to implement to support the ExtractMetadata enrichment step
Author:
Andrea Bollini (andrea.bollini at 4science.it)
  • Method Summary

    Modifier and Type
    Method
    Description
    getExternalDataObject(Context context, Item item, Set<String> changedMetadata)
    Retrieve an ExternalDataObject to enrich the current item using the current metadata and the information about which listened metadata are changed
    Return the list of metadata that should be monitored as change to them could allow the service to retrieve an ExternalDataObject to enrich the current item
  • Method Details

    • getMetadataToListen

      Set<String> getMetadataToListen()
      Return the list of metadata that should be monitored as change to them could allow the service to retrieve an ExternalDataObject to enrich the current item
      Returns:
      the list of metadata to monitor
    • getExternalDataObject

      ExternalDataObject getExternalDataObject(Context context, Item item, Set<String> changedMetadata)
      Retrieve an ExternalDataObject to enrich the current item using the current metadata and the information about which listened metadata are changed
      Parameters:
      context - the DSpace Context Object
      item - the item in its current status
      changedMetadata - the list of listened metadata that are changed
      Returns:
      an ExternalDataObject that can be used to enrich the current item