public class UserAdapter extends AbstractMongoAdapter<MongoUserEntity> implements UserModel
UserModel.RequiredAction
invocationContext
EMAIL, FIRST_NAME, LAST_NAME, LOGIN_NAME
Constructor and Description |
---|
UserAdapter(KeycloakSession session,
RealmModel realm,
MongoUserEntity userEntity,
MongoStoreInvocationContext invContext) |
getMongoStore, updateMongoEntity
public UserAdapter(KeycloakSession session, RealmModel realm, MongoUserEntity userEntity, MongoStoreInvocationContext invContext)
public String getLoginName()
getLoginName
in interface UserModel
public void setLoginName(String loginName)
setLoginName
in interface UserModel
public void setEnabled(boolean enabled)
setEnabled
in interface UserModel
public int getNotBefore()
getNotBefore
in interface UserModel
public void setNotBefore(int notBefore)
setNotBefore
in interface UserModel
public String getFirstName()
getFirstName
in interface UserModel
public void setFirstName(String firstName)
setFirstName
in interface UserModel
public String getLastName()
getLastName
in interface UserModel
public void setLastName(String lastName)
setLastName
in interface UserModel
public boolean isEmailVerified()
isEmailVerified
in interface UserModel
public void setEmailVerified(boolean verified)
setEmailVerified
in interface UserModel
public void setAttribute(String name, String value)
setAttribute
in interface UserModel
public void removeAttribute(String name)
removeAttribute
in interface UserModel
public String getAttribute(String name)
getAttribute
in interface UserModel
public Map<String,String> getAttributes()
getAttributes
in interface UserModel
public MongoUserEntity getUser()
public Set<UserModel.RequiredAction> getRequiredActions()
getRequiredActions
in interface UserModel
public void addRequiredAction(UserModel.RequiredAction action)
addRequiredAction
in interface UserModel
public void removeRequiredAction(UserModel.RequiredAction action)
removeRequiredAction
in interface UserModel
public void updateCredential(UserCredentialModel cred)
updateCredential
in interface UserModel
public List<UserCredentialValueModel> getCredentialsDirectly()
getCredentialsDirectly
in interface UserModel
public void updateCredentialDirectly(UserCredentialValueModel credModel)
updateCredentialDirectly
in interface UserModel
protected void updateUser()
public MongoUserEntity getMongoEntity()
getMongoEntity
in class AbstractMongoAdapter<MongoUserEntity>
public Set<RoleModel> getRoleMappings()
getRoleMappings
in interface UserModel
public Set<RoleModel> getRealmRoleMappings()
getRealmRoleMappings
in interface UserModel
public void deleteRoleMapping(RoleModel role)
deleteRoleMapping
in interface UserModel
public Set<RoleModel> getApplicationRoleMappings(ApplicationModel app)
getApplicationRoleMappings
in interface UserModel
public AuthenticationLinkModel getAuthenticationLink()
getAuthenticationLink
in interface UserModel
public void setAuthenticationLink(AuthenticationLinkModel authenticationLink)
setAuthenticationLink
in interface UserModel
public boolean equals(Object o)
equals
in class AbstractMongoAdapter<MongoUserEntity>
public int hashCode()
hashCode
in class AbstractMongoAdapter<MongoUserEntity>
Copyright © 2014. All Rights Reserved.