use of com.evolveum.midpoint.xml.ns._public.common.common_3.ReportOutputType in project midpoint by Evolveum.
the class PageCreatedReports method deleteSelectedConfirmedPerformed.
private void deleteSelectedConfirmedPerformed(AjaxRequestTarget target, List<ReportOutputType> objects) {
OperationResult result = new OperationResult(OPERATION_DELETE);
for (ReportOutputType output : objects) {
WebModelServiceUtils.deleteObject(ReportOutputType.class, output.getOid(), result, this);
}
result.computeStatusIfUnknown();
ObjectDataProvider provider = getTableDataProvider();
provider.clearCache();
showResult(result);
target.add((Component) getReportOutputTable());
target.add(getFeedbackPanel());
}
use of com.evolveum.midpoint.xml.ns._public.common.common_3.ReportOutputType in project midpoint by Evolveum.
the class PageCreatedReports method getReportFileName.
private String getReportFileName() {
try {
OperationResult result = new OperationResult(OPERATION_GET_REPORT_FILENAME);
ReportOutputType reportOutput = WebModelServiceUtils.loadObject(ReportOutputType.class, currentReport.getOid(), getPageBase(), null, result).asObjectable();
String fileName = reportOutput.getFilePath();
if (fileName.contains("/")) {
fileName = fileName.substring(fileName.lastIndexOf("/") + 1);
}
return fileName;
} catch (Exception ex) {
//nothing to do
}
return null;
}
Aggregations