Class MapUserSessionEntityFieldDelegate
- java.lang.Object
-
- org.keycloak.models.map.common.UpdatableEntity.Impl
-
- org.keycloak.models.map.userSession.MapUserSessionEntity.AbstractUserSessionEntity
-
- org.keycloak.models.map.userSession.MapUserSessionEntityFieldDelegate
-
- All Implemented Interfaces:
AbstractEntity,HasEntityFieldDelegate<MapUserSessionEntity>,ExpirableEntity,UpdatableEntity,MapUserSessionEntity
@Generated("org.keycloak.models.map.processor.GenerateEntityImplementationsProcessor") public class MapUserSessionEntityFieldDelegate extends MapUserSessionEntity.AbstractUserSessionEntity implements MapUserSessionEntity, HasEntityFieldDelegate<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
Constructors Constructor Description MapUserSessionEntityFieldDelegate(EntityFieldDelegate<MapUserSessionEntity> entityFieldDelegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAuthenticatedClientSession(MapAuthenticatedClientSessionEntity p0)voidclearUpdatedFlag()An optional operation clearing the updated flag.Optional<MapAuthenticatedClientSessionEntity>getAuthenticatedClientSession(String p0)Set<MapAuthenticatedClientSessionEntity>getAuthenticatedClientSessions()StringgetAuthMethod()StringgetBrokerSessionId()StringgetBrokerUserId()EntityFieldDelegate<MapUserSessionEntity>getEntityFieldDelegate()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 p0)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 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.voidsetId(String p0)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)voidsetPersistenceState(UserSessionModel.SessionPersistenceState 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)-
Methods inherited from class org.keycloak.models.map.userSession.MapUserSessionEntity.AbstractUserSessionEntity
clearAuthenticatedClientSessions
-
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
-
-
-
-
Constructor Detail
-
MapUserSessionEntityFieldDelegate
public MapUserSessionEntityFieldDelegate(EntityFieldDelegate<MapUserSessionEntity> entityFieldDelegate)
-
-
Method Detail
-
getEntityFieldDelegate
public EntityFieldDelegate<MapUserSessionEntity> getEntityFieldDelegate()
- Specified by:
getEntityFieldDelegatein interfaceHasEntityFieldDelegate<MapUserSessionEntity>
-
isUpdated
public boolean isUpdated()
Description copied from interface:UpdatableEntityFlag signalizing that any of the setters has been meaningfully used.- Specified by:
isUpdatedin interfaceUpdatableEntity- Overrides:
isUpdatedin classMapUserSessionEntity.AbstractUserSessionEntity- Returns:
-
clearUpdatedFlag
public void clearUpdatedFlag()
Description copied from interface:UpdatableEntityAn optional operation clearing the updated flag. Right after using this method, theUpdatableEntity.isUpdated()would returnfalse.- Specified by:
clearUpdatedFlagin interfaceUpdatableEntity- Overrides:
clearUpdatedFlagin classMapUserSessionEntity.AbstractUserSessionEntity
-
getId
public String getId()
- Specified by:
getIdin interfaceAbstractEntity- Overrides:
getIdin classMapUserSessionEntity.AbstractUserSessionEntity
-
setId
public void setId(String p0)
- Specified by:
setIdin interfaceAbstractEntity- Overrides:
setIdin classMapUserSessionEntity.AbstractUserSessionEntity
-
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.
-
getRealmId
public String getRealmId()
- Specified by:
getRealmIdin interfaceMapUserSessionEntity
-
setRealmId
public void setRealmId(String p0)
- Specified by:
setRealmIdin interfaceMapUserSessionEntity
-
getUserId
public String getUserId()
- Specified by:
getUserIdin interfaceMapUserSessionEntity
-
setUserId
public void setUserId(String p0)
- Specified by:
setUserIdin interfaceMapUserSessionEntity
-
getBrokerSessionId
public String getBrokerSessionId()
- Specified by:
getBrokerSessionIdin interfaceMapUserSessionEntity
-
setBrokerSessionId
public void setBrokerSessionId(String p0)
- Specified by:
setBrokerSessionIdin interfaceMapUserSessionEntity
-
getBrokerUserId
public String getBrokerUserId()
- Specified by:
getBrokerUserIdin interfaceMapUserSessionEntity
-
setBrokerUserId
public void setBrokerUserId(String p0)
- Specified by:
setBrokerUserIdin interfaceMapUserSessionEntity
-
getLoginUsername
public String getLoginUsername()
- Specified by:
getLoginUsernamein interfaceMapUserSessionEntity
-
setLoginUsername
public void setLoginUsername(String p0)
- Specified by:
setLoginUsernamein interfaceMapUserSessionEntity
-
getIpAddress
public String getIpAddress()
- Specified by:
getIpAddressin interfaceMapUserSessionEntity
-
setIpAddress
public void setIpAddress(String p0)
- Specified by:
setIpAddressin interfaceMapUserSessionEntity
-
getAuthMethod
public String getAuthMethod()
- Specified by:
getAuthMethodin interfaceMapUserSessionEntity
-
setAuthMethod
public void setAuthMethod(String p0)
- Specified by:
setAuthMethodin interfaceMapUserSessionEntity
-
isRememberMe
public Boolean isRememberMe()
- Specified by:
isRememberMein interfaceMapUserSessionEntity
-
setRememberMe
public void setRememberMe(Boolean p0)
- 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 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
-
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
-
getNotes
public Map<String,String> getNotes()
- Specified by:
getNotesin interfaceMapUserSessionEntity
-
getNote
public String getNote(String p0)
- Specified by:
getNotein interfaceMapUserSessionEntity
-
setNotes
public void setNotes(Map<String,String> p0)
- Specified by:
setNotesin interfaceMapUserSessionEntity
-
removeNote
public Boolean removeNote(String p0)
- Specified by:
removeNotein interfaceMapUserSessionEntity
-
setNote
public void setNote(String p0, String p1)
- Specified by:
setNotein interfaceMapUserSessionEntity
-
getState
public UserSessionModel.State getState()
- Specified by:
getStatein interfaceMapUserSessionEntity
-
setState
public void setState(UserSessionModel.State p0)
- Specified by:
setStatein interfaceMapUserSessionEntity
-
getAuthenticatedClientSessions
public Set<MapAuthenticatedClientSessionEntity> getAuthenticatedClientSessions()
- Specified by:
getAuthenticatedClientSessionsin 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
-
isOffline
public Boolean isOffline()
- Specified by:
isOfflinein interfaceMapUserSessionEntity
-
setOffline
public void setOffline(Boolean p0)
- Specified by:
setOfflinein interfaceMapUserSessionEntity
-
getPersistenceState
public UserSessionModel.SessionPersistenceState getPersistenceState()
- Specified by:
getPersistenceStatein interfaceMapUserSessionEntity
-
setPersistenceState
public void setPersistenceState(UserSessionModel.SessionPersistenceState p0)
- Specified by:
setPersistenceStatein interfaceMapUserSessionEntity
-
-