public class RoyalArmoryResourceProvider extends DefaultResourceProvider
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 |
|---|
RoyalArmoryResourceProvider(String representationName,
String mappingFile,
String locations,
String dataProviderId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDataProviderId(String path)
RoyalArmoryResourceProvider always uses the specified data provider identifier.
|
eu.europeana.cloud.common.model.DataProviderProperties |
getDataProviderProperties(String path)
Input path must point to the file that is either the properties file or the directory that contains
properties file named id.properties where id is identifier of data provider used in ECloud
|
int |
getFileCount(String localId)
Determine the number of files that should be added for the specified local identifier.
|
String |
getFilename(String location,
String path)
User filename must start with location
|
String |
getLocalIdentifier(String location,
String path,
boolean duplicate)
Return local record identifier from the path to image file.
|
String |
getResourceProviderId(String path)
Get resource provider identifier as string.
|
getDataProviderPropertiesFromFile, getDefaultDataProviderProperties, getLocations, getProviderPaths, getProvidersLocation, getRepresentationName, getReversedMapping, isLocal, scan, split, usePathsFilepublic String getLocalIdentifier(String location, String path, boolean duplicate)
location - location where the file residespath - path to image fileduplicate - not used herepublic String getResourceProviderId(String path)
ResourceProviderpath - path to resourcepublic String getDataProviderId(String path)
path - path to file that is not usedpublic eu.europeana.cloud.common.model.DataProviderProperties getDataProviderProperties(String path)
path - path to directory where the data provider properties file is locatedpublic String getFilename(String location, String path)
getFilename in interface ResourceProvidergetFilename in class DefaultResourceProviderpath - path to filelocation - location where path is placed, usually path starts with locationpublic int getFileCount(String localId)
ResourceProvidergetFileCount in interface ResourceProvidergetFileCount in class DefaultResourceProviderlocalId - local identifier of the recordCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.