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 Details

    • AbstractExternalDataProvider

      public AbstractExternalDataProvider()
  • Method Details

    • setSupportedEntityTypes

      public void setSupportedEntityTypes(List<String> supportedEntityTypes)
    • getSupportedEntityTypes

      public List<String> getSupportedEntityTypes()
    • supportsEntityType

      public boolean supportsEntityType(String entityType)
      Return true if the supportedEntityTypes list is empty or contains the requested entity type
      Specified by:
      supportsEntityType in interface ExternalDataProvider
      Parameters:
      entityType - the entity type to check
      Returns:
      true if the external provider can be used to search for items of the specified type