Class HotRodUserSessionEntityDelegate
- java.lang.Object
-
- org.keycloak.models.map.storage.hotRod.common.UpdatableHotRodEntityDelegateImpl<HotRodUserSessionEntity>
-
- org.keycloak.models.map.storage.hotRod.userSession.HotRodUserSessionEntity.AbstractHotRodUserSessionEntityDelegate
-
- org.keycloak.models.map.storage.hotRod.userSession.HotRodUserSessionEntityDelegate
-
- All Implemented Interfaces:
AbstractEntity
,ExpirableEntity
,UpdatableEntity
,HotRodEntityDelegate<HotRodUserSessionEntity>
,MapUserSessionEntity
@Generated("org.keycloak.models.map.processor.GenerateHotRodEntityImplementationsProcessor") public class HotRodUserSessionEntityDelegate extends HotRodUserSessionEntity.AbstractHotRodUserSessionEntityDelegate 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 HotRodUserSessionEntityDelegate()
Deprecated.This constructor uses aDeepCloner.DUMB_CLONER
that does not clone anything.HotRodUserSessionEntityDelegate(DeepCloner cloner)
HotRodUserSessionEntityDelegate(HotRodUserSessionEntity hotRodEntity)
Deprecated.This constructor uses aDeepCloner.DUMB_CLONER
that does not clone anything.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAuthenticatedClientSession(MapAuthenticatedClientSessionEntity p0)
<V> V
deepClone(V obj)
static boolean
entityEquals(Object o1, Object o2)
static int
entityHashCode(HotRodUserSessionEntity e)
boolean
equals(Object o)
Optional<MapAuthenticatedClientSessionEntity>
getAuthenticatedClientSession(String p0)
Set<MapAuthenticatedClientSessionEntity>
getAuthenticatedClientSessions()
String
getAuthMethod()
String
getBrokerSessionId()
String
getBrokerUserId()
Long
getExpiration()
Returns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.HotRodUserSessionEntity
getHotRodEntity()
String
getIpAddress()
Long
getLastSessionRefresh()
Returns a point in time (timestamp in milliseconds since The Epoch) when the user session entity was last refreshed.String
getLoginUsername()
String
getNote(String p0)
Map<String,String>
getNotes()
String
getRealmId()
UserSessionModel.State
getState()
Long
getTimestamp()
Returns a point in time (timestamp in milliseconds since The Epoch) when the user session entity was created.String
getUserId()
int
hashCode()
Boolean
isOffline()
Boolean
isRememberMe()
Boolean
removeAuthenticatedClientSession(String p0)
Boolean
removeNote(String p0)
void
setAuthMethod(String p0)
void
setBrokerSessionId(String p0)
void
setBrokerUserId(String p0)
void
setExpiration(Long p0)
Sets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.void
setIpAddress(String p0)
void
setLastSessionRefresh(Long p0)
Sets a point in the (timestamp in milliseconds since The Epoch) when the user session entity was last refreshed.void
setLoginUsername(String p0)
void
setNote(String p0, String p1)
void
setNotes(Map<String,String> p0)
void
setOffline(Boolean p0)
void
setRealmId(String p0)
void
setRememberMe(Boolean p0)
void
setState(UserSessionModel.State p0)
void
setTimestamp(Long p0)
Sets a point in the (timestamp in milliseconds since The Epoch) when the user session entity was created.void
setUserId(String p0)
String
toString()
-
Methods inherited from class org.keycloak.models.map.storage.hotRod.userSession.HotRodUserSessionEntity.AbstractHotRodUserSessionEntityDelegate
clearAuthenticatedClientSessions, clearUpdatedFlag, getId, getPersistenceState, isUpdated, setId, setPersistenceState
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.map.common.AbstractEntity
getId, setId
-
Methods inherited from interface org.keycloak.models.map.userSession.MapUserSessionEntity
clearAuthenticatedClientSessions, getPersistenceState, setPersistenceState
-
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag, isUpdated
-
-
-
-
Constructor Detail
-
HotRodUserSessionEntityDelegate
public HotRodUserSessionEntityDelegate()
Deprecated.This constructor uses aDeepCloner.DUMB_CLONER
that does not clone anything. UseHotRodUserSessionEntityDelegate(DeepCloner)
variant instead
-
HotRodUserSessionEntityDelegate
public HotRodUserSessionEntityDelegate(HotRodUserSessionEntity hotRodEntity)
Deprecated.This constructor uses aDeepCloner.DUMB_CLONER
that does not clone anything. UseHotRodUserSessionEntityDelegate(DeepCloner)
variant instead
-
HotRodUserSessionEntityDelegate
public HotRodUserSessionEntityDelegate(DeepCloner cloner)
-
-
Method Detail
-
entityHashCode
public static int entityHashCode(HotRodUserSessionEntity e)
-
deepClone
public <V> V deepClone(V obj)
-
getAuthMethod
public String getAuthMethod()
- Specified by:
getAuthMethod
in interfaceMapUserSessionEntity
-
setAuthMethod
public void setAuthMethod(String p0)
- Specified by:
setAuthMethod
in interfaceMapUserSessionEntity
-
getAuthenticatedClientSession
public Optional<MapAuthenticatedClientSessionEntity> getAuthenticatedClientSession(String p0)
- Specified by:
getAuthenticatedClientSession
in interfaceMapUserSessionEntity
-
addAuthenticatedClientSession
public void addAuthenticatedClientSession(MapAuthenticatedClientSessionEntity p0)
- Specified by:
addAuthenticatedClientSession
in interfaceMapUserSessionEntity
-
removeAuthenticatedClientSession
public Boolean removeAuthenticatedClientSession(String p0)
- Specified by:
removeAuthenticatedClientSession
in interfaceMapUserSessionEntity
-
getAuthenticatedClientSessions
public Set<MapAuthenticatedClientSessionEntity> getAuthenticatedClientSessions()
- Specified by:
getAuthenticatedClientSessions
in interfaceMapUserSessionEntity
-
getBrokerSessionId
public String getBrokerSessionId()
- Specified by:
getBrokerSessionId
in interfaceMapUserSessionEntity
-
setBrokerSessionId
public void setBrokerSessionId(String p0)
- Specified by:
setBrokerSessionId
in interfaceMapUserSessionEntity
-
setBrokerUserId
public void setBrokerUserId(String p0)
- Specified by:
setBrokerUserId
in interfaceMapUserSessionEntity
-
getBrokerUserId
public String getBrokerUserId()
- Specified by:
getBrokerUserId
in interfaceMapUserSessionEntity
-
getExpiration
public Long 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
public void setExpiration(Long p0)
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:
p0
- a timestamp in milliseconds since The Epoch ornull
if this entity never expires.
-
setIpAddress
public void setIpAddress(String p0)
- Specified by:
setIpAddress
in interfaceMapUserSessionEntity
-
getIpAddress
public String getIpAddress()
- Specified by:
getIpAddress
in interfaceMapUserSessionEntity
-
getLastSessionRefresh
public Long 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
public void setLastSessionRefresh(Long p0)
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:
p0
- a timestamp in milliseconds since The Epoch ornull
when the time is unknown
-
getLoginUsername
public String getLoginUsername()
- Specified by:
getLoginUsername
in interfaceMapUserSessionEntity
-
setLoginUsername
public void setLoginUsername(String p0)
- Specified by:
setLoginUsername
in interfaceMapUserSessionEntity
-
setNote
public void setNote(String p0, String p1)
- Specified by:
setNote
in interfaceMapUserSessionEntity
-
getNote
public String getNote(String p0)
- Specified by:
getNote
in interfaceMapUserSessionEntity
-
removeNote
public Boolean removeNote(String p0)
- Specified by:
removeNote
in interfaceMapUserSessionEntity
-
setNotes
public void setNotes(Map<String,String> p0)
- Specified by:
setNotes
in interfaceMapUserSessionEntity
-
getNotes
public Map<String,String> getNotes()
- Specified by:
getNotes
in interfaceMapUserSessionEntity
-
setOffline
public void setOffline(Boolean p0)
- Specified by:
setOffline
in interfaceMapUserSessionEntity
-
isOffline
public Boolean isOffline()
- Specified by:
isOffline
in interfaceMapUserSessionEntity
-
setRealmId
public void setRealmId(String p0)
- Specified by:
setRealmId
in interfaceMapUserSessionEntity
-
getRealmId
public String getRealmId()
- Specified by:
getRealmId
in interfaceMapUserSessionEntity
-
setRememberMe
public void setRememberMe(Boolean p0)
- Specified by:
setRememberMe
in interfaceMapUserSessionEntity
-
isRememberMe
public Boolean isRememberMe()
- Specified by:
isRememberMe
in interfaceMapUserSessionEntity
-
setState
public void setState(UserSessionModel.State p0)
- Specified by:
setState
in interfaceMapUserSessionEntity
-
getState
public UserSessionModel.State getState()
- Specified by:
getState
in interfaceMapUserSessionEntity
-
getTimestamp
public Long 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
-
setTimestamp
public void setTimestamp(Long p0)
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:
p0
- a timestamp in milliseconds since The Epoch ornull
when the time is unknown
-
setUserId
public void setUserId(String p0)
- Specified by:
setUserId
in interfaceMapUserSessionEntity
-
getUserId
public String getUserId()
- Specified by:
getUserId
in interfaceMapUserSessionEntity
-
getHotRodEntity
public HotRodUserSessionEntity getHotRodEntity()
- Specified by:
getHotRodEntity
in interfaceHotRodEntityDelegate<HotRodUserSessionEntity>
-
-