public class UserDataAdapter extends Object implements UserModel
UserModel.RequiredAction, UserModel.UserRemovedEvent| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
managedCredentialTypes |
protected RealmModel |
realm |
protected KeycloakSession |
session |
protected List<UserCredentialModel> |
updatedManagedCredentials |
protected UserData |
userData |
| Constructor and Description |
|---|
UserDataAdapter(KeycloakSession session,
RealmModel realm,
UserData userData) |
protected UserData userData
protected RealmModel realm
protected KeycloakSession session
protected List<UserCredentialModel> updatedManagedCredentials
public UserDataAdapter(KeycloakSession session, RealmModel realm, UserData userData)
public String getUsername()
getUsername in interface UserModelpublic void setUsername(String username)
setUsername in interface UserModelpublic Long getCreatedTimestamp()
UserModelgetCreatedTimestamp in interface UserModelpublic void setCreatedTimestamp(Long timestamp)
setCreatedTimestamp in interface UserModelpublic boolean isOtpEnabled()
isOtpEnabled in interface UserModelpublic void setEnabled(boolean enabled)
setEnabled in interface UserModelpublic void setSingleAttribute(String name, String value)
UserModelsetSingleAttribute in interface UserModelpublic void setAttribute(String name, List<String> values)
setAttribute in interface UserModelpublic void removeAttribute(String name)
removeAttribute in interface UserModelpublic String getFirstAttribute(String name)
getFirstAttribute in interface UserModelpublic List<String> getAttribute(String name)
getAttribute in interface UserModelpublic Map<String,List<String>> getAttributes()
getAttributes in interface UserModelpublic Set<String> getRequiredActions()
getRequiredActions in interface UserModelpublic void addRequiredAction(String action)
addRequiredAction in interface UserModelpublic void removeRequiredAction(String action)
removeRequiredAction in interface UserModelpublic void addRequiredAction(UserModel.RequiredAction action)
addRequiredAction in interface UserModelpublic void removeRequiredAction(UserModel.RequiredAction action)
removeRequiredAction in interface UserModelpublic String getFirstName()
getFirstName in interface UserModelpublic void setFirstName(String firstName)
setFirstName in interface UserModelpublic String getLastName()
getLastName in interface UserModelpublic void setLastName(String lastName)
setLastName in interface UserModelpublic boolean isEmailVerified()
isEmailVerified in interface UserModelpublic void setEmailVerified(boolean verified)
setEmailVerified in interface UserModelpublic void setOtpEnabled(boolean totp)
setOtpEnabled in interface UserModelpublic void updateCredential(UserCredentialModel cred)
updateCredential in interface UserModelpublic List<UserCredentialValueModel> getCredentialsDirectly()
getCredentialsDirectly in interface UserModelpublic void updateCredentialDirectly(UserCredentialValueModel cred)
updateCredentialDirectly in interface UserModelpublic Set<GroupModel> getGroups()
public void joinGroup(GroupModel group)
public void leaveGroup(GroupModel group)
leaveGroup in interface UserModelpublic boolean isMemberOf(GroupModel group)
isMemberOf in interface UserModelpublic String getFederationLink()
getFederationLink in interface UserModelpublic void setFederationLink(String link)
setFederationLink in interface UserModelpublic String getServiceAccountClientLink()
getServiceAccountClientLink in interface UserModelpublic void setServiceAccountClientLink(String clientInternalId)
setServiceAccountClientLink in interface UserModelpublic Set<RoleModel> getRealmRoleMappings()
getRealmRoleMappings in interface RoleMapperModelpublic Set<RoleModel> getClientRoleMappings(ClientModel app)
getClientRoleMappings in interface RoleMapperModelpublic boolean hasRole(RoleModel role)
hasRole in interface RoleMapperModelpublic void grantRole(RoleModel role)
grantRole in interface RoleMapperModelpublic Set<RoleModel> getRoleMappings()
getRoleMappings in interface RoleMapperModelpublic void deleteRoleMapping(RoleModel role)
deleteRoleMapping in interface RoleMapperModelCopyright © 2016 JBoss by Red Hat. All rights reserved.