Package org.dspace.orcid.service
Interface OrcidProfileSectionFactoryService
-
- All Known Implementing Classes:
OrcidProfileSectionFactoryServiceImpl
public interface OrcidProfileSectionFactoryServiceInterface that mark classes that handle the configured instance ofOrcidProfileSectionFactory.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectcreateOrcidObject(Context context, List<MetadataValue> metadataValues, OrcidProfileSectionType type)Builds an ORCID object starting from the given metadata values compliance to the given profile section type.List<OrcidProfileSectionFactory>findByPreferences(List<OrcidProfileSyncPreference> preferences)Returns all the profile section configurations relative to the given preferences.Optional<OrcidProfileSectionFactory>findBySectionType(OrcidProfileSectionType type)Returns the profile section factory of the given type.
-
-
-
Method Detail
-
findBySectionType
Optional<OrcidProfileSectionFactory> findBySectionType(OrcidProfileSectionType type)
Returns the profile section factory of the given type.- Parameters:
type- the type of the section configurations to retrieve- Returns:
- the section configurations of the given type
-
findByPreferences
List<OrcidProfileSectionFactory> findByPreferences(List<OrcidProfileSyncPreference> preferences)
Returns all the profile section configurations relative to the given preferences.- Parameters:
preferences- the preferences to search for- Returns:
- the section configurations
-
createOrcidObject
Object createOrcidObject(Context context, List<MetadataValue> metadataValues, OrcidProfileSectionType type)
Builds an ORCID object starting from the given metadata values compliance to the given profile section type.- Parameters:
context- the DSpace contextmetadataValues- the metadata valuestype- the profile section type- Returns:
- the created object
-
-