Package org.keycloak.representations.idm
Class AbstractUserRepresentation
java.lang.Object
org.keycloak.representations.idm.AbstractUserRepresentation
- Direct Known Subclasses:
UserRepresentation,UserRepresentation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfirstAttribute(String key) Returns all the attributes set to this user except the root attributes.getEmail()getId()Returns all the user attributes including the root attributes.voidsetAttributes(Map<String, List<String>> attributes) voidvoidsetEmailVerified(Boolean emailVerified) voidsetEnabled(Boolean enabled) voidsetFirstName(String firstName) voidvoidsetLastName(String lastName) voidsetUsername(String username) voidsetUserProfileMetadata(UserProfileMetadata userProfileMetadata) <R extends AbstractUserRepresentation>
RsingleAttribute(String name, String value)
-
Field Details
-
USERNAME
-
FIRST_NAME
-
LAST_NAME
-
EMAIL
-
LOCALE
-
id
-
username
-
firstName
-
lastName
-
email
-
emailVerified
-
attributes
-
enabled
-
-
Constructor Details
-
AbstractUserRepresentation
public AbstractUserRepresentation()
-
-
Method Details
-
getId
-
setId
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
getEmail
-
setEmail
-
isEmailVerified
-
setEmailVerified
-
getUsername
-
setUsername
-
getAttributes
Returns all the attributes set to this user except the root attributes.- Returns:
- the user attributes.
-
getRawAttributes
Returns all the user attributes including the root attributes.- Returns:
- all the user attributes.
-
setAttributes
-
singleAttribute
-
firstAttribute
-
setUserProfileMetadata
-
getUserProfileMetadata
-
isEnabled
-
setEnabled
-