Search in sources :

Example 6 with SimpleValidationError

use of com.evolveum.midpoint.web.util.validation.SimpleValidationError in project midpoint by Evolveum.

the class PageAdminObjectDetails method checkValidationErrors.

protected boolean checkValidationErrors(AjaxRequestTarget target, Collection<SimpleValidationError> validationErrors) {
    if (validationErrors != null && !validationErrors.isEmpty()) {
        for (SimpleValidationError error : validationErrors) {
            LOGGER.error("Validation error, attribute: '" + error.printAttribute() + "', message: '" + error.getMessage() + "'.");
            error("Validation error, attribute: '" + error.printAttribute() + "', message: '" + error.getMessage() + "'.");
        }
        target.add(getFeedbackPanel());
        return true;
    }
    return false;
}
Also used : SimpleValidationError(com.evolveum.midpoint.web.util.validation.SimpleValidationError)

Aggregations

SimpleValidationError (com.evolveum.midpoint.web.util.validation.SimpleValidationError)6 ObjectDelta (com.evolveum.midpoint.prism.delta.ObjectDelta)3 ModelExecuteOptions (com.evolveum.midpoint.model.api.ModelExecuteOptions)2 AuthorizationException (com.evolveum.midpoint.util.exception.AuthorizationException)2 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)2 ArrayList (java.util.ArrayList)2 RestartResponseException (org.apache.wicket.RestartResponseException)2 com.evolveum.midpoint.prism (com.evolveum.midpoint.prism)1 Task (com.evolveum.midpoint.task.api.Task)1 ConfigurationException (com.evolveum.midpoint.util.exception.ConfigurationException)1 ObjectNotFoundException (com.evolveum.midpoint.util.exception.ObjectNotFoundException)1 SystemException (com.evolveum.midpoint.util.exception.SystemException)1 MidpointFormValidator (com.evolveum.midpoint.web.util.validation.MidpointFormValidator)1 ObjectType (com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType)1 ItemPathType (com.evolveum.prism.xml.ns._public.types_3.ItemPathType)1 Collection (java.util.Collection)1