Package org.dspace.orcid.service
Interface MetadataSignatureGenerator
- All Known Implementing Classes:
PlainMetadataSignatureGeneratorImpl
public interface MetadataSignatureGenerator
Interface that mark classes that can be used to generate a signature for
metadata values. The signature must be a unique identification of a metadata,
based on the attributes that compose it (such as field, value and authority).
It is possible to generate a signature for a single metadata value and also
for a list of values. Given an item, a signature can for example be used to
check if the associated metadata is present in the item.
- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
Method Summary
Modifier and TypeMethodDescriptionfindBySignature(Context context, Item item, String signature) Returns the metadata values traceable by the given item related with the given signature.generate(Context context, List<MetadataValue> metadataValues) Generate a signature related to the given metadata values.
-
Method Details
-
generate
Generate a signature related to the given metadata values.- Parameters:
context- the DSpace contextmetadataValues- the metadata values to sign- Returns:
- the generated signature
-
findBySignature
Returns the metadata values traceable by the given item related with the given signature.- Parameters:
context- the DSpace contextitem- the itemsignature- the metadata signature- Returns:
- the founded metadata
-