Package org.dspace.submit.listener
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 TypeMethodDescriptiongetExternalDataObject(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 changedReturn 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
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
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 Objectitem- the item in its current statuschangedMetadata- the list of listened metadata that are changed- Returns:
- an ExternalDataObject that can be used to enrich the current item
-