public class LegacyAttributes extends DefaultAttributes
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>context, READ_ONLY_ATTRIBUTE_KEY, userEMPTY_VALUE| Constructor and Description |
|---|
LegacyAttributes(UserProfileContext context,
Map<String,?> attributes,
UserModel user,
UserProfileMetadata profileMetadata,
KeycloakSession session) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<String>> |
getReadable()
Returns only the attributes that have read/write permissions.
|
protected boolean |
isIncludeAttributeIfNotProvided(AttributeMetadata metadata) |
boolean |
isReadOnly(String attributeName)
Checks whether an attribute is read-only.
|
protected boolean |
isSupportedAttribute(String name)
Checks whether an attribute is support by the profile configuration and the current context.
|
attributeSet, contains, createAttributeContext, getMetadata, getValues, isReadOnlyFromMetadata, isReadOnlyInternalAttribute, isRequired, nameSet, toMap, validateclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetFirstValue, getReadable, isRootAttributepublic LegacyAttributes(UserProfileContext context, Map<String,?> attributes, UserModel user, UserProfileMetadata profileMetadata, KeycloakSession session)
protected boolean isSupportedAttribute(String name)
DefaultAttributesChecks whether an attribute is support by the profile configuration and the current context.
This method can be used to avoid unexpected attributes from being added as an attribute because
the attribute source is a regular Map and not normalized.
isSupportedAttribute in class DefaultAttributesname - the name of the attributepublic boolean isReadOnly(String attributeName)
AttributesisReadOnly in interface AttributesisReadOnly in class DefaultAttributespublic Map<String,List<String>> getReadable()
AttributesgetReadable in interface AttributesgetReadable in class DefaultAttributesprotected boolean isIncludeAttributeIfNotProvided(AttributeMetadata metadata)
isIncludeAttributeIfNotProvided in class DefaultAttributesCopyright © 2021 JBoss by Red Hat. All rights reserved.