Class UserProfileAttributeMetadata

java.lang.Object
org.keycloak.representations.idm.UserProfileAttributeMetadata

public class UserProfileAttributeMetadata extends Object
Author:
Vlastimil Elias <velias@redhat.com>
  • Constructor Details

    • UserProfileAttributeMetadata

      public UserProfileAttributeMetadata()
    • UserProfileAttributeMetadata

      public UserProfileAttributeMetadata(String name, String displayName, boolean required, boolean readOnly, String group, Map<String,Object> annotations, Map<String,Map<String,Object>> validators, boolean multivalued)
  • Method Details

    • getName

      public String getName()
    • getDisplayName

      public String getDisplayName()
      Returns:
      display name, either direct string to display, or construct for i18n like ${i18nkey}
    • isRequired

      public boolean isRequired()
    • isReadOnly

      public boolean isReadOnly()
    • getGroup

      public String getGroup()
    • getAnnotations

      public Map<String,Object> getAnnotations()
      Get info about attribute annotations loaded from UserProfile configuration.
    • getValidators

      public Map<String,Map<String,Object>> getValidators()
      Get info about validators applied to attribute.
      Returns:
      map where key is validatorId and value is map with configuration for given validator (loaded from UserProfile configuration)
    • setMultivalued

      public void setMultivalued(boolean multivalued)
    • isMultivalued

      public boolean isMultivalued()