Class MapUserSessionEntityDelegate
- java.lang.Object
-
- org.keycloak.models.map.userSession.MapUserSessionEntityDelegate
-
- All Implemented Interfaces:
AbstractEntity
,UpdatableEntity
,MapUserSessionEntity
public class MapUserSessionEntityDelegate extends Object 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
-
-
Constructor Summary
Constructors Constructor Description MapUserSessionEntityDelegate(DelegateProvider<MapUserSessionEntity> delegateProvider)
-
Method Summary
-
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
-
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
- Returns:
-
getId
public String getId()
- Specified by:
getId
in interfaceAbstractEntity
-
setId
public void setId(String id)
- Specified by:
setId
in interfaceAbstractEntity
-
getRealmId
public String getRealmId()
- Specified by:
getRealmId
in interfaceMapUserSessionEntity
-
setRealmId
public void setRealmId(String realmId)
- Specified by:
setRealmId
in interfaceMapUserSessionEntity
-
getUserId
public String getUserId()
- Specified by:
getUserId
in interfaceMapUserSessionEntity
-
setUserId
public void setUserId(String userId)
- Specified by:
setUserId
in interfaceMapUserSessionEntity
-
getBrokerSessionId
public String getBrokerSessionId()
- Specified by:
getBrokerSessionId
in interfaceMapUserSessionEntity
-
setBrokerSessionId
public void setBrokerSessionId(String brokerSessionId)
- Specified by:
setBrokerSessionId
in interfaceMapUserSessionEntity
-
getBrokerUserId
public String getBrokerUserId()
- Specified by:
getBrokerUserId
in interfaceMapUserSessionEntity
-
setBrokerUserId
public void setBrokerUserId(String brokerUserId)
- Specified by:
setBrokerUserId
in interfaceMapUserSessionEntity
-
getLoginUsername
public String getLoginUsername()
- Specified by:
getLoginUsername
in interfaceMapUserSessionEntity
-
setLoginUsername
public void setLoginUsername(String loginUsername)
- Specified by:
setLoginUsername
in interfaceMapUserSessionEntity
-
getIpAddress
public String getIpAddress()
- Specified by:
getIpAddress
in interfaceMapUserSessionEntity
-
setIpAddress
public void setIpAddress(String ipAddress)
- Specified by:
setIpAddress
in interfaceMapUserSessionEntity
-
getAuthMethod
public String getAuthMethod()
- Specified by:
getAuthMethod
in interfaceMapUserSessionEntity
-
setAuthMethod
public void setAuthMethod(String authMethod)
- Specified by:
setAuthMethod
in interfaceMapUserSessionEntity
-
isRememberMe
public Boolean isRememberMe()
- Specified by:
isRememberMe
in interfaceMapUserSessionEntity
-
setRememberMe
public void setRememberMe(Boolean rememberMe)
- Specified by:
setRememberMe
in interfaceMapUserSessionEntity
-
getStarted
public Long getStarted()
- Specified by:
getStarted
in interfaceMapUserSessionEntity
-
setStarted
public void setStarted(Long started)
- Specified by:
setStarted
in interfaceMapUserSessionEntity
-
getLastSessionRefresh
public Long getLastSessionRefresh()
- Specified by:
getLastSessionRefresh
in interfaceMapUserSessionEntity
-
setLastSessionRefresh
public void setLastSessionRefresh(Long lastSessionRefresh)
- Specified by:
setLastSessionRefresh
in interfaceMapUserSessionEntity
-
getExpiration
public Long getExpiration()
- Specified by:
getExpiration
in interfaceMapUserSessionEntity
-
setExpiration
public void setExpiration(Long expiration)
- Specified by:
setExpiration
in interfaceMapUserSessionEntity
-
getNotes
public Map<String,String> getNotes()
- Specified by:
getNotes
in interfaceMapUserSessionEntity
-
getNote
public String getNote(String name)
- Specified by:
getNote
in interfaceMapUserSessionEntity
-
setNotes
public void setNotes(Map<String,String> notes)
- Specified by:
setNotes
in interfaceMapUserSessionEntity
-
removeNote
public Boolean removeNote(String name)
- Specified by:
removeNote
in interfaceMapUserSessionEntity
-
setNote
public void setNote(String name, String value)
- Specified by:
setNote
in interfaceMapUserSessionEntity
-
getState
public UserSessionModel.State getState()
- Specified by:
getState
in interfaceMapUserSessionEntity
-
setState
public void setState(UserSessionModel.State state)
- Specified by:
setState
in interfaceMapUserSessionEntity
-
getAuthenticatedClientSessions
public Map<String,String> getAuthenticatedClientSessions()
- Specified by:
getAuthenticatedClientSessions
in interfaceMapUserSessionEntity
-
setAuthenticatedClientSessions
public void setAuthenticatedClientSessions(Map<String,String> authenticatedClientSessions)
- Specified by:
setAuthenticatedClientSessions
in interfaceMapUserSessionEntity
-
getAuthenticatedClientSession
public String getAuthenticatedClientSession(String clientUUID)
- Specified by:
getAuthenticatedClientSession
in interfaceMapUserSessionEntity
-
setAuthenticatedClientSession
public void setAuthenticatedClientSession(String clientUUID, String clientSessionId)
- Specified by:
setAuthenticatedClientSession
in interfaceMapUserSessionEntity
-
removeAuthenticatedClientSession
public Boolean removeAuthenticatedClientSession(String clientUUID)
- Specified by:
removeAuthenticatedClientSession
in interfaceMapUserSessionEntity
-
isOffline
public Boolean isOffline()
- Specified by:
isOffline
in interfaceMapUserSessionEntity
-
setOffline
public void setOffline(Boolean offline)
- Specified by:
setOffline
in interfaceMapUserSessionEntity
-
getPersistenceState
public UserSessionModel.SessionPersistenceState getPersistenceState()
- Specified by:
getPersistenceState
in interfaceMapUserSessionEntity
-
setPersistenceState
public void setPersistenceState(UserSessionModel.SessionPersistenceState persistenceState)
- Specified by:
setPersistenceState
in interfaceMapUserSessionEntity
-
-