public class UserAdapter extends Object implements UserModel
UserModel.RequiredAction| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
protected RealmModel |
realm |
protected UserEntity |
user |
EMAIL, FIRST_NAME, LAST_NAME, LOGIN_NAME| Constructor and Description |
|---|
UserAdapter(RealmModel realm,
javax.persistence.EntityManager em,
UserEntity user) |
protected UserEntity user
protected javax.persistence.EntityManager em
protected RealmModel realm
public UserAdapter(RealmModel realm, javax.persistence.EntityManager em, UserEntity user)
public UserEntity getUser()
public String getLoginName()
getLoginName in interface UserModelpublic void setLoginName(String loginName)
setLoginName in interface UserModelpublic void setEnabled(boolean enabled)
setEnabled in interface UserModelpublic void setAttribute(String name, String value)
setAttribute in interface UserModelpublic void removeAttribute(String name)
removeAttribute in interface UserModelpublic String getAttribute(String name)
getAttribute in interface UserModelpublic Map<String,String> getAttributes()
getAttributes in interface UserModelpublic Set<UserModel.RequiredAction> getRequiredActions()
getRequiredActions 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 int getNotBefore()
getNotBefore in interface UserModelpublic void setNotBefore(int notBefore)
setNotBefore in interface UserModelpublic void updateCredential(UserCredentialModel cred)
updateCredential in interface UserModelpublic List<UserCredentialValueModel> getCredentialsDirectly()
getCredentialsDirectly in interface UserModelpublic void updateCredentialDirectly(UserCredentialValueModel credModel)
updateCredentialDirectly in interface UserModelprotected javax.persistence.TypedQuery<UserRoleMappingEntity> getUserRoleMappingEntityTypedQuery(RoleModel role)
public Set<RoleModel> getRealmRoleMappings()
getRealmRoleMappings in interface UserModelpublic Set<RoleModel> getRoleMappings()
getRoleMappings in interface UserModelpublic void deleteRoleMapping(RoleModel role)
deleteRoleMapping in interface UserModelpublic Set<RoleModel> getApplicationRoleMappings(ApplicationModel app)
getApplicationRoleMappings in interface UserModelpublic AuthenticationLinkModel getAuthenticationLink()
getAuthenticationLink in interface UserModelpublic void setAuthenticationLink(AuthenticationLinkModel authenticationLink)
setAuthenticationLink in interface UserModelCopyright © 2014. All Rights Reserved.