Package org.dspace.orcid.service.impl
Class OrcidProfileSectionFactoryServiceImpl
java.lang.Object
org.dspace.orcid.service.impl.OrcidProfileSectionFactoryServiceImpl
- All Implemented Interfaces:
OrcidProfileSectionFactoryService
public class OrcidProfileSectionFactoryServiceImpl
extends Object
implements OrcidProfileSectionFactoryService
Implementation of
OrcidProfileSectionFactoryService.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrcidObject(Context context, List<MetadataValue> metadataValues, OrcidProfileSectionType type) Builds an ORCID object starting from the given metadata values compliance to the given profile section type.findByPreferences(List<OrcidProfileSyncPreference> preferences) Returns all the profile section configurations relative to the given preferences.Returns the profile section factory of the given type.
-
Method Details
-
findBySectionType
Description copied from interface:OrcidProfileSectionFactoryServiceReturns the profile section factory of the given type.- Specified by:
findBySectionTypein interfaceOrcidProfileSectionFactoryService- Parameters:
type- the type of the section configurations to retrieve- Returns:
- the section configurations of the given type
-
findByPreferences
public List<OrcidProfileSectionFactory> findByPreferences(List<OrcidProfileSyncPreference> preferences) Description copied from interface:OrcidProfileSectionFactoryServiceReturns all the profile section configurations relative to the given preferences.- Specified by:
findByPreferencesin interfaceOrcidProfileSectionFactoryService- Parameters:
preferences- the preferences to search for- Returns:
- the section configurations
-
createOrcidObject
public Object createOrcidObject(Context context, List<MetadataValue> metadataValues, OrcidProfileSectionType type) Description copied from interface:OrcidProfileSectionFactoryServiceBuilds an ORCID object starting from the given metadata values compliance to the given profile section type.- Specified by:
createOrcidObjectin interfaceOrcidProfileSectionFactoryService- Parameters:
context- the DSpace contextmetadataValues- the metadata valuestype- the profile section type- Returns:
- the created object
-