Class MapUserSessionEntityImpl.Empty
java.lang.Object
org.keycloak.models.map.common.UpdatableEntity.Impl
org.keycloak.models.map.userSession.MapUserSessionEntity.AbstractUserSessionEntity
org.keycloak.models.map.userSession.MapUserSessionEntityImpl.Empty
- All Implemented Interfaces:
AbstractEntity,ExpirableEntity,UpdatableEntity,MapUserSessionEntity
- Enclosing class:
- MapUserSessionEntityImpl
public static class MapUserSessionEntityImpl.Empty
extends MapUserSessionEntity.AbstractUserSessionEntity
implements MapUserSessionEntity
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.map.userSession.MapUserSessionEntity
MapUserSessionEntity.AbstractUserSessionEntityNested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntity
UpdatableEntity.Impl -
Field Summary
FieldsFields inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
updated -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAuthenticatedClientSession(MapAuthenticatedClientSessionEntity clientSession) getAuthenticatedClientSession(String clientUUID) Returns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.getId()Returns a point in time (timestamp in milliseconds since The Epoch) when the user session entity was last refreshed.getNotes()getState()Returns a point in time (timestamp in milliseconds since The Epoch) when the user session entity was created.booleanFlag signalizing that any of the setters has been meaningfully used.removeAuthenticatedClientSession(String clientUUID) removeNote(String name) voidsetAuthMethod(String authMethod) voidsetBrokerSessionId(String brokerSessionId) voidsetBrokerUserId(String brokerUserId) voidsetExpiration(Long expiration) Sets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.voidvoidsetIpAddress(String ipAddress) voidsetLastSessionRefresh(Long lastSessionRefresh) Sets a point in the (timestamp in milliseconds since The Epoch) when the user session entity was last refreshed.voidsetLoginUsername(String loginUsername) voidvoidvoidsetOffline(Boolean offline) voidsetPersistenceState(UserSessionModel.SessionPersistenceState persistenceState) voidsetRealmId(String realmId) voidsetRememberMe(Boolean rememberMe) voidsetState(UserSessionModel.State state) voidsetTimestamp(Long timestamp) Sets a point in the (timestamp in milliseconds since The Epoch) when the user session entity was created.voidMethods inherited from class org.keycloak.models.map.userSession.MapUserSessionEntity.AbstractUserSessionEntity
clearAuthenticatedClientSessions, clearUpdatedFlagMethods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
markUpdatedFlagMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.map.userSession.MapUserSessionEntity
clearAuthenticatedClientSessionsMethods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag, markUpdatedFlag
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Empty
public Empty()
-
-
Method Details
-
setId
- Specified by:
setIdin interfaceAbstractEntity- Overrides:
setIdin classMapUserSessionEntity.AbstractUserSessionEntity
-
getId
- Specified by:
getIdin interfaceAbstractEntity- Overrides:
getIdin classMapUserSessionEntity.AbstractUserSessionEntity
-
getAuthMethod
- Specified by:
getAuthMethodin interfaceMapUserSessionEntity
-
setAuthMethod
- Specified by:
setAuthMethodin interfaceMapUserSessionEntity
-
removeAuthenticatedClientSession
- Specified by:
removeAuthenticatedClientSessionin interfaceMapUserSessionEntity
-
getAuthenticatedClientSessions
- Specified by:
getAuthenticatedClientSessionsin interfaceMapUserSessionEntity
-
getAuthenticatedClientSession
public Optional<MapAuthenticatedClientSessionEntity> getAuthenticatedClientSession(String clientUUID) - Specified by:
getAuthenticatedClientSessionin interfaceMapUserSessionEntity
-
addAuthenticatedClientSession
- Specified by:
addAuthenticatedClientSessionin interfaceMapUserSessionEntity
-
getBrokerSessionId
- Specified by:
getBrokerSessionIdin interfaceMapUserSessionEntity
-
setBrokerSessionId
- Specified by:
setBrokerSessionIdin interfaceMapUserSessionEntity
-
setBrokerUserId
- Specified by:
setBrokerUserIdin interfaceMapUserSessionEntity
-
getBrokerUserId
- Specified by:
getBrokerUserIdin interfaceMapUserSessionEntity
-
getExpiration
Description copied from interface:ExpirableEntityReturns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.- Specified by:
getExpirationin interfaceExpirableEntity- Returns:
- a timestamp in milliseconds since The Epoch or
nullif this entity never expires or expiration is not known.
-
setExpiration
Description copied from interface:ExpirableEntitySets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.- Specified by:
setExpirationin interfaceExpirableEntity- Parameters:
expiration- a timestamp in milliseconds since The Epoch ornullif this entity never expires.
-
getIpAddress
- Specified by:
getIpAddressin interfaceMapUserSessionEntity
-
setIpAddress
- Specified by:
setIpAddressin interfaceMapUserSessionEntity
-
getLastSessionRefresh
Description copied from interface:MapUserSessionEntityReturns a point in time (timestamp in milliseconds since The Epoch) when the user session entity was last refreshed.- Specified by:
getLastSessionRefreshin interfaceMapUserSessionEntity- Returns:
- a timestamp in milliseconds since The Epoch or
nullwhen the time is unknown
-
setLastSessionRefresh
Description copied from interface:MapUserSessionEntitySets a point in the (timestamp in milliseconds since The Epoch) when the user session entity was last refreshed.- Specified by:
setLastSessionRefreshin interfaceMapUserSessionEntity- Parameters:
lastSessionRefresh- a timestamp in milliseconds since The Epoch ornullwhen the time is unknown
-
getLoginUsername
- Specified by:
getLoginUsernamein interfaceMapUserSessionEntity
-
setLoginUsername
- Specified by:
setLoginUsernamein interfaceMapUserSessionEntity
-
getNotes
- Specified by:
getNotesin interfaceMapUserSessionEntity
-
setNotes
- Specified by:
setNotesin interfaceMapUserSessionEntity
-
removeNote
- Specified by:
removeNotein interfaceMapUserSessionEntity
-
getNote
- Specified by:
getNotein interfaceMapUserSessionEntity
-
setNote
- Specified by:
setNotein interfaceMapUserSessionEntity
-
setOffline
- Specified by:
setOfflinein interfaceMapUserSessionEntity
-
isOffline
- Specified by:
isOfflinein interfaceMapUserSessionEntity
-
setPersistenceState
- Specified by:
setPersistenceStatein interfaceMapUserSessionEntity
-
getPersistenceState
- Specified by:
getPersistenceStatein interfaceMapUserSessionEntity
-
getRealmId
- Specified by:
getRealmIdin interfaceMapUserSessionEntity
-
setRealmId
- Specified by:
setRealmIdin interfaceMapUserSessionEntity
-
setRememberMe
- Specified by:
setRememberMein interfaceMapUserSessionEntity
-
isRememberMe
- Specified by:
isRememberMein interfaceMapUserSessionEntity
-
setState
- Specified by:
setStatein interfaceMapUserSessionEntity
-
getState
- Specified by:
getStatein interfaceMapUserSessionEntity
-
setTimestamp
Description copied from interface:MapUserSessionEntitySets a point in the (timestamp in milliseconds since The Epoch) when the user session entity was created.- Specified by:
setTimestampin interfaceMapUserSessionEntity- Parameters:
timestamp- a timestamp in milliseconds since The Epoch ornullwhen the time is unknown
-
getTimestamp
Description copied from interface:MapUserSessionEntityReturns a point in time (timestamp in milliseconds since The Epoch) when the user session entity was created.- Specified by:
getTimestampin interfaceMapUserSessionEntity- Returns:
- a timestamp in milliseconds since The Epoch or
nullwhen the time is unknown
-
setUserId
- Specified by:
setUserIdin interfaceMapUserSessionEntity
-
getUserId
- Specified by:
getUserIdin interfaceMapUserSessionEntity
-
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 classMapUserSessionEntity.AbstractUserSessionEntity- Returns:
-