org.keycloak.userprofile.validation

## Class UserProfileValidationResult

- java.lang.Object
- - org.keycloak.userprofile.validation.UserProfileValidationResult

-     public class UserProfileValidationResult
      extends Object

  Author:
    Markus Till

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UserProfileValidationResult(List<AttributeValidationResult> attributeValidationResults, UserProfile updatedProfile)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<AttributeValidationResult>` | `getErrors()`
    `UserProfile` | `getProfile()` Returns the `UserProfile` used during validations.
    `List<AttributeValidationResult>` | `getValidationResults()`
    `boolean` | `hasAttributeChanged(String attribute)`
    `boolean` | `hasFailureOfErrorType(String... errorKeys)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### UserProfileValidationResult

          public UserProfileValidationResult(List<AttributeValidationResult> attributeValidationResults,
                                             UserProfile updatedProfile)

  - ### Method Detail

    - #### getValidationResults

          public List<AttributeValidationResult> getValidationResults()

    - #### getErrors

          public List<AttributeValidationResult> getErrors()

    - #### hasFailureOfErrorType

          public boolean hasFailureOfErrorType(String... errorKeys)

    - #### hasAttributeChanged

          public boolean hasAttributeChanged(String attribute)

    - #### getProfile

          public UserProfile getProfile()

      Returns the `UserProfile` used during validations.
      Returns:
        the profile user during validations

Copyright © 2021 JBoss by Red Hat. All rights reserved.