public class UserUpdateProfileContext extends Object implements UpdateProfileContext
| Constructor and Description |
|---|
UserUpdateProfileContext(RealmModel realm,
UserModel user) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<String>> |
getAttributes() |
Stream<String> |
getAttributeStream(String key)
Obtains all values associated with the specified attribute name.
|
String |
getEmail() |
String |
getFirstAttribute(String name) |
String |
getFirstName() |
String |
getLastName() |
String |
getUsername() |
UserProfileContext |
getUserProfileContext() |
boolean |
isEditUsernameAllowed() |
void |
setAttribute(String key,
List<String> value) |
void |
setEmail(String email) |
void |
setFirstName(String firstName) |
void |
setLastName(String lastName) |
void |
setSingleAttribute(String name,
String value) |
void |
setUsername(String username) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributepublic UserUpdateProfileContext(RealmModel realm, UserModel user)
public boolean isEditUsernameAllowed()
isEditUsernameAllowed in interface UpdateProfileContextpublic UserProfileContext getUserProfileContext()
getUserProfileContext in interface UpdateProfileContextpublic String getUsername()
getUsername in interface UpdateProfileContextpublic void setUsername(String username)
setUsername in interface UpdateProfileContextpublic String getEmail()
getEmail in interface UpdateProfileContextpublic void setEmail(String email)
setEmail in interface UpdateProfileContextpublic String getFirstName()
getFirstName in interface UpdateProfileContextpublic void setFirstName(String firstName)
setFirstName in interface UpdateProfileContextpublic String getLastName()
getLastName in interface UpdateProfileContextpublic void setLastName(String lastName)
setLastName in interface UpdateProfileContextpublic Map<String,List<String>> getAttributes()
getAttributes in interface UpdateProfileContextpublic void setSingleAttribute(String name, String value)
setSingleAttribute in interface UpdateProfileContextpublic void setAttribute(String key, List<String> value)
setAttribute in interface UpdateProfileContextpublic String getFirstAttribute(String name)
getFirstAttribute in interface UpdateProfileContextpublic Stream<String> getAttributeStream(String key)
UpdateProfileContextgetAttributeStream in interface UpdateProfileContextkey - the name of the attribute.Stream of attribute values.Copyright © 2021 JBoss by Red Hat. All rights reserved.