use of com.evolveum.midpoint.model.api.validator.ResourceValidator in project midpoint by Evolveum.
the class ResourceWizardIssuesModel method load.
@NotNull
@Override
protected WizardIssuesDto load() {
final WizardIssuesDto issuesDto = new WizardIssuesDto();
if (!resourceModel.isLoaded()) {
// e.g. in first two wizard steps (IT PROBABLY DOES NOT WORK AS EXPECTED)
return issuesDto;
}
ResourceValidator validator = wizardPage.getResourceValidator();
ValidationResult validationResult = validator.validate(resourceModel.getObject(), Scope.QUICK, WebComponentUtil.getCurrentLocale(), wizardPage.createSimpleTask("validate"), new OperationResult("validate"));
issuesDto.fillFrom(validationResult);
issuesDto.sortIssues();
return issuesDto;
}
Aggregations