Class UserUpdateProfileContext
- java.lang.Object
- 
- org.keycloak.authentication.requiredactions.util.UserUpdateProfileContext
 
- 
- All Implemented Interfaces:
- UpdateProfileContext
 
 public class UserUpdateProfileContext extends Object implements UpdateProfileContext - Author:
- Marek Posolda
 
- 
- 
Constructor SummaryConstructors Constructor Description UserUpdateProfileContext(RealmModel realm, UserModel user)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<String>>getAttributes()Stream<String>getAttributeStream(String key)Obtains all values associated with the specified attribute name.StringgetEmail()StringgetFirstAttribute(String name)StringgetFirstName()StringgetLastName()StringgetUsername()UserProfileContextgetUserProfileContext()booleanisEditEmailAllowed()booleanisEditUsernameAllowed()voidsetAttribute(String key, List<String> value)voidsetEmail(String email)voidsetFirstName(String firstName)voidsetLastName(String lastName)voidsetSingleAttribute(String name, String value)voidsetUsername(String username)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.authentication.requiredactions.util.UpdateProfileContextgetAttribute
 
- 
 
- 
- 
- 
Constructor Detail- 
UserUpdateProfileContextpublic UserUpdateProfileContext(RealmModel realm, UserModel user) 
 
- 
 - 
Method Detail- 
isEditUsernameAllowedpublic boolean isEditUsernameAllowed() - Specified by:
- isEditUsernameAllowedin interface- UpdateProfileContext
 
 - 
getUserProfileContextpublic UserProfileContext getUserProfileContext() - Specified by:
- getUserProfileContextin interface- UpdateProfileContext
 
 - 
getUsernamepublic String getUsername() - Specified by:
- getUsernamein interface- UpdateProfileContext
 
 - 
setUsernamepublic void setUsername(String username) - Specified by:
- setUsernamein interface- UpdateProfileContext
 
 - 
isEditEmailAllowedpublic boolean isEditEmailAllowed() - Specified by:
- isEditEmailAllowedin interface- UpdateProfileContext
 
 - 
getEmailpublic String getEmail() - Specified by:
- getEmailin interface- UpdateProfileContext
 
 - 
setEmailpublic void setEmail(String email) - Specified by:
- setEmailin interface- UpdateProfileContext
 
 - 
getFirstNamepublic String getFirstName() - Specified by:
- getFirstNamein interface- UpdateProfileContext
 
 - 
setFirstNamepublic void setFirstName(String firstName) - Specified by:
- setFirstNamein interface- UpdateProfileContext
 
 - 
getLastNamepublic String getLastName() - Specified by:
- getLastNamein interface- UpdateProfileContext
 
 - 
setLastNamepublic void setLastName(String lastName) - Specified by:
- setLastNamein interface- UpdateProfileContext
 
 - 
getAttributespublic Map<String,List<String>> getAttributes() - Specified by:
- getAttributesin interface- UpdateProfileContext
 
 - 
setSingleAttributepublic void setSingleAttribute(String name, String value) - Specified by:
- setSingleAttributein interface- UpdateProfileContext
 
 - 
setAttributepublic void setAttribute(String key, List<String> value) - Specified by:
- setAttributein interface- UpdateProfileContext
 
 - 
getFirstAttributepublic String getFirstAttribute(String name) - Specified by:
- getFirstAttributein interface- UpdateProfileContext
 
 - 
getAttributeStreampublic Stream<String> getAttributeStream(String key) Description copied from interface:UpdateProfileContextObtains all values associated with the specified attribute name.- Specified by:
- getAttributeStreamin interface- UpdateProfileContext
- Parameters:
- key- the name of the attribute.
- Returns:
- a non-null Streamof attribute values.
 
 
- 
 
-