Class AbstractOrcidProfileSectionFactory
- java.lang.Object
-
- org.dspace.orcid.model.factory.impl.AbstractOrcidProfileSectionFactory
-
- All Implemented Interfaces:
OrcidProfileSectionFactory
- Direct Known Subclasses:
OrcidSimpleValueObjectFactory
public abstract class AbstractOrcidProfileSectionFactory extends Object implements OrcidProfileSectionFactory
Abstract class for that handle commons behaviors of all the available orcid profile section factories.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
-
Field Summary
Fields Modifier and Type Field Description protected ItemServiceitemServiceprotected MetadataSignatureGeneratormetadataSignatureGeneratorprotected OrcidCommonObjectFactoryorcidCommonObjectFactoryprotected OrcidProfileSyncPreferencepreferenceprotected OrcidProfileSectionTypesectionType
-
Constructor Summary
Constructors Constructor Description AbstractOrcidProfileSectionFactory(OrcidProfileSectionType sectionType, OrcidProfileSyncPreference preference)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected List<MetadataValue>getMetadataValues(Item item, String metadataField)OrcidProfileSectionTypegetProfileSectionType()Returns the profile section type related to this factory.protected abstract List<OrcidProfileSectionType>getSupportedTypes()OrcidProfileSyncPreferencegetSynchronizationPreference()Returns the profile synchronization preference related to this factory.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.orcid.model.factory.OrcidProfileSectionFactory
create, getDescription, getMetadataFields, getMetadataSignatures
-
-
-
-
Field Detail
-
sectionType
protected final OrcidProfileSectionType sectionType
-
preference
protected final OrcidProfileSyncPreference preference
-
itemService
@Autowired protected ItemService itemService
-
orcidCommonObjectFactory
@Autowired protected OrcidCommonObjectFactory orcidCommonObjectFactory
-
metadataSignatureGenerator
@Autowired protected MetadataSignatureGenerator metadataSignatureGenerator
-
-
Constructor Detail
-
AbstractOrcidProfileSectionFactory
public AbstractOrcidProfileSectionFactory(OrcidProfileSectionType sectionType, OrcidProfileSyncPreference preference)
-
-
Method Detail
-
getSupportedTypes
protected abstract List<OrcidProfileSectionType> getSupportedTypes()
-
getProfileSectionType
public OrcidProfileSectionType getProfileSectionType()
Description copied from interface:OrcidProfileSectionFactoryReturns the profile section type related to this factory.- Specified by:
getProfileSectionTypein interfaceOrcidProfileSectionFactory- Returns:
- the profile section type
-
getSynchronizationPreference
public OrcidProfileSyncPreference getSynchronizationPreference()
Description copied from interface:OrcidProfileSectionFactoryReturns the profile synchronization preference related to this factory.- Specified by:
getSynchronizationPreferencein interfaceOrcidProfileSectionFactory- Returns:
- the synchronization preference
-
getMetadataValues
protected List<MetadataValue> getMetadataValues(Item item, String metadataField)
-
-