Search in sources :

Example 1 with ApplicationIngestionResourcesCache

use of com.opentext.ia.sdk.client.impl.ApplicationIngestionResourcesCache in project infoarchive-sip-sdk by Enterprise-Content-Management.

the class ArchiveClients method appResourceCache.

private static ApplicationIngestionResourcesCache appResourceCache(RestClient restClient, ServerConfiguration configuration) {
    try {
        ApplicationIngestionResourcesCache resourceCache = new ApplicationIngestionResourcesCache(configuration.getApplicationName());
        Services services = restClient.get(configuration.getBillboardUri(), Services.class);
        Tenant tenant = getTenant(restClient, services);
        Application application = getApplication(restClient, tenant, configuration.getApplicationName());
        cacheResourceUris(resourceCache, restClient, application);
        return resourceCache;
    } catch (IOException e) {
        throw new RuntimeIoException(e);
    }
}
Also used : ApplicationIngestionResourcesCache(com.opentext.ia.sdk.client.impl.ApplicationIngestionResourcesCache) IOException(java.io.IOException) RuntimeIoException(com.opentext.ia.sdk.support.io.RuntimeIoException)

Aggregations

ApplicationIngestionResourcesCache (com.opentext.ia.sdk.client.impl.ApplicationIngestionResourcesCache)1 RuntimeIoException (com.opentext.ia.sdk.support.io.RuntimeIoException)1 IOException (java.io.IOException)1