Search in sources :

Example 1 with ProvisioningDiag

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;
}
Also used : Task(com.evolveum.midpoint.task.api.Task) ProvisioningDiag(com.evolveum.midpoint.schema.ProvisioningDiag) OperationResult(com.evolveum.midpoint.schema.result.OperationResult) SchemaException(com.evolveum.midpoint.util.exception.SchemaException) SecurityViolationException(com.evolveum.midpoint.util.exception.SecurityViolationException) RestartResponseException(org.apache.wicket.RestartResponseException)

Example 2 with ProvisioningDiag

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;
}
Also used : ProvisioningDiag(com.evolveum.midpoint.schema.ProvisioningDiag) LabeledString(com.evolveum.midpoint.schema.LabeledString) LabeledString(com.evolveum.midpoint.schema.LabeledString)

Aggregations

ProvisioningDiag (com.evolveum.midpoint.schema.ProvisioningDiag)2 LabeledString (com.evolveum.midpoint.schema.LabeledString)1 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)1 Task (com.evolveum.midpoint.task.api.Task)1 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)1 SecurityViolationException (com.evolveum.midpoint.util.exception.SecurityViolationException)1 RestartResponseException (org.apache.wicket.RestartResponseException)1