Package org.keycloak.models.map.user
Class MapUserEntity.AbstractUserEntity
- java.lang.Object
-
- org.keycloak.models.map.common.UpdatableEntity.Impl
-
- org.keycloak.models.map.user.MapUserEntity.AbstractUserEntity
-
- All Implemented Interfaces:
AbstractEntity,EntityWithAttributes,UpdatableEntity,MapUserEntity
- Direct Known Subclasses:
MapUserEntityFieldDelegate,MapUserEntityImpl,MapUserEntityImpl.Empty
- Enclosing interface:
- MapUserEntity
public abstract static class MapUserEntity.AbstractUserEntity extends UpdatableEntity.Impl 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 inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
updated
-
-
Constructor Summary
Constructors Constructor Description AbstractUserEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearUpdatedFlag()An optional operation clearing the updated flag.Optional<MapUserCredentialEntity>getCredential(String id)Optional<MapUserFederatedIdentityEntity>getFederatedIdentity(String identityProviderId)StringgetId()Optional<MapUserConsentEntity>getUserConsent(String clientId)booleanisUpdated()Flag signalizing that any of the setters has been meaningfully used.BooleanmoveCredential(String credentialId, String newPreviousCredentialId)BooleanremoveCredential(String id)BooleanremoveFederatedIdentity(String identityProviderId)BooleanremoveUserConsent(String clientId)voidsetEmail(String email, boolean duplicateEmailsAllowed)voidsetId(String id)-
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.common.EntityWithAttributes
getAttribute, getAttributes, removeAttribute, setAttribute, setAttributes
-
Methods inherited from interface org.keycloak.models.map.user.MapUserEntity
addCredential, addFederatedIdentity, addGroupsMembership, addRequiredAction, addRolesMembership, addUserConsent, credentialManager, getCreatedTimestamp, getCredentials, getEmail, getEmailConstraint, getFederatedIdentities, getFederationLink, getFirstName, getGroupsMembership, getLastName, getNotBefore, getRealmId, getRequiredActions, getRolesMembership, getServiceAccountClientLink, getUserConsents, getUsername, isEmailVerified, isEnabled, removeCredential, removeFederatedIdentity, removeGroupsMembership, removeRequiredAction, removeRolesMembership, removeUserConsent, setCreatedTimestamp, setCredentials, setEmail, setEmailConstraint, setEmailVerified, setEnabled, setFederatedIdentities, setFederationLink, setFirstName, setGroupsMembership, setLastName, setNotBefore, setRealmId, setRequiredActions, setRolesMembership, setServiceAccountClientLink, setUserConsents, setUsername
-
-
-
-
Method Detail
-
isUpdated
public boolean isUpdated()
Description copied from interface:UpdatableEntityFlag signalizing that any of the setters has been meaningfully used.- Specified by:
isUpdatedin interfaceUpdatableEntity- Overrides:
isUpdatedin classUpdatableEntity.Impl- Returns:
-
clearUpdatedFlag
public void clearUpdatedFlag()
Description copied from interface:UpdatableEntityAn optional operation clearing the updated flag. Right after using this method, theUpdatableEntity.isUpdated()would returnfalse.- Specified by:
clearUpdatedFlagin interfaceUpdatableEntity- Overrides:
clearUpdatedFlagin classUpdatableEntity.Impl
-
getId
public String getId()
- Specified by:
getIdin interfaceAbstractEntity
-
setId
public void setId(String id)
- Specified by:
setIdin interfaceAbstractEntity
-
setEmail
public void setEmail(String email, boolean duplicateEmailsAllowed)
- Specified by:
setEmailin interfaceMapUserEntity
-
getUserConsent
public Optional<MapUserConsentEntity> getUserConsent(String clientId)
- Specified by:
getUserConsentin interfaceMapUserEntity
-
removeUserConsent
public Boolean removeUserConsent(String clientId)
- Specified by:
removeUserConsentin interfaceMapUserEntity
-
getCredential
public Optional<MapUserCredentialEntity> getCredential(String id)
- Specified by:
getCredentialin interfaceMapUserEntity
-
removeCredential
public Boolean removeCredential(String id)
- Specified by:
removeCredentialin interfaceMapUserEntity
-
moveCredential
public Boolean moveCredential(String credentialId, String newPreviousCredentialId)
- Specified by:
moveCredentialin interfaceMapUserEntity
-
getFederatedIdentity
public Optional<MapUserFederatedIdentityEntity> getFederatedIdentity(String identityProviderId)
- Specified by:
getFederatedIdentityin interfaceMapUserEntity
-
removeFederatedIdentity
public Boolean removeFederatedIdentity(String identityProviderId)
- Specified by:
removeFederatedIdentityin interfaceMapUserEntity
-
-