Package org.dspace.external.provider
Class AbstractExternalDataProvider
java.lang.Object
org.dspace.external.provider.AbstractExternalDataProvider
- All Implemented Interfaces:
ExternalDataProvider
- Direct Known Subclasses:
LiveImportDataProvider,OpenaireFundingDataProvider,OrcidPublicationDataProvider,OrcidV3AuthorDataProvider,SHERPAv2JournalDataProvider,SHERPAv2JournalISSNDataProvider,SHERPAv2PublisherDataProvider
This abstract class allows to configure the list of supported entity types
via spring. If no entity types are explicitly configured it is assumed that
the provider can be used with any entity type
- Author:
- Mykhaylo Boychuk (mykhaylo.boychuk at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetSupportedEntityTypes(List<String> supportedEntityTypes) booleansupportsEntityType(String entityType) Return true if the supportedEntityTypes list is empty or contains the requested entity typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dspace.external.provider.ExternalDataProvider
getExternalDataObject, getNumberOfResults, getSourceIdentifier, searchExternalDataObjects, supports
-
Constructor Details
-
AbstractExternalDataProvider
public AbstractExternalDataProvider()
-
-
Method Details
-
setSupportedEntityTypes
-
getSupportedEntityTypes
-
supportsEntityType
Return true if the supportedEntityTypes list is empty or contains the requested entity type- Specified by:
supportsEntityTypein interfaceExternalDataProvider- Parameters:
entityType- the entity type to check- Returns:
- true if the external provider can be used to search for items of the specified type
-