Package org.dspace.orcid.model.factory
Interface OrcidProfileSectionFactory
-
- All Known Implementing Classes:
AbstractOrcidProfileSectionFactory,OrcidPersonExternalIdentifierFactory,OrcidSimpleValueObjectFactory
public interface OrcidProfileSectionFactoryInterface for classes that creates ORCID profile section object.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectcreate(Context context, List<MetadataValue> metadataValues)Creates an instance of an ORCID object starting from the metadata valuesStringgetDescription(Context context, Item item, String signature)Returns a description of the item's metadata values related to the given signature.List<String>getMetadataFields()Returns all the metadata fields involved in the profile section configuration.List<String>getMetadataSignatures(Context context, Item item)Given the input item's metadata values generate a metadata signature for each metadata field groups handled by this factory or for each metadata fields if the factory is configured with single metadata fields.OrcidProfileSectionTypegetProfileSectionType()Returns the profile section type related to this factory.OrcidProfileSyncPreferencegetSynchronizationPreference()Returns the profile synchronization preference related to this factory.
-
-
-
Method Detail
-
create
Object create(Context context, List<MetadataValue> metadataValues)
Creates an instance of an ORCID object starting from the metadata values- Parameters:
context- the DSpace ContextmetadataValues- the metadata values- Returns:
- the ORCID object
-
getProfileSectionType
OrcidProfileSectionType getProfileSectionType()
Returns the profile section type related to this factory.- Returns:
- the profile section type
-
getSynchronizationPreference
OrcidProfileSyncPreference getSynchronizationPreference()
Returns the profile synchronization preference related to this factory.- Returns:
- the synchronization preference
-
getMetadataFields
List<String> getMetadataFields()
Returns all the metadata fields involved in the profile section configuration.- Returns:
- the metadataFields
-
getMetadataSignatures
List<String> getMetadataSignatures(Context context, Item item)
Given the input item's metadata values generate a metadata signature for each metadata field groups handled by this factory or for each metadata fields if the factory is configured with single metadata fields.- Parameters:
context- the DSpace contextitem- the item- Returns:
- the metadata signatures
-
getDescription
String getDescription(Context context, Item item, String signature)
Returns a description of the item's metadata values related to the given signature.- Parameters:
context- the DSpace contextitem- the itemsignature- the metadata signature- Returns:
- the metadata values description
-
-