Search in sources :

Example 1 with Application

use of com.opentext.ia.sdk.dto.Application in project infoarchive-sip-sdk by Enterprise-Content-Management.

the class ArchiveClients method appResourceCache.

private static ApplicationIngestionResourcesCache appResourceCache(String applicationName, ArchiveConnection connection, RestClient restClient) throws IOException {
    ApplicationIngestionResourcesCache resourceCache = new ApplicationIngestionResourcesCache(applicationName);
    Services services = connection.getServices();
    ProductInfo productInfo = getProductInfo(restClient, services);
    Tenant tenant = getTenant(restClient, services);
    Application application = getApplication(restClient, tenant, applicationName);
    cacheResourceUris(restClient, services, productInfo, application, resourceCache);
    return resourceCache;
}
Also used : Services(com.opentext.ia.sdk.dto.Services) ProductInfo(com.opentext.ia.sdk.dto.ProductInfo) ApplicationIngestionResourcesCache(com.opentext.ia.sdk.client.impl.ApplicationIngestionResourcesCache) Tenant(com.opentext.ia.sdk.dto.Tenant) Application(com.opentext.ia.sdk.dto.Application)

Example 2 with Application

use of com.opentext.ia.sdk.dto.Application in project infoarchive-sip-sdk by Enterprise-Content-Management.

the class PropertiesBasedApplicationConfigurer method ensureApplication.

private void ensureApplication() throws IOException {
    Application application = ensureItem(cache.getTenant(), LINK_APPLICATIONS, Applications.class, APPLICATION_NAME, this::createApplication);
    cache.setApplication(application);
}
Also used : Application(com.opentext.ia.sdk.dto.Application)

Example 3 with Application

use of com.opentext.ia.sdk.dto.Application in project infoarchive-sip-sdk by Enterprise-Content-Management.

the class PropertiesBasedApplicationConfigurer method createApplication.

private Application createApplication(String name) {
    Application result = createObject(name, Application.class);
    result.setDescription(configuration.get(APPLICATION_DESCRIPTION));
    result.setCategory(configuration.get(APPLICATION_CATEGORY));
    return result;
}
Also used : Application(com.opentext.ia.sdk.dto.Application)

Aggregations

Application (com.opentext.ia.sdk.dto.Application)3 ApplicationIngestionResourcesCache (com.opentext.ia.sdk.client.impl.ApplicationIngestionResourcesCache)1 ProductInfo (com.opentext.ia.sdk.dto.ProductInfo)1 Services (com.opentext.ia.sdk.dto.Services)1 Tenant (com.opentext.ia.sdk.dto.Tenant)1