Package org.keycloak.models.map.user
Class MapUserEntityImpl.Empty
- java.lang.Object
-
- org.keycloak.models.map.common.UpdatableEntity.Impl
-
- org.keycloak.models.map.user.MapUserEntity.AbstractUserEntity
-
- org.keycloak.models.map.user.MapUserEntityImpl.Empty
-
- All Implemented Interfaces:
AbstractEntity
,EntityWithAttributes
,UpdatableEntity
,MapUserEntity
- Enclosing class:
- MapUserEntityImpl
public static class MapUserEntityImpl.Empty extends MapUserEntity.AbstractUserEntity implements MapUserEntity
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.user.MapUserEntity
MapUserEntity.AbstractUserEntity
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntity
UpdatableEntity.Impl
-
-
Field Summary
Fields Modifier and Type Field Description static MapUserEntityImpl.Empty
INSTANCE
-
Fields inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
updated
-
-
Constructor Summary
Constructors Constructor Description Empty()
-
Method Summary
-
Methods inherited from class org.keycloak.models.map.user.MapUserEntity.AbstractUserEntity
clearUpdatedFlag, moveCredential, setEmail
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.map.user.MapUserEntity
credentialManager, moveCredential, setEmail
-
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag
-
-
-
-
Field Detail
-
INSTANCE
public static final MapUserEntityImpl.Empty INSTANCE
-
-
Method Detail
-
setId
public void setId(String id)
- Specified by:
setId
in interfaceAbstractEntity
- Overrides:
setId
in classMapUserEntity.AbstractUserEntity
-
getId
public String getId()
- Specified by:
getId
in interfaceAbstractEntity
- Overrides:
getId
in classMapUserEntity.AbstractUserEntity
-
getAttributes
public Map<String,List<String>> getAttributes()
- Specified by:
getAttributes
in interfaceEntityWithAttributes
-
setAttributes
public void setAttributes(Map<String,List<String>> attributes)
- Specified by:
setAttributes
in interfaceEntityWithAttributes
-
getAttribute
public List<String> getAttribute(String name)
- Specified by:
getAttribute
in interfaceEntityWithAttributes
-
setAttribute
public void setAttribute(String name, List<String> value)
- Specified by:
setAttribute
in interfaceEntityWithAttributes
-
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttribute
in interfaceEntityWithAttributes
-
setCreatedTimestamp
public void setCreatedTimestamp(Long createdTimestamp)
- Specified by:
setCreatedTimestamp
in interfaceMapUserEntity
-
getCreatedTimestamp
public Long getCreatedTimestamp()
- Specified by:
getCreatedTimestamp
in interfaceMapUserEntity
-
getCredential
public Optional<MapUserCredentialEntity> getCredential(String id)
- Specified by:
getCredential
in interfaceMapUserEntity
-
setCredentials
public void setCredentials(List<MapUserCredentialEntity> credentials)
- Specified by:
setCredentials
in interfaceMapUserEntity
-
removeCredential
public Boolean removeCredential(String id)
- Specified by:
removeCredential
in interfaceMapUserEntity
-
getCredentials
public List<MapUserCredentialEntity> getCredentials()
- Specified by:
getCredentials
in interfaceMapUserEntity
-
addCredential
public void addCredential(MapUserCredentialEntity credentialEntity)
- Specified by:
addCredential
in interfaceMapUserEntity
-
removeCredential
public Boolean removeCredential(MapUserCredentialEntity credentialEntity)
- Specified by:
removeCredential
in interfaceMapUserEntity
-
getEmail
public String getEmail()
- Specified by:
getEmail
in interfaceMapUserEntity
-
setEmail
public void setEmail(String email)
- Specified by:
setEmail
in interfaceMapUserEntity
-
getEmailConstraint
public String getEmailConstraint()
- Specified by:
getEmailConstraint
in interfaceMapUserEntity
-
setEmailConstraint
public void setEmailConstraint(String emailConstraint)
- Specified by:
setEmailConstraint
in interfaceMapUserEntity
-
setEmailVerified
public void setEmailVerified(Boolean emailVerified)
- Specified by:
setEmailVerified
in interfaceMapUserEntity
-
isEmailVerified
public Boolean isEmailVerified()
- Specified by:
isEmailVerified
in interfaceMapUserEntity
-
setEnabled
public void setEnabled(Boolean enabled)
- Specified by:
setEnabled
in interfaceMapUserEntity
-
isEnabled
public Boolean isEnabled()
- Specified by:
isEnabled
in interfaceMapUserEntity
-
removeFederatedIdentity
public Boolean removeFederatedIdentity(String identityProviderId)
- Specified by:
removeFederatedIdentity
in interfaceMapUserEntity
-
removeFederatedIdentity
public Boolean removeFederatedIdentity(MapUserFederatedIdentityEntity providerId)
- Specified by:
removeFederatedIdentity
in interfaceMapUserEntity
-
setFederatedIdentities
public void setFederatedIdentities(Set<MapUserFederatedIdentityEntity> federatedIdentities)
- Specified by:
setFederatedIdentities
in interfaceMapUserEntity
-
getFederatedIdentity
public Optional<MapUserFederatedIdentityEntity> getFederatedIdentity(String identityProviderId)
- Specified by:
getFederatedIdentity
in interfaceMapUserEntity
-
addFederatedIdentity
public void addFederatedIdentity(MapUserFederatedIdentityEntity federatedIdentity)
- Specified by:
addFederatedIdentity
in interfaceMapUserEntity
-
getFederatedIdentities
public Set<MapUserFederatedIdentityEntity> getFederatedIdentities()
- Specified by:
getFederatedIdentities
in interfaceMapUserEntity
-
getFederationLink
public String getFederationLink()
- Specified by:
getFederationLink
in interfaceMapUserEntity
-
setFederationLink
public void setFederationLink(String federationLink)
- Specified by:
setFederationLink
in interfaceMapUserEntity
-
setFirstName
public void setFirstName(String firstName)
- Specified by:
setFirstName
in interfaceMapUserEntity
-
getFirstName
public String getFirstName()
- Specified by:
getFirstName
in interfaceMapUserEntity
-
getGroupsMembership
public Set<String> getGroupsMembership()
- Specified by:
getGroupsMembership
in interfaceMapUserEntity
-
removeGroupsMembership
public void removeGroupsMembership(String groupId)
- Specified by:
removeGroupsMembership
in interfaceMapUserEntity
-
addGroupsMembership
public void addGroupsMembership(String groupId)
- Specified by:
addGroupsMembership
in interfaceMapUserEntity
-
setGroupsMembership
public void setGroupsMembership(Set<String> groupsMembership)
- Specified by:
setGroupsMembership
in interfaceMapUserEntity
-
getLastName
public String getLastName()
- Specified by:
getLastName
in interfaceMapUserEntity
-
setLastName
public void setLastName(String lastName)
- Specified by:
setLastName
in interfaceMapUserEntity
-
setNotBefore
public void setNotBefore(Long notBefore)
- Specified by:
setNotBefore
in interfaceMapUserEntity
-
getNotBefore
public Long getNotBefore()
- Specified by:
getNotBefore
in interfaceMapUserEntity
-
getRealmId
public String getRealmId()
- Specified by:
getRealmId
in interfaceMapUserEntity
-
setRealmId
public void setRealmId(String realmId)
- Specified by:
setRealmId
in interfaceMapUserEntity
-
removeRequiredAction
public void removeRequiredAction(String requiredAction)
- Specified by:
removeRequiredAction
in interfaceMapUserEntity
-
addRequiredAction
public void addRequiredAction(String requiredAction)
- Specified by:
addRequiredAction
in interfaceMapUserEntity
-
getRequiredActions
public Set<String> getRequiredActions()
- Specified by:
getRequiredActions
in interfaceMapUserEntity
-
setRequiredActions
public void setRequiredActions(Set<String> requiredActions)
- Specified by:
setRequiredActions
in interfaceMapUserEntity
-
removeRolesMembership
public void removeRolesMembership(String roleId)
- Specified by:
removeRolesMembership
in interfaceMapUserEntity
-
setRolesMembership
public void setRolesMembership(Set<String> rolesMembership)
- Specified by:
setRolesMembership
in interfaceMapUserEntity
-
getRolesMembership
public Set<String> getRolesMembership()
- Specified by:
getRolesMembership
in interfaceMapUserEntity
-
addRolesMembership
public void addRolesMembership(String roleId)
- Specified by:
addRolesMembership
in interfaceMapUserEntity
-
setServiceAccountClientLink
public void setServiceAccountClientLink(String serviceAccountClientLink)
- Specified by:
setServiceAccountClientLink
in interfaceMapUserEntity
-
getServiceAccountClientLink
public String getServiceAccountClientLink()
- Specified by:
getServiceAccountClientLink
in interfaceMapUserEntity
-
getUserConsents
public Set<MapUserConsentEntity> getUserConsents()
- Specified by:
getUserConsents
in interfaceMapUserEntity
-
setUserConsents
public void setUserConsents(Set<MapUserConsentEntity> userConsentEntity)
- Specified by:
setUserConsents
in interfaceMapUserEntity
-
removeUserConsent
public Boolean removeUserConsent(String clientId)
- Specified by:
removeUserConsent
in interfaceMapUserEntity
-
getUserConsent
public Optional<MapUserConsentEntity> getUserConsent(String clientId)
- Specified by:
getUserConsent
in interfaceMapUserEntity
-
addUserConsent
public void addUserConsent(MapUserConsentEntity userConsentEntity)
- Specified by:
addUserConsent
in interfaceMapUserEntity
-
removeUserConsent
public Boolean removeUserConsent(MapUserConsentEntity userConsentEntity)
- Specified by:
removeUserConsent
in interfaceMapUserEntity
-
setUsername
public void setUsername(String username)
- Specified by:
setUsername
in interfaceMapUserEntity
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceMapUserEntity
-
isUpdated
public boolean isUpdated()
Description copied from interface:UpdatableEntity
Flag signalizing that any of the setters has been meaningfully used.- Specified by:
isUpdated
in interfaceUpdatableEntity
- Overrides:
isUpdated
in classMapUserEntity.AbstractUserEntity
- Returns:
-
-