Class MapUserSessionEntityDelegate
- java.lang.Object
-
- org.keycloak.models.map.userSession.MapUserSessionEntityDelegate
-
- All Implemented Interfaces:
AbstractEntity,HasDelegateProvider<MapUserSessionEntity>,ExpirableEntity,UpdatableEntity,MapUserSessionEntity
@Generated("org.keycloak.models.map.processor.GenerateEntityImplementationsProcessor") public class MapUserSessionEntityDelegate extends Object implements MapUserSessionEntity, HasDelegateProvider<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
-
-
Constructor Summary
Constructors Constructor Description MapUserSessionEntityDelegate(DelegateProvider<MapUserSessionEntity> delegateProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAuthenticatedClientSession(MapAuthenticatedClientSessionEntity clientSession)voidclearAuthenticatedClientSessions()Optional<MapAuthenticatedClientSessionEntity>getAuthenticatedClientSession(String clientUUID)Set<MapAuthenticatedClientSessionEntity>getAuthenticatedClientSessions()StringgetAuthMethod()StringgetBrokerSessionId()StringgetBrokerUserId()DelegateProvider<MapUserSessionEntity>getDelegateProvider()LonggetExpiration()Returns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.StringgetId()StringgetIpAddress()LonggetLastSessionRefresh()Returns a point in time (timestamp in milliseconds since The Epoch) when the user session entity was last refreshed.StringgetLoginUsername()StringgetNote(String name)Map<String,String>getNotes()UserSessionModel.SessionPersistenceStategetPersistenceState()StringgetRealmId()UserSessionModel.StategetState()LonggetTimestamp()Returns a point in time (timestamp in milliseconds since The Epoch) when the user session entity was created.StringgetUserId()BooleanisOffline()BooleanisRememberMe()booleanisUpdated()Flag signalizing that any of the setters has been meaningfully used.BooleanremoveAuthenticatedClientSession(String clientUUID)BooleanremoveNote(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.voidsetId(String id)voidsetIpAddress(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)voidsetNote(String name, String value)voidsetNotes(Map<String,String> notes)voidsetOffline(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.voidsetUserId(String userId)-
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.UpdatableEntity
clearUpdatedFlag
-
-
-
-
Constructor Detail
-
MapUserSessionEntityDelegate
public MapUserSessionEntityDelegate(DelegateProvider<MapUserSessionEntity> delegateProvider)
-
-
Method Detail
-
getDelegateProvider
public DelegateProvider<MapUserSessionEntity> getDelegateProvider()
- Specified by:
getDelegateProviderin interfaceHasDelegateProvider<MapUserSessionEntity>
-
isUpdated
public boolean isUpdated()
Description copied from interface:UpdatableEntityFlag signalizing that any of the setters has been meaningfully used.- Specified by:
isUpdatedin interfaceUpdatableEntity- Returns:
-
getId
public String getId()
- Specified by:
getIdin interfaceAbstractEntity
-
setId
public void setId(String id)
- Specified by:
setIdin interfaceAbstractEntity
-
getExpiration
public Long 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
public void setExpiration(Long expiration)
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.
-
getRealmId
public String getRealmId()
- Specified by:
getRealmIdin interfaceMapUserSessionEntity
-
setRealmId
public void setRealmId(String realmId)
- Specified by:
setRealmIdin interfaceMapUserSessionEntity
-
getUserId
public String getUserId()
- Specified by:
getUserIdin interfaceMapUserSessionEntity
-
setUserId
public void setUserId(String userId)
- Specified by:
setUserIdin interfaceMapUserSessionEntity
-
getBrokerSessionId
public String getBrokerSessionId()
- Specified by:
getBrokerSessionIdin interfaceMapUserSessionEntity
-
setBrokerSessionId
public void setBrokerSessionId(String brokerSessionId)
- Specified by:
setBrokerSessionIdin interfaceMapUserSessionEntity
-
getBrokerUserId
public String getBrokerUserId()
- Specified by:
getBrokerUserIdin interfaceMapUserSessionEntity
-
setBrokerUserId
public void setBrokerUserId(String brokerUserId)
- Specified by:
setBrokerUserIdin interfaceMapUserSessionEntity
-
getLoginUsername
public String getLoginUsername()
- Specified by:
getLoginUsernamein interfaceMapUserSessionEntity
-
setLoginUsername
public void setLoginUsername(String loginUsername)
- Specified by:
setLoginUsernamein interfaceMapUserSessionEntity
-
getIpAddress
public String getIpAddress()
- Specified by:
getIpAddressin interfaceMapUserSessionEntity
-
setIpAddress
public void setIpAddress(String ipAddress)
- Specified by:
setIpAddressin interfaceMapUserSessionEntity
-
getAuthMethod
public String getAuthMethod()
- Specified by:
getAuthMethodin interfaceMapUserSessionEntity
-
setAuthMethod
public void setAuthMethod(String authMethod)
- Specified by:
setAuthMethodin interfaceMapUserSessionEntity
-
isRememberMe
public Boolean isRememberMe()
- Specified by:
isRememberMein interfaceMapUserSessionEntity
-
setRememberMe
public void setRememberMe(Boolean rememberMe)
- Specified by:
setRememberMein interfaceMapUserSessionEntity
-
getTimestamp
public Long 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
-
setTimestamp
public void setTimestamp(Long timestamp)
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
-
getLastSessionRefresh
public Long 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
public void setLastSessionRefresh(Long lastSessionRefresh)
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
-
getNotes
public Map<String,String> getNotes()
- Specified by:
getNotesin interfaceMapUserSessionEntity
-
getNote
public String getNote(String name)
- Specified by:
getNotein interfaceMapUserSessionEntity
-
setNotes
public void setNotes(Map<String,String> notes)
- Specified by:
setNotesin interfaceMapUserSessionEntity
-
removeNote
public Boolean removeNote(String name)
- Specified by:
removeNotein interfaceMapUserSessionEntity
-
setNote
public void setNote(String name, String value)
- Specified by:
setNotein interfaceMapUserSessionEntity
-
getState
public UserSessionModel.State getState()
- Specified by:
getStatein interfaceMapUserSessionEntity
-
setState
public void setState(UserSessionModel.State state)
- Specified by:
setStatein interfaceMapUserSessionEntity
-
getAuthenticatedClientSessions
public Set<MapAuthenticatedClientSessionEntity> getAuthenticatedClientSessions()
- Specified by:
getAuthenticatedClientSessionsin interfaceMapUserSessionEntity
-
getAuthenticatedClientSession
public Optional<MapAuthenticatedClientSessionEntity> getAuthenticatedClientSession(String clientUUID)
- Specified by:
getAuthenticatedClientSessionin interfaceMapUserSessionEntity
-
addAuthenticatedClientSession
public void addAuthenticatedClientSession(MapAuthenticatedClientSessionEntity clientSession)
- Specified by:
addAuthenticatedClientSessionin interfaceMapUserSessionEntity
-
removeAuthenticatedClientSession
public Boolean removeAuthenticatedClientSession(String clientUUID)
- Specified by:
removeAuthenticatedClientSessionin interfaceMapUserSessionEntity
-
clearAuthenticatedClientSessions
public void clearAuthenticatedClientSessions()
- Specified by:
clearAuthenticatedClientSessionsin interfaceMapUserSessionEntity
-
isOffline
public Boolean isOffline()
- Specified by:
isOfflinein interfaceMapUserSessionEntity
-
setOffline
public void setOffline(Boolean offline)
- Specified by:
setOfflinein interfaceMapUserSessionEntity
-
getPersistenceState
public UserSessionModel.SessionPersistenceState getPersistenceState()
- Specified by:
getPersistenceStatein interfaceMapUserSessionEntity
-
setPersistenceState
public void setPersistenceState(UserSessionModel.SessionPersistenceState persistenceState)
- Specified by:
setPersistenceStatein interfaceMapUserSessionEntity
-
-