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.AbstractUserSessionEntity
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAuthenticatedClientSession
(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.boolean
Flag signalizing that any of the setters has been meaningfully used.removeAuthenticatedClientSession
(String clientUUID) removeNote
(String name) void
setAuthMethod
(String authMethod) void
setBrokerSessionId
(String brokerSessionId) void
setBrokerUserId
(String brokerUserId) void
setExpiration
(Long expiration) Sets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.void
void
setIpAddress
(String ipAddress) void
setLastSessionRefresh
(Long lastSessionRefresh) Sets a point in the (timestamp in milliseconds since The Epoch) when the user session entity was last refreshed.void
setLoginUsername
(String loginUsername) void
void
void
setOffline
(Boolean offline) void
setPersistenceState
(UserSessionModel.SessionPersistenceState persistenceState) void
setRealmId
(String realmId) void
setRememberMe
(Boolean rememberMe) void
setState
(UserSessionModel.State state) void
setTimestamp
(Long timestamp) Sets a point in the (timestamp in milliseconds since The Epoch) when the user session entity was created.void
Methods inherited from class org.keycloak.models.map.userSession.MapUserSessionEntity.AbstractUserSessionEntity
clearAuthenticatedClientSessions, clearUpdatedFlag
Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
markUpdatedFlag
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.userSession.MapUserSessionEntity
clearAuthenticatedClientSessions
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag, markUpdatedFlag
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Empty
public Empty()
-
-
Method Details
-
setId
- Specified by:
setId
in interfaceAbstractEntity
- Overrides:
setId
in classMapUserSessionEntity.AbstractUserSessionEntity
-
getId
- Specified by:
getId
in interfaceAbstractEntity
- Overrides:
getId
in classMapUserSessionEntity.AbstractUserSessionEntity
-
getAuthMethod
- Specified by:
getAuthMethod
in interfaceMapUserSessionEntity
-
setAuthMethod
- Specified by:
setAuthMethod
in interfaceMapUserSessionEntity
-
removeAuthenticatedClientSession
- Specified by:
removeAuthenticatedClientSession
in interfaceMapUserSessionEntity
-
getAuthenticatedClientSessions
- Specified by:
getAuthenticatedClientSessions
in interfaceMapUserSessionEntity
-
getAuthenticatedClientSession
public Optional<MapAuthenticatedClientSessionEntity> getAuthenticatedClientSession(String clientUUID) - Specified by:
getAuthenticatedClientSession
in interfaceMapUserSessionEntity
-
addAuthenticatedClientSession
- Specified by:
addAuthenticatedClientSession
in interfaceMapUserSessionEntity
-
getBrokerSessionId
- Specified by:
getBrokerSessionId
in interfaceMapUserSessionEntity
-
setBrokerSessionId
- Specified by:
setBrokerSessionId
in interfaceMapUserSessionEntity
-
setBrokerUserId
- Specified by:
setBrokerUserId
in interfaceMapUserSessionEntity
-
getBrokerUserId
- Specified by:
getBrokerUserId
in interfaceMapUserSessionEntity
-
getExpiration
Description copied from interface:ExpirableEntity
Returns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.- Specified by:
getExpiration
in interfaceExpirableEntity
- Returns:
- a timestamp in milliseconds since The Epoch or
null
if this entity never expires or expiration is not known.
-
setExpiration
Description copied from interface:ExpirableEntity
Sets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.- Specified by:
setExpiration
in interfaceExpirableEntity
- Parameters:
expiration
- a timestamp in milliseconds since The Epoch ornull
if this entity never expires.
-
getIpAddress
- Specified by:
getIpAddress
in interfaceMapUserSessionEntity
-
setIpAddress
- Specified by:
setIpAddress
in interfaceMapUserSessionEntity
-
getLastSessionRefresh
Description copied from interface:MapUserSessionEntity
Returns a point in time (timestamp in milliseconds since The Epoch) when the user session entity was last refreshed.- Specified by:
getLastSessionRefresh
in interfaceMapUserSessionEntity
- Returns:
- a timestamp in milliseconds since The Epoch or
null
when the time is unknown
-
setLastSessionRefresh
Description copied from interface:MapUserSessionEntity
Sets a point in the (timestamp in milliseconds since The Epoch) when the user session entity was last refreshed.- Specified by:
setLastSessionRefresh
in interfaceMapUserSessionEntity
- Parameters:
lastSessionRefresh
- a timestamp in milliseconds since The Epoch ornull
when the time is unknown
-
getLoginUsername
- Specified by:
getLoginUsername
in interfaceMapUserSessionEntity
-
setLoginUsername
- Specified by:
setLoginUsername
in interfaceMapUserSessionEntity
-
getNotes
- Specified by:
getNotes
in interfaceMapUserSessionEntity
-
setNotes
- Specified by:
setNotes
in interfaceMapUserSessionEntity
-
removeNote
- Specified by:
removeNote
in interfaceMapUserSessionEntity
-
getNote
- Specified by:
getNote
in interfaceMapUserSessionEntity
-
setNote
- Specified by:
setNote
in interfaceMapUserSessionEntity
-
setOffline
- Specified by:
setOffline
in interfaceMapUserSessionEntity
-
isOffline
- Specified by:
isOffline
in interfaceMapUserSessionEntity
-
setPersistenceState
- Specified by:
setPersistenceState
in interfaceMapUserSessionEntity
-
getPersistenceState
- Specified by:
getPersistenceState
in interfaceMapUserSessionEntity
-
getRealmId
- Specified by:
getRealmId
in interfaceMapUserSessionEntity
-
setRealmId
- Specified by:
setRealmId
in interfaceMapUserSessionEntity
-
setRememberMe
- Specified by:
setRememberMe
in interfaceMapUserSessionEntity
-
isRememberMe
- Specified by:
isRememberMe
in interfaceMapUserSessionEntity
-
setState
- Specified by:
setState
in interfaceMapUserSessionEntity
-
getState
- Specified by:
getState
in interfaceMapUserSessionEntity
-
setTimestamp
Description copied from interface:MapUserSessionEntity
Sets a point in the (timestamp in milliseconds since The Epoch) when the user session entity was created.- Specified by:
setTimestamp
in interfaceMapUserSessionEntity
- Parameters:
timestamp
- a timestamp in milliseconds since The Epoch ornull
when the time is unknown
-
getTimestamp
Description copied from interface:MapUserSessionEntity
Returns a point in time (timestamp in milliseconds since The Epoch) when the user session entity was created.- Specified by:
getTimestamp
in interfaceMapUserSessionEntity
- Returns:
- a timestamp in milliseconds since The Epoch or
null
when the time is unknown
-
setUserId
- Specified by:
setUserId
in interfaceMapUserSessionEntity
-
getUserId
- Specified by:
getUserId
in interfaceMapUserSessionEntity
-
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 classMapUserSessionEntity.AbstractUserSessionEntity
- Returns:
-