public class DataProviderResource extends Object
| Constructor and Description |
|---|
DataProviderResource() |
| Modifier and Type | Method and Description |
|---|---|
Response |
createIdMapping(String providerId,
String localId)
Create a mapping between a cloud identifier and a record identifier for a
provider
|
Response |
getCloudIdsByProvider(String providerId,
String from,
int to)
Get the cloud identifiers for a specific provider identifier with
pagination
|
Response |
getLocalIdsByProvider(String providerId,
String from,
int to)
Get the record identifiers for a specific provider identifier with
pagination
|
DataProvider |
getProvider(String providerId)
Gets provider.
|
Response |
removeIdMapping(String providerId)
Remove the mapping between a record identifier and a cloud identifier
|
void |
updateProvider(DataProviderProperties dataProviderProperties,
String providerId,
UriInfo uriInfo)
Updates data provider information.
|
public DataProvider getProvider(String providerId) throws ProviderDoesNotExistException
ProviderDoesNotExistExceptionpublic void updateProvider(DataProviderProperties dataProviderProperties,
String providerId,
UriInfo uriInfo)
throws ProviderDoesNotExistException
dataProviderProperties - data provider properties.ProviderDoesNotExistExceptionpublic Response getLocalIdsByProvider(String providerId, String from, int to) throws DatabaseConnectionException, ProviderDoesNotExistException, RecordDatasetEmptyException
from - to - DatabaseConnectionExceptionProviderDoesNotExistExceptionRecordDatasetEmptyExceptionpublic Response getCloudIdsByProvider(String providerId, String from, int to) throws DatabaseConnectionException, ProviderDoesNotExistException, RecordDatasetEmptyException
from - to - DatabaseConnectionExceptionProviderDoesNotExistExceptionRecordDatasetEmptyExceptionpublic Response createIdMapping(String providerId, String localId) throws DatabaseConnectionException, CloudIdDoesNotExistException, IdHasBeenMappedException, ProviderDoesNotExistException, RecordDatasetEmptyException
localId - DatabaseConnectionExceptionCloudIdDoesNotExistExceptionIdHasBeenMappedExceptionProviderDoesNotExistExceptionRecordDatasetEmptyExceptionpublic Response removeIdMapping(String providerId) throws DatabaseConnectionException, ProviderDoesNotExistException, RecordIdDoesNotExistException
DatabaseConnectionExceptionProviderDoesNotExistExceptionRecordIdDoesNotExistExceptionCopyright © 2013–2014 Europeana Cloud Development Team. All rights reserved.