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() |
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, wait
getAttribute
public UserUpdateProfileContext(RealmModel realm, UserModel user)
public boolean isEditUsernameAllowed()
isEditUsernameAllowed
in interface UpdateProfileContext
public String getUsername()
getUsername
in interface UpdateProfileContext
public void setUsername(String username)
setUsername
in interface UpdateProfileContext
public String getEmail()
getEmail
in interface UpdateProfileContext
public void setEmail(String email)
setEmail
in interface UpdateProfileContext
public String getFirstName()
getFirstName
in interface UpdateProfileContext
public void setFirstName(String firstName)
setFirstName
in interface UpdateProfileContext
public String getLastName()
getLastName
in interface UpdateProfileContext
public void setLastName(String lastName)
setLastName
in interface UpdateProfileContext
public Map<String,List<String>> getAttributes()
getAttributes
in interface UpdateProfileContext
public void setSingleAttribute(String name, String value)
setSingleAttribute
in interface UpdateProfileContext
public void setAttribute(String key, List<String> value)
setAttribute
in interface UpdateProfileContext
public String getFirstAttribute(String name)
getFirstAttribute
in interface UpdateProfileContext
public Stream<String> getAttributeStream(String key)
UpdateProfileContext
getAttributeStream
in interface UpdateProfileContext
key
- the name of the attribute.Stream
of attribute values.Copyright © 2021 JBoss by Red Hat. All rights reserved.