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_CLONERthat does not clone anything.HotRodUserSessionEntityDelegate(DeepCloner cloner)HotRodUserSessionEntityDelegate(HotRodUserSessionEntity hotRodEntity)Deprecated.This constructor uses aDeepCloner.DUMB_CLONERthat does not clone anything.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAuthenticatedClientSession(MapAuthenticatedClientSessionEntity p0)<V> VdeepClone(V obj)static booleanentityEquals(Object o1, Object o2)static intentityHashCode(HotRodUserSessionEntity e)booleanequals(Object o)Optional<MapAuthenticatedClientSessionEntity>getAuthenticatedClientSession(String p0)Set<MapAuthenticatedClientSessionEntity>getAuthenticatedClientSessions()StringgetAuthMethod()StringgetBrokerSessionId()StringgetBrokerUserId()LonggetExpiration()Returns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.HotRodUserSessionEntitygetHotRodEntity()StringgetIpAddress()LonggetLastSessionRefresh()Returns a point in time (timestamp in milliseconds since The Epoch) when the user session entity was last refreshed.StringgetLoginUsername()StringgetNote(String p0)Map<String,String>getNotes()StringgetRealmId()UserSessionModel.StategetState()LonggetTimestamp()Returns a point in time (timestamp in milliseconds since The Epoch) when the user session entity was created.StringgetUserId()inthashCode()BooleanisOffline()BooleanisRememberMe()BooleanremoveAuthenticatedClientSession(String p0)BooleanremoveNote(String p0)voidsetAuthMethod(String p0)voidsetBrokerSessionId(String p0)voidsetBrokerUserId(String p0)voidsetExpiration(Long p0)Sets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.voidsetIpAddress(String p0)voidsetLastSessionRefresh(Long p0)Sets a point in the (timestamp in milliseconds since The Epoch) when the user session entity was last refreshed.voidsetLoginUsername(String p0)voidsetNote(String p0, String p1)voidsetNotes(Map<String,String> p0)voidsetOffline(Boolean p0)voidsetRealmId(String p0)voidsetRememberMe(Boolean p0)voidsetState(UserSessionModel.State p0)voidsetTimestamp(Long p0)Sets a point in the (timestamp in milliseconds since The Epoch) when the user session entity was created.voidsetUserId(String p0)StringtoString()-
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_CLONERthat does not clone anything. UseHotRodUserSessionEntityDelegate(DeepCloner)variant instead
-
HotRodUserSessionEntityDelegate
public HotRodUserSessionEntityDelegate(HotRodUserSessionEntity hotRodEntity)
Deprecated.This constructor uses aDeepCloner.DUMB_CLONERthat 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:
getAuthMethodin interfaceMapUserSessionEntity
-
setAuthMethod
public void setAuthMethod(String p0)
- Specified by:
setAuthMethodin interfaceMapUserSessionEntity
-
getAuthenticatedClientSession
public Optional<MapAuthenticatedClientSessionEntity> getAuthenticatedClientSession(String p0)
- Specified by:
getAuthenticatedClientSessionin interfaceMapUserSessionEntity
-
addAuthenticatedClientSession
public void addAuthenticatedClientSession(MapAuthenticatedClientSessionEntity p0)
- Specified by:
addAuthenticatedClientSessionin interfaceMapUserSessionEntity
-
removeAuthenticatedClientSession
public Boolean removeAuthenticatedClientSession(String p0)
- Specified by:
removeAuthenticatedClientSessionin interfaceMapUserSessionEntity
-
getAuthenticatedClientSessions
public Set<MapAuthenticatedClientSessionEntity> getAuthenticatedClientSessions()
- Specified by:
getAuthenticatedClientSessionsin interfaceMapUserSessionEntity
-
getBrokerSessionId
public String getBrokerSessionId()
- Specified by:
getBrokerSessionIdin interfaceMapUserSessionEntity
-
setBrokerSessionId
public void setBrokerSessionId(String p0)
- Specified by:
setBrokerSessionIdin interfaceMapUserSessionEntity
-
setBrokerUserId
public void setBrokerUserId(String p0)
- Specified by:
setBrokerUserIdin interfaceMapUserSessionEntity
-
getBrokerUserId
public String getBrokerUserId()
- Specified by:
getBrokerUserIdin interfaceMapUserSessionEntity
-
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 p0)
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:
p0- a timestamp in milliseconds since The Epoch ornullif this entity never expires.
-
setIpAddress
public void setIpAddress(String p0)
- Specified by:
setIpAddressin interfaceMapUserSessionEntity
-
getIpAddress
public String getIpAddress()
- Specified by:
getIpAddressin interfaceMapUserSessionEntity
-
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 p0)
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:
p0- a timestamp in milliseconds since The Epoch ornullwhen the time is unknown
-
getLoginUsername
public String getLoginUsername()
- Specified by:
getLoginUsernamein interfaceMapUserSessionEntity
-
setLoginUsername
public void setLoginUsername(String p0)
- Specified by:
setLoginUsernamein interfaceMapUserSessionEntity
-
setNote
public void setNote(String p0, String p1)
- Specified by:
setNotein interfaceMapUserSessionEntity
-
getNote
public String getNote(String p0)
- Specified by:
getNotein interfaceMapUserSessionEntity
-
removeNote
public Boolean removeNote(String p0)
- Specified by:
removeNotein interfaceMapUserSessionEntity
-
setNotes
public void setNotes(Map<String,String> p0)
- Specified by:
setNotesin interfaceMapUserSessionEntity
-
getNotes
public Map<String,String> getNotes()
- Specified by:
getNotesin interfaceMapUserSessionEntity
-
setOffline
public void setOffline(Boolean p0)
- Specified by:
setOfflinein interfaceMapUserSessionEntity
-
isOffline
public Boolean isOffline()
- Specified by:
isOfflinein interfaceMapUserSessionEntity
-
setRealmId
public void setRealmId(String p0)
- Specified by:
setRealmIdin interfaceMapUserSessionEntity
-
getRealmId
public String getRealmId()
- Specified by:
getRealmIdin interfaceMapUserSessionEntity
-
setRememberMe
public void setRememberMe(Boolean p0)
- Specified by:
setRememberMein interfaceMapUserSessionEntity
-
isRememberMe
public Boolean isRememberMe()
- Specified by:
isRememberMein interfaceMapUserSessionEntity
-
setState
public void setState(UserSessionModel.State p0)
- Specified by:
setStatein interfaceMapUserSessionEntity
-
getState
public UserSessionModel.State getState()
- Specified by:
getStatein 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 p0)
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:
p0- a timestamp in milliseconds since The Epoch ornullwhen the time is unknown
-
setUserId
public void setUserId(String p0)
- Specified by:
setUserIdin interfaceMapUserSessionEntity
-
getUserId
public String getUserId()
- Specified by:
getUserIdin interfaceMapUserSessionEntity
-
getHotRodEntity
public HotRodUserSessionEntity getHotRodEntity()
- Specified by:
getHotRodEntityin interfaceHotRodEntityDelegate<HotRodUserSessionEntity>
-
-