Package org.keycloak.models.cache
Interface CachedUserModel
- 
- All Superinterfaces:
- RoleMapperModel,- UserModel
 - All Known Subinterfaces:
- CachedUserModel.Streams
 - All Known Implementing Classes:
- UserAdapter
 
 public interface CachedUserModel extends UserModel Cached users will implement this interface- Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceCachedUserModel.StreamsDeprecated.This interface is no longer necessary, collection-based methods were removed from the parent interface and therefore the parent interface can be used directly- 
Nested classes/interfaces inherited from interface org.keycloak.models.UserModelUserModel.RequiredAction, UserModel.SearchableFields, UserModel.UserRemovedEvent
 
- 
 - 
Field Summary- 
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
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ConcurrentMapgetCachedWith()Returns a map that contains custom things that are cached along with this model.longgetCacheTimestamp()When was the model was loaded from database.UserModelgetDelegateForUpdate()Invalidates the cache for this user and returns a delegate that represents the actual data providervoidinvalidate()Invalidate the cache for this modelbooleanisMarkedForEviction()- 
Methods inherited from interface org.keycloak.models.RoleMapperModeldeleteRoleMapping, getClientRoleMappingsStream, getRealmRoleMappingsStream, getRoleMappingsStream, grantRole, hasDirectRole, hasRole
 - 
Methods inherited from interface org.keycloak.models.UserModeladdRequiredAction, 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, setAttribute, setCreatedTimestamp, setEmail, setEmailVerified, setEnabled, setFederationLink, setFirstName, setLastName, setServiceAccountClientLink, setSingleAttribute, setUsername
 
- 
 
- 
- 
- 
Method Detail- 
getDelegateForUpdateUserModel getDelegateForUpdate() Invalidates the cache for this user and returns a delegate that represents the actual data provider- Returns:
 
 - 
isMarkedForEvictionboolean isMarkedForEviction() 
 - 
invalidatevoid invalidate() Invalidate the cache for this model
 - 
getCacheTimestamplong getCacheTimestamp() When was the model was loaded from database.- Returns:
 
 - 
getCachedWithConcurrentMap getCachedWith() Returns a map that contains custom things that are cached along with this model. You can write to this map.- Returns:
 
 
- 
 
-