Package org.keycloak.federation.sssd
Class ReadonlySSSDUserModelDelegate
- java.lang.Object
-
- org.keycloak.models.utils.UserModelDelegate
-
- org.keycloak.federation.sssd.ReadonlySSSDUserModelDelegate
-
- All Implemented Interfaces:
RoleMapperModel
,UserModel
public class ReadonlySSSDUserModelDelegate extends UserModelDelegate implements UserModel
Readonly proxy for a SSSD UserModel that prevents attributes from being updated.- Version:
- $Revision: 1 $
- Author:
- Bill Burke, Bruno Oliveira
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.UserModel
UserModel.RequiredAction, UserModel.SearchableFields, UserModel.Streams, UserModel.UserRemovedEvent
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.utils.UserModelDelegate
delegate
-
Fields inherited from interface org.keycloak.models.UserModel
COMPARE_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 Summary
Constructors Constructor Description ReadonlySSSDUserModelDelegate(UserModel delegate, SSSDFederationProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setAttribute(String name, List<String> value)
void
setEmail(String email)
Sets email for this user.void
setFirstName(String first)
void
setLastName(String lastName)
void
setSingleAttribute(String name, String value)
Set single value of specified attribute.void
setUsername(String username)
Sets username for this user.-
Methods inherited from class org.keycloak.models.utils.UserModelDelegate
addRequiredAction, 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, removeAttribute, removeRequiredAction, removeRequiredAction, setCreatedTimestamp, setEmailVerified, setEnabled, setFederationLink, setServiceAccountClientLink
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.RoleMapperModel
deleteRoleMapping, getClientRoleMappingsStream, getRealmRoleMappingsStream, getRoleMappingsStream, grantRole, hasDirectRole, hasRole
-
Methods inherited from interface org.keycloak.models.UserModel
addRequiredAction, addRequiredAction, credentialManager, getAttributes, getAttributeStream, getCreatedTimestamp, getEmail, getFederationLink, getFirstAttribute, getFirstName, getGroupsCount, getGroupsCountByNameContaining, getGroupsStream, getGroupsStream, getId, getLastName, getRequiredActionsStream, getServiceAccountClientLink, getUsername, isEmailVerified, isEnabled, isMemberOf, joinGroup, leaveGroup, removeAttribute, removeRequiredAction, removeRequiredAction, setCreatedTimestamp, setEmailVerified, setEnabled, setFederationLink, setServiceAccountClientLink
-
-
-
-
Constructor Detail
-
ReadonlySSSDUserModelDelegate
public ReadonlySSSDUserModelDelegate(UserModel delegate, SSSDFederationProvider provider)
-
-
Method Detail
-
setUsername
public void setUsername(String username)
Description copied from interface:UserModel
Sets username for this user. No default method here to allow Abstract subclasses where the username is provided in a different manner- Specified by:
setUsername
in interfaceUserModel
- Overrides:
setUsername
in classUserModelDelegate
- Parameters:
username
- username string
-
setLastName
public void setLastName(String lastName)
- Specified by:
setLastName
in interfaceUserModel
- Overrides:
setLastName
in classUserModelDelegate
-
setFirstName
public void setFirstName(String first)
- Specified by:
setFirstName
in interfaceUserModel
- Overrides:
setFirstName
in classUserModelDelegate
-
setSingleAttribute
public void setSingleAttribute(String name, String value)
Description copied from interface:UserModel
Set single value of specified attribute. Remove all other existing values of this attribute- Specified by:
setSingleAttribute
in interfaceUserModel
- Overrides:
setSingleAttribute
in classUserModelDelegate
-
setAttribute
public void setAttribute(String name, List<String> value)
- Specified by:
setAttribute
in interfaceUserModel
- Overrides:
setAttribute
in classUserModelDelegate
-
-