public class UISClient extends Object
| Constructor and Description |
|---|
UISClient()
Creates a new instance of this class.
|
UISClient(ServiceProvider uisProvider)
Creates a new instance of this class.
|
UISClient(ServiceProvider uisProvider,
String username,
String password)
Creates a new instance of this class.
|
UISClient(String username,
String password)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
CloudId |
createCloudId(String providerId)
Invoke the creation of a new CloudId REST call.
|
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,
DataProviderProperties dp)
Create a data provider.
|
boolean |
deleteCloudId(String cloudId)
Delete a cloud id and all its mapped record ids.
|
CloudException |
generateException(ErrorInfo e)
Generates the exception to be returned to the client.
|
CloudId |
getCloudId(String providerId,
String recordId)
Invoke the retrieval of a cloud identifier.
|
|
getCloudIdsByProvider(String providerId)
Retrieve the Cloud ids associated with a provider.
|
|
getCloudIdsByProviderWithPagination(String providerId,
String cloudId,
int window)
Retrieve the cloud ids associated with a provider with pagination.
|
DataProvider |
getDataProvider(String providerId)
Retrieve a selected data provider.
|
|
getDataProviders(String from)
Get data providers
|
|
getRecordId(String cloudId)
Retrieve the local identifiers associated with a cloud identifier
|
|
getRecordIdsByProvider(String providerId)
Retrieve records associated with a provider.
|
|
getRecordIdsByProviderWithPagination(String providerId,
String recordId,
int window)
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,
DataProviderProperties dp)
Update a Data Provider.
|
public UISClient()
public UISClient(String username, String password)
UISClient() but includes username and password to
perform authenticated requests.public UISClient(ServiceProvider uisProvider)
ServiceProvideruisProvider - public UISClient(ServiceProvider uisProvider,
String username,
String password)
UISClient(ServiceProvider) but includes username and password to
perform authenticated requests.public CloudId createCloudId(String providerId, String recordId) throws CloudException
providerId - The provider IdrecordId - The record IdCloudException - The generic cloud exception wrapperpublic CloudId createCloudId(String providerId) throws CloudException
providerId - The provider IdCloudException - The generic cloud exception wrapperpublic CloudId getCloudId(String providerId, String recordId) throws CloudException
providerId - The provider IdrecordId - The record IdCloudException - The generic cloud exception wrapperpublicgetRecordId(String cloudId) throws CloudException
cloudId - The cloud id to search forCloudException - The generic cloud exception wrapperpublicgetRecordIdsByProvider(String providerId) throws CloudException
providerId - The provider IdCloudException - The generic cloud exception wrapperpublicgetCloudIdsByProvider(String providerId) throws CloudException
providerId - The provider idCloudException - The generic cloud exception wrapperpublicgetRecordIdsByProviderWithPagination(String providerId, String recordId, int window) throws CloudException
providerId - The provider idrecordId - The record id to start retrieval fromwindow - The maximum number of records to fetchCloudException - The generic cloud exception wrapperpublicgetCloudIdsByProviderWithPagination(String providerId, String cloudId, int window) throws CloudException
providerId - The provider idcloudId - The cloud id to start retrieval fromwindow - 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, DataProviderProperties dp) throws CloudException
providerId - The data provider Iddp - The data provider propertiesCloudExceptionpublic boolean updateProvider(String providerId, DataProviderProperties dp) throws CloudException
providerId - The provider to updatedp - The data provider propertiesCloudExceptionpublicgetDataProviders(String from) throws CloudException
from - The record to start fromCloudExceptionpublic DataProvider getDataProvider(String providerId) throws CloudException
providerId - The provider id to retrieveCloudExceptionpublic CloudException generateException(ErrorInfo e)
e - The error info that was generatedCopyright © 2013–2014 Europeana Cloud Development Team. All rights reserved.