Package org.keycloak.userprofile
Class LegacyAttributes
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,List<String>>
org.keycloak.userprofile.DefaultAttributes
org.keycloak.userprofile.LegacyAttributes
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,List<String>> Attributes
Enables legacy support when managing attributes without the declarative provider.
- Author:
- Pedro Igor
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields inherited from class org.keycloak.userprofile.DefaultAttributes
context, READ_ONLY_ATTRIBUTE_KEY, session, userFields inherited from interface org.keycloak.userprofile.Attributes
EMPTY_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionLegacyAttributes(UserProfileContext context, Map<String, ?> attributes, UserModel user, UserProfileMetadata profileMetadata, KeycloakSession session) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanisReadOnly(String name) protected booleanisSupportedAttribute(String name) Methods inherited from class org.keycloak.userprofile.DefaultAttributes
contains, createAttributeContext, getMetadata, getValues, isReadOnlyFromMetadata, isReadOnlyInternalAttribute, isRequired, isServiceAccountUser, nameSet, toMap, validateMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.keycloak.userprofile.Attributes
getFirstValue, getReadable, isRootAttribute
-
Constructor Details
-
LegacyAttributes
public LegacyAttributes(UserProfileContext context, Map<String, ?> attributes, UserModel user, UserProfileMetadata profileMetadata, KeycloakSession session)
-
-
Method Details
-
isSupportedAttribute
- Overrides:
isSupportedAttributein classDefaultAttributes
-
isReadOnly
- Specified by:
isReadOnlyin interfaceAttributes- Overrides:
isReadOnlyin classDefaultAttributes
-
getReadable
- Specified by:
getReadablein interfaceAttributes- Overrides:
getReadablein classDefaultAttributes
-
getWritable
- Specified by:
getWritablein interfaceAttributes- Overrides:
getWritablein classDefaultAttributes
-
isIncludeAttributeIfNotProvided
- Overrides:
isIncludeAttributeIfNotProvidedin classDefaultAttributes
-