use of com.evolveum.midpoint.report.impl.controller.ImportController in project midpoint by Evolveum.
the class ClassicReportImportActivityRun method beforeRun.
@Override
public void beforeRun(OperationResult result) throws CommonException, ActivityRunException {
support.beforeExecution(result);
ReportType report = support.getReport();
support.stateCheck(result);
controller = new ImportController(report, reportService, support.existCollectionConfiguration() ? support.getCompiledCollectionView(result) : null);
controller.initialize();
try {
variables = controller.parseColumnsAsVariablesFromFile(support.getReportData());
} catch (IOException e) {
String message = "Couldn't read content of imported file: " + e.getMessage();
result.recordFatalError(message, e);
throw new ActivityRunException(message, FATAL_ERROR, PERMANENT_ERROR, e);
}
}
Aggregations