Class PlainMetadataSignatureGeneratorImpl

java.lang.Object
org.dspace.orcid.service.impl.PlainMetadataSignatureGeneratorImpl
All Implemented Interfaces:
MetadataSignatureGenerator

public class PlainMetadataSignatureGeneratorImpl extends Object implements MetadataSignatureGenerator
Implementation of MetadataSignatureGenerator that composes a signature made up of a section for each metadata value, divided by the character SIGNATURE_SECTIONS_SEPARATOR.
Each section is composed of the metadata field, the metadata value and, if present, the authority, divided by the character METADATA_SECTIONS_SEPARATOR.
The presence of the metadata field allows to have different signatures for metadata with the same values but referring to different fields, while the authority allows to distinguish metadata that refer to different entities, even if they have the same value. Finally, the various sections of the signature are sorted by metadata field so that the order of the input metadata values does not affect the signature.
Author:
Luca Giamminonni (luca.giamminonni at 4science.it)
  • Constructor Details

    • PlainMetadataSignatureGeneratorImpl

      public PlainMetadataSignatureGeneratorImpl()
  • Method Details