Package org.dspace.submit.listener
Interface MetadataListener
-
- All Known Implementing Classes:
SimpleMetadataListener
public interface MetadataListenerThe interface to implement to support the ExtractMetadata enrichment step- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExternalDataObjectgetExternalDataObject(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 changedSet<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
-
-
-
Method Detail
-
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 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
-
-