Package org.keycloak.storage.ldap
Class ReadonlyLDAPUserModelDelegate
- java.lang.Object
- 
- org.keycloak.models.utils.UserModelDelegate
- 
- org.keycloak.storage.ldap.ReadonlyLDAPUserModelDelegate
 
 
- 
- All Implemented Interfaces:
- RoleMapperModel,- UserModel
 
 public class ReadonlyLDAPUserModelDelegate extends UserModelDelegate Will be good to get rid of this class and use ReadOnlyUserModelDelegate, but it can't be done now due the backwards compatibility. See KEYCLOAK-15139 as an example- Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.keycloak.models.UserModelUserModel.RequiredAction, UserModel.SearchableFields, UserModel.Streams, UserModel.UserRemovedEvent
 
- 
 - 
Field Summary- 
Fields inherited from class org.keycloak.models.utils.UserModelDelegatedelegate
 - 
Fields inherited from interface org.keycloak.models.UserModelCOMPARE_BY_USERNAME, DISABLED_REASON, EMAIL, EMAIL_VERIFIED, ENABLED, EXACT, FIRST_NAME, GROUPS, IDP_ALIAS, IDP_USER_ID, INCLUDE_SERVICE_ACCOUNT, LAST_NAME, LOCALE, SEARCH, USERNAME
 
- 
 - 
Constructor SummaryConstructors Constructor Description ReadonlyLDAPUserModelDelegate(UserModel delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidremoveAttribute(String name)voidsetAttribute(String name, List<String> values)voidsetEmail(String email)Sets email for this user.voidsetFirstName(String first)voidsetLastName(String lastName)voidsetSingleAttribute(String name, String value)Set single value of specified attribute.voidsetUsername(String username)Sets username for this user.- 
Methods inherited from class org.keycloak.models.utils.UserModelDelegateaddRequiredAction, addRequiredAction, credentialManager, deleteRoleMapping, equals, getAttributes, getAttributeStream, getClientRoleMappingsStream, getCreatedTimestamp, getDelegate, getEmail, getFederationLink, getFirstAttribute, getFirstName, getGroupsStream, getId, getLastName, getRealmRoleMappingsStream, getRequiredActionsStream, getRoleMappingsStream, getServiceAccountClientLink, getUsername, grantRole, hashCode, hasRole, isEmailVerified, isEnabled, isMemberOf, joinGroup, leaveGroup, removeRequiredAction, removeRequiredAction, setCreatedTimestamp, setEmailVerified, setEnabled, setFederationLink, setServiceAccountClientLink
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.RoleMapperModelhasDirectRole
 - 
Methods inherited from interface org.keycloak.models.UserModelgetGroupsCount, getGroupsCountByNameContaining, getGroupsStream
 
- 
 
- 
- 
- 
Constructor Detail- 
ReadonlyLDAPUserModelDelegatepublic ReadonlyLDAPUserModelDelegate(UserModel delegate) 
 
- 
 - 
Method Detail- 
setUsernamepublic void setUsername(String username) Description copied from interface:UserModelSets username for this user. No default method here to allow Abstract subclasses where the username is provided in a different manner- Specified by:
- setUsernamein interface- UserModel
- Overrides:
- setUsernamein class- UserModelDelegate
- Parameters:
- username- username string
 
 - 
setLastNamepublic void setLastName(String lastName) - Specified by:
- setLastNamein interface- UserModel
- Overrides:
- setLastNamein class- UserModelDelegate
 
 - 
setFirstNamepublic void setFirstName(String first) - Specified by:
- setFirstNamein interface- UserModel
- Overrides:
- setFirstNamein class- UserModelDelegate
 
 - 
setEmailpublic void setEmail(String email) Description copied from interface:UserModelSets email for this user.- Specified by:
- setEmailin interface- UserModel
- Overrides:
- setEmailin class- UserModelDelegate
- Parameters:
- email- the email
 
 - 
setSingleAttributepublic void setSingleAttribute(String name, String value) Description copied from interface:UserModelSet single value of specified attribute. Remove all other existing values of this attribute- Specified by:
- setSingleAttributein interface- UserModel
- Overrides:
- setSingleAttributein class- UserModelDelegate
 
 - 
setAttributepublic void setAttribute(String name, List<String> values) - Specified by:
- setAttributein interface- UserModel
- Overrides:
- setAttributein class- UserModelDelegate
 
 - 
removeAttributepublic void removeAttribute(String name) - Specified by:
- removeAttributein interface- UserModel
- Overrides:
- removeAttributein class- UserModelDelegate
 
 
- 
 
-