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
public abstract class AbstractExternalDataProvider extends Object implements ExternalDataProvider
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 Constructor Description AbstractExternalDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getSupportedEntityTypes()voidsetSupportedEntityTypes(List<String> supportedEntityTypes)booleansupportsEntityType(String entityType)Return true if the supportedEntityTypes list is empty or contains the requested entity type-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.external.provider.ExternalDataProvider
getExternalDataObject, getNumberOfResults, getSourceIdentifier, searchExternalDataObjects, supports
-
-
-
-
Method Detail
-
supportsEntityType
public boolean supportsEntityType(String entityType)
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
-
-