Search in sources :

Example 1 with Transformation

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

the class PropertiesBasedConfigurer method createTenantLevelExportConfiguration.

private ExportConfiguration createTenantLevelExportConfiguration(String name) {
    ExportConfiguration result = createObject(name, ExportConfiguration.class);
    result.setDescription("configurations");
    result.setExportType("ASYNCHRONOUS");
    result.setPipeline(cache.getObjectUri(TYPE_EXPORT_PIPELINE, "search-results-csv-gzip"));
    ExportConfiguration.Transformation transformation = new ExportConfiguration.Transformation();
    transformation.setPortName("stylesheet");
    transformation.setName(cache.getObjectUri(TYPE_EXPORT_TRANSFORMATION, "csv_xsl"));
    addTransformation(result, transformation);
    addOption(result, ExportConfiguration.DefaultOption.XSL_RESULT_FORMAT, "csv");
    return result;
}
Also used : Transformation(com.opentext.ia.sdk.dto.export.ExportConfiguration.Transformation) Transformation(com.opentext.ia.sdk.dto.export.ExportConfiguration.Transformation)

Example 2 with Transformation

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

the class PropertiesBasedApplicationConfigurer method createTenantLevelExportConfiguration.

private ExportConfiguration createTenantLevelExportConfiguration(String name) {
    ExportConfiguration result = createObject(name, ExportConfiguration.class);
    result.setDescription("configurations");
    result.setExportType("ASYNCHRONOUS");
    result.setPipeline(cache.getObjectUri(TYPE_EXPORT_PIPELINE, "search-results-csv-gzip"));
    ExportConfiguration.Transformation transformation = new ExportConfiguration.Transformation();
    transformation.setPortName("stylesheet");
    transformation.setName(cache.getObjectUri(TYPE_EXPORT_TRANSFORMATION, "csv_xsl"));
    addTransformation(result, transformation);
    addOption(result, ExportConfiguration.DefaultOption.XSL_RESULT_FORMAT, "csv");
    return result;
}
Also used : ExportTransformation(com.opentext.ia.sdk.dto.export.ExportTransformation) Transformation(com.opentext.ia.sdk.dto.export.ExportConfiguration.Transformation) ExportConfiguration(com.opentext.ia.sdk.dto.export.ExportConfiguration) Transformation(com.opentext.ia.sdk.dto.export.ExportConfiguration.Transformation)

Aggregations

Transformation (com.opentext.ia.sdk.dto.export.ExportConfiguration.Transformation)2 ExportConfiguration (com.opentext.ia.sdk.dto.export.ExportConfiguration)1 ExportTransformation (com.opentext.ia.sdk.dto.export.ExportTransformation)1