public class UserAdapter extends AbstractMongoAdapter<MongoUserEntity> implements UserModel
UserModel.RequiredActioninvocationContextEMAIL, FIRST_NAME, LAST_NAME, LOGIN_NAME| Constructor and Description |
|---|
UserAdapter(MongoUserEntity userEntity,
MongoStoreInvocationContext invContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequiredAction(UserModel.RequiredAction action) |
String |
getAttribute(String name) |
Map<String,String> |
getAttributes() |
String |
getEmail() |
String |
getFirstName() |
String |
getId() |
String |
getLastName() |
String |
getLoginName() |
MongoUserEntity |
getMongoEntity() |
int |
getNotBefore() |
Set<UserModel.RequiredAction> |
getRequiredActions() |
MongoUserEntity |
getUser() |
boolean |
isEmailVerified() |
boolean |
isEnabled() |
boolean |
isTotp() |
void |
removeAttribute(String name) |
void |
removeRequiredAction(UserModel.RequiredAction action) |
void |
setAttribute(String name,
String value) |
void |
setEmail(String email) |
void |
setEmailVerified(boolean verified) |
void |
setEnabled(boolean enabled) |
void |
setFirstName(String firstName) |
void |
setLastName(String lastName) |
void |
setLoginName(String loginName) |
void |
setNotBefore(int notBefore) |
void |
setTotp(boolean totp) |
protected void |
updateUser() |
equals, getMongoStore, hashCode, updateMongoEntitypublic UserAdapter(MongoUserEntity userEntity, MongoStoreInvocationContext invContext)
public String getLoginName()
getLoginName in interface UserModelpublic void setLoginName(String loginName)
setLoginName in interface UserModelpublic void setEnabled(boolean enabled)
setEnabled in interface UserModelpublic int getNotBefore()
getNotBefore in interface UserModelpublic void setNotBefore(int notBefore)
setNotBefore 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 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 MongoUserEntity getUser()
public 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 UserModelprotected void updateUser()
public MongoUserEntity getMongoEntity()
getMongoEntity in class AbstractMongoAdapter<MongoUserEntity>Copyright © 2014. All Rights Reserved.