public class UISClient extends Object
| Constructor and Description |
|---|
UISClient(String uisUrl)
Creates a new instance of this class, with a static UIS url.
|
UISClient(String uisUrl,
String username,
String password)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
eu.europeana.cloud.common.model.CloudId |
createCloudId(String providerId)
Invoke the creation of a new CloudId REST call.
|
eu.europeana.cloud.common.model.CloudId |
createCloudId(String providerId,
String recordId)
Invoke the creation of a new CloudId REST call.
|
boolean |
createMapping(String cloudId,
String providerId,
String recordId)
Create a mapping between a cloud id and provider and record id.
|
String |
createProvider(String providerId,
eu.europeana.cloud.common.model.DataProviderProperties dp)
Create a data provider.
|
boolean |
deleteCloudId(String cloudId)
Delete a cloud id and all its mapped record ids.
|
protected void |
finalize() |
CloudException |
generateException(eu.europeana.cloud.common.response.ErrorInfo e)
Generates the exception to be returned to the client.
|
eu.europeana.cloud.common.model.CloudId |
getCloudId(String providerId,
String recordId)
Invoke the retrieval of a cloud identifier.
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.CloudId> |
getCloudIdsByProvider(String providerId)
Retrieve the Cloud ids associated with a provider.
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.CloudId> |
getCloudIdsByProviderWithPagination(String providerId,
String startRecordId,
int limit)
Retrieve the cloud ids associated with a provider with pagination.
|
eu.europeana.cloud.common.model.DataProvider |
getDataProvider(String providerId)
Retrieve a selected data provider.
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.DataProvider> |
getDataProviders(String from)
Get data providers
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.CloudId> |
getRecordId(String cloudId)
Retrieve the local identifiers associated with a cloud identifier
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.LocalId> |
getRecordIdsByProvider(String providerId)
Retrieve records associated with a provider.
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.LocalId> |
getRecordIdsByProviderWithPagination(String providerId,
String startRecordId,
int limit)
Retrieve the record ids associated with a provider with pagination.
|
boolean |
removeMappingByLocalId(String providerId,
String recordId)
Remove the association of a record id to a cloud id.
|
boolean |
updateProvider(String providerId,
eu.europeana.cloud.common.model.DataProviderProperties dp)
Update a Data Provider.
|
public UISClient(String uisUrl, String username, String password)
UISClient(String)
but includes username and password to perform authenticated requests.public UISClient(String uisUrl)
uisUrl - The URL of some UIS instance to connect to.public eu.europeana.cloud.common.model.CloudId createCloudId(String providerId, String recordId) throws CloudException
providerId - The provider IdrecordId - The record IdCloudException - The generic cloud exception wrapperpublic eu.europeana.cloud.common.model.CloudId createCloudId(String providerId) throws CloudException
providerId - The provider IdCloudException - The generic cloud exception wrapperpublic eu.europeana.cloud.common.model.CloudId getCloudId(String providerId, String recordId) throws CloudException
providerId - The provider IdrecordId - The record IdCloudException - The generic cloud exception wrapperpublic eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.CloudId> getRecordId(String cloudId) throws CloudException
cloudId - The cloud id to search forCloudException - The generic cloud exception wrapperpublic eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.LocalId> getRecordIdsByProvider(String providerId) throws CloudException
providerId - The provider IdCloudException - The generic cloud exception wrapperpublic eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.CloudId> getCloudIdsByProvider(String providerId) throws CloudException
providerId - The provider idCloudException - The generic cloud exception wrapperpublic eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.LocalId> getRecordIdsByProviderWithPagination(String providerId, String startRecordId, int limit) throws CloudException
providerId - The provider idstartRecordId - The local identifier to start retrieval fromlimit - The maximum number of records to fetchCloudException - The generic cloud exception wrapperpublic eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.CloudId> getCloudIdsByProviderWithPagination(String providerId, String startRecordId, int limit) throws CloudException
providerId - The provider idstartRecordId - The local identifier to start retrieval fromlimit - The maximum number of records to fetchCloudException - The generic cloud exception wrapperpublic boolean createMapping(String cloudId, String providerId, String recordId) throws CloudException
cloudId - The cloud idproviderId - The provider idrecordId - The record idCloudException - The generic cloud exception wrapperpublic boolean removeMappingByLocalId(String providerId, String recordId) throws CloudException
providerId - The provider id to userecordId - The record id to useCloudException - The generic cloud exception wrapperpublic boolean deleteCloudId(String cloudId) throws CloudException
cloudId - The cloud id to removeCloudException - The generic cloud exception wrapperpublic String createProvider(String providerId, eu.europeana.cloud.common.model.DataProviderProperties dp) throws CloudException
providerId - The data provider Iddp - The data provider propertiesCloudExceptionpublic boolean updateProvider(String providerId, eu.europeana.cloud.common.model.DataProviderProperties dp) throws CloudException
providerId - The provider to updatedp - The data provider propertiesCloudExceptionpublic eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.DataProvider> getDataProviders(String from) throws CloudException
from - The record to start fromCloudExceptionpublic eu.europeana.cloud.common.model.DataProvider getDataProvider(String providerId) throws CloudException
providerId - The provider id to retrieveCloudExceptionpublic CloudException generateException(eu.europeana.cloud.common.response.ErrorInfo e)
e - The error info that was generatedCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.