Package org.keycloak.models.jpa.session
Record Class ImmutablePersistentUserSessionEntity
java.lang.Object
java.lang.Record
org.keycloak.models.jpa.session.ImmutablePersistentUserSessionEntity
- All Implemented Interfaces:
org.keycloak.models.session.PersistentUserSessionModel
public record ImmutablePersistentUserSessionEntity(String userSessionId, String realmId, String userId, int createOn, int lastSessionRefresh, String brokerSessionId, String offline, String data, Boolean rememberMe)
extends Record
implements org.keycloak.models.session.PersistentUserSessionModel
An immutable
PersistentUserSessionEntity to optimize read-only queries.-
Constructor Summary
ConstructorsConstructorDescriptionImmutablePersistentUserSessionEntity(String userSessionId, String realmId, String userId, int createOn, int lastSessionRefresh, String brokerSessionId, String offline, String data, Boolean rememberMe) Creates an instance of aImmutablePersistentUserSessionEntityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebrokerSessionIdrecord component.intcreateOn()Returns the value of thecreateOnrecord component.data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.getData()intintfinal inthashCode()Returns a hash code value for this object.booleanbooleanintReturns the value of thelastSessionRefreshrecord component.offline()Returns the value of theofflinerecord component.realmId()Returns the value of therealmIdrecord component.Returns the value of therememberMerecord component.voidsetBrokerSessionId(String brokerSessionId) voidvoidsetLastSessionRefresh(int lastSessionRefresh) voidsetOffline(boolean offline) voidsetRealmId(String realmId) voidsetRememberMe(boolean rememberMe) voidsetStarted(int started) voidvoidsetUserSessionId(String userSessionId) final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.Returns the value of theuserSessionIdrecord component.
-
Constructor Details
-
ImmutablePersistentUserSessionEntity
public ImmutablePersistentUserSessionEntity(String userSessionId, String realmId, String userId, int createOn, int lastSessionRefresh, String brokerSessionId, String offline, String data, Boolean rememberMe) Creates an instance of aImmutablePersistentUserSessionEntityrecord class.- Parameters:
userSessionId- the value for theuserSessionIdrecord componentrealmId- the value for therealmIdrecord componentuserId- the value for theuserIdrecord componentcreateOn- the value for thecreateOnrecord componentlastSessionRefresh- the value for thelastSessionRefreshrecord componentbrokerSessionId- the value for thebrokerSessionIdrecord componentoffline- the value for theofflinerecord componentdata- the value for thedatarecord componentrememberMe- the value for therememberMerecord component
-
-
Method Details
-
getUserSessionId
- Specified by:
getUserSessionIdin interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
setUserSessionId
- Specified by:
setUserSessionIdin interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
getStarted
public int getStarted()- Specified by:
getStartedin interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
setStarted
public void setStarted(int started) - Specified by:
setStartedin interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
getLastSessionRefresh
public int getLastSessionRefresh()- Specified by:
getLastSessionRefreshin interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
setLastSessionRefresh
public void setLastSessionRefresh(int lastSessionRefresh) - Specified by:
setLastSessionRefreshin interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
isOffline
public boolean isOffline()- Specified by:
isOfflinein interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
setOffline
public void setOffline(boolean offline) - Specified by:
setOfflinein interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
getData
- Specified by:
getDatain interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
setData
- Specified by:
setDatain interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
setRealmId
- Specified by:
setRealmIdin interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
setUserId
- Specified by:
setUserIdin interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
setBrokerSessionId
- Specified by:
setBrokerSessionIdin interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
isRememberMe
public boolean isRememberMe()- Specified by:
isRememberMein interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
setRememberMe
public void setRememberMe(boolean rememberMe) - Specified by:
setRememberMein interfaceorg.keycloak.models.session.PersistentUserSessionModel
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
userSessionId
Returns the value of theuserSessionIdrecord component.- Returns:
- the value of the
userSessionIdrecord component
-
realmId
Returns the value of therealmIdrecord component.- Returns:
- the value of the
realmIdrecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
createOn
public int createOn()Returns the value of thecreateOnrecord component.- Returns:
- the value of the
createOnrecord component
-
lastSessionRefresh
public int lastSessionRefresh()Returns the value of thelastSessionRefreshrecord component.- Returns:
- the value of the
lastSessionRefreshrecord component
-
brokerSessionId
Returns the value of thebrokerSessionIdrecord component.- Returns:
- the value of the
brokerSessionIdrecord component
-
offline
Returns the value of theofflinerecord component.- Returns:
- the value of the
offlinerecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
rememberMe
Returns the value of therememberMerecord component.- Returns:
- the value of the
rememberMerecord component
-