Top Fields Constructors Methods
org.keycloak.representations.idm

public Class UserProfileAttributeMetadata

extends Object
Class Inheritance
Imports
java.util.Map

Author
Vlastimil Elias

Field Summary

Modifier and TypeField and Description
private Map<String, Object>
private String
private String
private boolean
private String
private boolean
private boolean
private Map<String, Map<String, Object>>

Constructor Summary

AccessConstructor and Description
public
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 Summary

Modifier and TypeMethod and Description
public Map<String, Object>
getAnnotations()

Get info about attribute annotations loaded from UserProfile configuration.

public String

Returns:

display name, either direct string to display, or construct for i18n like ${i18nkey}
getDisplayName
()

public String
public String
public Map<String, Map<String, Object>>

Returns:

map where key is validatorId and value is map with configuration for given validator (loaded from UserProfile configuration)
getValidators
()

Get info about validators applied to attribute.

public boolean
public boolean
public boolean
public void
setMultivalued(boolean multivalued)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

annotationsback to summary
private Map<String, Object> annotations
displayNameback to summary
private String displayName
groupback to summary
private String group
multivaluedback to summary
private boolean multivalued
nameback to summary
private String name
readOnlyback to summary
private boolean readOnly
requiredback to summary
private boolean required
validatorsback to summary
private Map<String, Map<String, Object>> validators

Constructor Detail

UserProfileAttributeMetadataback to summary
public UserProfileAttributeMetadata()
UserProfileAttributeMetadataback to summary
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 Detail

getAnnotationsback to summary
public Map<String, Object> getAnnotations()

Get info about attribute annotations loaded from UserProfile configuration.

getDisplayNameback to summary
public String getDisplayName()
Returns:String

display name, either direct string to display, or construct for i18n like ${i18nkey}

getGroupback to summary
public String getGroup()
getNameback to summary
public String getName()
getValidatorsback to summary
public Map<String, Map<String, Object>> getValidators()

Get info about validators applied to attribute.

Returns:Map<String, Map<String, Object>>

map where key is validatorId and value is map with configuration for given validator (loaded from UserProfile configuration)

isMultivaluedback to summary
public boolean isMultivalued()
isReadOnlyback to summary
public boolean isReadOnly()
isRequiredback to summary
public boolean isRequired()
setMultivaluedback to summary
public void setMultivalued(boolean multivalued)