use of com.evolveum.midpoint.schema.ProvisioningDiag in project midpoint by Evolveum.
the class PageAbout method loadProvisioningDiagModel.
private ProvisioningDiag loadProvisioningDiagModel() {
OperationResult result = new OperationResult(OPERATION_GET_PROVISIONING_DIAG);
ProvisioningDiag diag = null;
try {
Task task = createSimpleTask(OPERATION_GET_PROVISIONING_DIAG);
diag = getModelDiagnosticService().getProvisioningDiag(task, result);
result.recordSuccessIfUnknown();
} catch (Exception ex) {
LoggingUtils.logUnexpectedException(LOGGER, "Couldn't get provisioning diagnostics", ex);
result.recordFatalError("Couldn't get provisioning diagnostics.", ex);
}
result.recomputeStatus();
if (!WebComponentUtil.isSuccessOrHandledError(result)) {
showResult(result);
}
return diag;
}
use of com.evolveum.midpoint.schema.ProvisioningDiag in project midpoint by Evolveum.
the class ProvisioningServiceImpl method getProvisioningDiag.
@Override
public ProvisioningDiag getProvisioningDiag() {
ProvisioningDiag provisioningDiag = new ProvisioningDiag();
String frameworkVersion = connectorManager.getFrameworkVersion();
if (frameworkVersion == null) {
frameworkVersion = "unknown";
}
provisioningDiag.getAdditionalDetails().add(new LabeledString(DETAILS_CONNECTOR_FRAMEWORK_VERSION, frameworkVersion));
return provisioningDiag;
}
Aggregations