public class EuropeanaNewspapersResourceProvider extends DefaultResourceProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
IMAGE_DIR |
CONTACT_PERSON_KEY, dataProviderId, DEFAULT_CONTACT_PERSON, DEFAULT_DIGITAL_LIBRARY_WEBSITE, DEFAULT_DIGITAL_LIBRARY_WEBSITE_URL, DEFAULT_OFFICIAL_ADDRESS, DEFAULT_ORGANISATION_NAME, DEFAULT_ORGANISATION_WEBSITE, DEFAULT_ORGANISATION_WEBSITE_URL, DEFAULT_REMARKS, DIGITAL_LIBRARY_WEBSITE_KEY, DIGITAL_LIBRARY_WEBSITE_URL_KEY, local, locations, mappingFile, OFFICIAL_ADDRESS_KEY, ORGANISATION_NAME_KEY, ORGANISATION_WEBSITE_KEY, ORGANISATION_WEBSITE_URL_KEY, PROPERTIES_EXTENSION, REMARKS_KEY, representationName| Constructor and Description |
|---|
EuropeanaNewspapersResourceProvider(String representationName,
String mappingFile,
String locations,
String dataProviderId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDataProviderId(String path)
Returns the data provider identifier used in ECloud.
|
eu.europeana.cloud.common.model.DataProviderProperties |
getDataProviderProperties(String path)
Get basic information on data provider such as organisation name, address and others.
|
int |
getFileCount(String localId)
Determine the number of files that should be added for the specified local identifier.
|
String |
getLocalIdentifier(String location,
String path,
boolean duplicate)
Get local identifier of the record for the specified path to file and provider identifier.
|
String |
getResourceProviderId(String path)
Get resource provider identifier as string.
|
Map<String,String> |
getReversedMapping()
Mapping file can associate local record identifier with a set of paths to files.
|
List<FilePaths> |
split(List<FilePaths> paths)
Resource provider implementation may split the file paths that will be migrated into several parts.
|
boolean |
usePathsFile()
Indicates whether file paths to process should be stored in a file.
|
getDataProviderPropertiesFromFile, getDefaultDataProviderProperties, getFilename, getLocations, getProviderPaths, getProvidersLocation, getRepresentationName, isLocal, scanpublic static final String IMAGE_DIR
public EuropeanaNewspapersResourceProvider(String representationName, String mappingFile, String locations, String dataProviderId) throws IOException
IOExceptionpublic String getResourceProviderId(String path)
ResourceProviderpath - path to resourcepublic String getDataProviderId(String path)
ResourceProviderpath - path to file that may be used to determine the data provider identifier if it's not defined in configurationpublic eu.europeana.cloud.common.model.DataProviderProperties getDataProviderProperties(String path)
ResourceProviderDataProviderProperties for details.path - path to directory where the data provider properties file is locatedpublic String getLocalIdentifier(String location, String path, boolean duplicate)
ResourceProviderlocation - location of the file pathpath - path to fileduplicate - indicate whether this may be a duplicatepublic int getFileCount(String localId)
ResourceProvidergetFileCount in interface ResourceProvidergetFileCount in class DefaultResourceProviderlocalId - local identifier of the recordpublic List<FilePaths> split(List<FilePaths> paths)
ResourceProvidersplit in interface ResourceProvidersplit in class DefaultResourceProviderpaths - paths to files that will be migratedpublic boolean usePathsFile()
ResourceProviderusePathsFile in interface ResourceProviderusePathsFile in class DefaultResourceProviderpublic Map<String,String> getReversedMapping()
ResourceProvidergetReversedMapping in interface ResourceProvidergetReversedMapping in class DefaultResourceProviderCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.