Class UserAdapter
java.lang.Object
org.keycloak.models.cache.infinispan.UserAdapter
- All Implemented Interfaces:
CachedUserModel,RoleMapperModel,UserModel
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.UserModel
UserModel.RequiredAction, UserModel.UserPreRemovedEvent, UserModel.UserRemovedEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CachedUserprotected final KeycloakSessionprotected final RealmModelprotected UserModelprotected final UserCacheSessionFields inherited from interface org.keycloak.models.UserModel
COMPARE_BY_USERNAME, DISABLED_REASON, EMAIL, EMAIL_VERIFIED, ENABLED, EXACT, FIRST_NAME, GROUPS, IDP_ALIAS, IDP_USER_ID, INCLUDE_SERVICE_ACCOUNT, LAST_NAME, LOCALE, SEARCH, USERNAME -
Constructor Summary
ConstructorsConstructorDescriptionUserAdapter(CachedUser cached, UserCacheSession userProvider, KeycloakSession keycloakSession, RealmModel realm) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequiredAction(String action) voidvoiddeleteRoleMapping(RoleModel role) booleangetAttributeStream(String name) longgetEmail()getFirstAttribute(String name) longgetGroupsCountByNameContaining(String search) getId()voidbooleanhasDirectRole(RoleModel role) inthashCode()booleanvoidbooleanbooleanbooleanbooleanisMemberOf(GroupModel group) voidjoinGroup(GroupModel group) voidleaveGroup(GroupModel group) voidremoveAttribute(String name) voidremoveRequiredAction(String action) voidvoidsetAttribute(String name, List<String> values) voidsetCreatedTimestamp(Long timestamp) voidvoidsetEmailVerified(boolean verified) voidsetEnabled(boolean enabled) voidsetFederationLink(String link) voidsetFirstName(String firstName) voidsetLastName(String lastName) voidsetServiceAccountClientLink(String clientInternalId) voidsetSingleAttribute(String name, String value) voidsetUsername(String username) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.UserModel
getGroupsCount, getGroupsStream, isFederated, joinGroup
-
Field Details
-
cached
-
userProviderCache
-
keycloakSession
-
realm
-
updated
-
-
Constructor Details
-
UserAdapter
public UserAdapter(CachedUser cached, UserCacheSession userProvider, KeycloakSession keycloakSession, RealmModel realm)
-
-
Method Details
-
getFirstName
- Specified by:
getFirstNamein interfaceUserModel
-
setFirstName
- Specified by:
setFirstNamein interfaceUserModel
-
getLastName
- Specified by:
getLastNamein interfaceUserModel
-
setLastName
- Specified by:
setLastNamein interfaceUserModel
-
getEmail
-
setEmail
-
getDelegateForUpdate
- Specified by:
getDelegateForUpdatein interfaceCachedUserModel
-
isMarkedForEviction
public boolean isMarkedForEviction()- Specified by:
isMarkedForEvictionin interfaceCachedUserModel
-
invalidate
public void invalidate()- Specified by:
invalidatein interfaceCachedUserModel
-
getCacheTimestamp
public long getCacheTimestamp()- Specified by:
getCacheTimestampin interfaceCachedUserModel
-
getCachedWith
- Specified by:
getCachedWithin interfaceCachedUserModel
-
getId
-
getUsername
- Specified by:
getUsernamein interfaceUserModel
-
setUsername
- Specified by:
setUsernamein interfaceUserModel
-
getCreatedTimestamp
- Specified by:
getCreatedTimestampin interfaceUserModel
-
setCreatedTimestamp
- Specified by:
setCreatedTimestampin interfaceUserModel
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceUserModel
-
setSingleAttribute
- Specified by:
setSingleAttributein interfaceUserModel
-
setAttribute
- Specified by:
setAttributein interfaceUserModel
-
removeAttribute
- Specified by:
removeAttributein interfaceUserModel
-
getFirstAttribute
- Specified by:
getFirstAttributein interfaceUserModel
-
getAttributeStream
- Specified by:
getAttributeStreamin interfaceUserModel
-
getAttributes
- Specified by:
getAttributesin interfaceUserModel
-
getRequiredActionsStream
- Specified by:
getRequiredActionsStreamin interfaceUserModel
-
addRequiredAction
- Specified by:
addRequiredActionin interfaceUserModel
-
removeRequiredAction
- Specified by:
removeRequiredActionin interfaceUserModel
-
addRequiredAction
- Specified by:
addRequiredActionin interfaceUserModel
-
removeRequiredAction
- Specified by:
removeRequiredActionin interfaceUserModel
-
isEmailVerified
public boolean isEmailVerified()- Specified by:
isEmailVerifiedin interfaceUserModel
-
setEmailVerified
public void setEmailVerified(boolean verified) - Specified by:
setEmailVerifiedin interfaceUserModel
-
getFederationLink
- Specified by:
getFederationLinkin interfaceUserModel
-
setFederationLink
- Specified by:
setFederationLinkin interfaceUserModel
-
getServiceAccountClientLink
- Specified by:
getServiceAccountClientLinkin interfaceUserModel
-
setServiceAccountClientLink
- Specified by:
setServiceAccountClientLinkin interfaceUserModel
-
credentialManager
- Specified by:
credentialManagerin interfaceUserModel
-
getRealmRoleMappingsStream
- Specified by:
getRealmRoleMappingsStreamin interfaceRoleMapperModel
-
getClientRoleMappingsStream
- Specified by:
getClientRoleMappingsStreamin interfaceRoleMapperModel
-
hasDirectRole
- Specified by:
hasDirectRolein interfaceRoleMapperModel
-
hasRole
- Specified by:
hasRolein interfaceRoleMapperModel
-
grantRole
- Specified by:
grantRolein interfaceRoleMapperModel
-
getRoleMappingsStream
- Specified by:
getRoleMappingsStreamin interfaceRoleMapperModel
-
deleteRoleMapping
- Specified by:
deleteRoleMappingin interfaceRoleMapperModel
-
getGroupsStream
- Specified by:
getGroupsStreamin interfaceUserModel
-
getGroupsCountByNameContaining
- Specified by:
getGroupsCountByNameContainingin interfaceUserModel
-
joinGroup
-
leaveGroup
- Specified by:
leaveGroupin interfaceUserModel
-
isMemberOf
- Specified by:
isMemberOfin interfaceUserModel
-
equals
-
hashCode
public int hashCode()
-