Class JpaClientSessionEntity
java.lang.Object
org.keycloak.models.map.common.UpdatableEntity.Impl
org.keycloak.models.map.userSession.MapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity
org.keycloak.models.map.storage.jpa.userSession.entity.JpaClientSessionEntity
- All Implemented Interfaces:
Serializable,AbstractEntity,ExpirableEntity,UpdatableEntity,JpaChildEntity<JpaUserSessionEntity>,JpaRootEntity,JpaRootVersionedEntity,MapAuthenticatedClientSessionEntity
@Entity
public class JpaClientSessionEntity
extends MapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity
implements JpaRootVersionedEntity, JpaChildEntity<JpaUserSessionEntity>
Entity represents authenticated client session.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.map.userSession.MapAuthenticatedClientSessionEntity
MapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntityNested 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
ConstructorsConstructorDescriptionNo-argument constructor, used by hibernate to instantiate entities.JpaClientSessionEntity(DeepCloner cloner) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.getId()getNotes()Parent entity that should get its optimistic locking version updated upon changes in the childReturns a point in time (timestamp in milliseconds since The Epoch) when the client session entity was created or updated (refreshed).intVersion of the JPA entity used for optimistic lockinginthashCode()booleanremoveNote(String name) voidvoidsetAuthMethod(String authMethod) voidsetClientId(String clientId) voidsetCurrentRefreshToken(String currentRefreshToken) voidsetCurrentRefreshTokenUseCount(Integer currentRefreshTokenUseCount) voidsetEntityVersion(Integer entityVersion) voidsetExpiration(Long expiration) Sets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.voidvoidvoidvoidsetOffline(Boolean offline) voidvoidsetRealmId(String realmId) voidsetRedirectUri(String redirectUri) voidsetTimestamp(Long timestamp) Sets a point in the (timestamp in milliseconds since The Epoch) when the client session entity was created or updated (refreshed).Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag, isUpdated, markUpdatedFlagMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.map.storage.jpa.JpaRootEntity
updateEntityVersionMethods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag, isUpdated, markUpdatedFlag
-
Constructor Details
-
JpaClientSessionEntity
public JpaClientSessionEntity()No-argument constructor, used by hibernate to instantiate entities. -
JpaClientSessionEntity
-
-
Method Details
-
isMetadataInitialized
public boolean isMetadataInitialized() -
getParent
Description copied from interface:JpaChildEntityParent entity that should get its optimistic locking version updated upon changes in the child- Specified by:
getParentin interfaceJpaChildEntity<JpaUserSessionEntity>
-
setParent
-
getEntityVersion
- Specified by:
getEntityVersionin interfaceJpaRootEntity- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
- Specified by:
setEntityVersionin interfaceJpaRootEntity- Parameters:
entityVersion- sets current supported version to JPA entity.
-
getCurrentSchemaVersion
- Specified by:
getCurrentSchemaVersionin interfaceJpaRootEntity
-
getVersion
public int getVersion()Description copied from interface:JpaRootVersionedEntityVersion of the JPA entity used for optimistic locking- Specified by:
getVersionin interfaceJpaRootVersionedEntity
-
getId
- Specified by:
getIdin interfaceAbstractEntity- Overrides:
getIdin classMapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity
-
setId
- Specified by:
setIdin interfaceAbstractEntity- Overrides:
setIdin classMapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity
-
getRealmId
- Specified by:
getRealmIdin interfaceMapAuthenticatedClientSessionEntity
-
setRealmId
- Specified by:
setRealmIdin interfaceMapAuthenticatedClientSessionEntity
-
getClientId
- Specified by:
getClientIdin interfaceMapAuthenticatedClientSessionEntity
-
setClientId
- Specified by:
setClientIdin interfaceMapAuthenticatedClientSessionEntity
-
getAuthMethod
- Specified by:
getAuthMethodin interfaceMapAuthenticatedClientSessionEntity
-
setAuthMethod
- Specified by:
setAuthMethodin interfaceMapAuthenticatedClientSessionEntity
-
getRedirectUri
- Specified by:
getRedirectUriin interfaceMapAuthenticatedClientSessionEntity
-
setRedirectUri
- Specified by:
setRedirectUriin interfaceMapAuthenticatedClientSessionEntity
-
getTimestamp
Description copied from interface:MapAuthenticatedClientSessionEntityReturns a point in time (timestamp in milliseconds since The Epoch) when the client session entity was created or updated (refreshed).- Specified by:
getTimestampin interfaceMapAuthenticatedClientSessionEntity- Returns:
- a timestamp in milliseconds since The Epoch or
nullwhen the time is unknown
-
setTimestamp
Description copied from interface:MapAuthenticatedClientSessionEntitySets a point in the (timestamp in milliseconds since The Epoch) when the client session entity was created or updated (refreshed).- Specified by:
setTimestampin interfaceMapAuthenticatedClientSessionEntity- Parameters:
timestamp- a timestamp in milliseconds since The Epoch ornullwhen the time is unknown
-
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
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:
expiration- a timestamp in milliseconds since The Epoch ornullif this entity never expires.
-
getAction
- Specified by:
getActionin interfaceMapAuthenticatedClientSessionEntity
-
setAction
- Specified by:
setActionin interfaceMapAuthenticatedClientSessionEntity
-
getCurrentRefreshToken
- Specified by:
getCurrentRefreshTokenin interfaceMapAuthenticatedClientSessionEntity
-
setCurrentRefreshToken
- Specified by:
setCurrentRefreshTokenin interfaceMapAuthenticatedClientSessionEntity
-
getCurrentRefreshTokenUseCount
- Specified by:
getCurrentRefreshTokenUseCountin interfaceMapAuthenticatedClientSessionEntity
-
setCurrentRefreshTokenUseCount
- Specified by:
setCurrentRefreshTokenUseCountin interfaceMapAuthenticatedClientSessionEntity
-
isOffline
- Specified by:
isOfflinein interfaceMapAuthenticatedClientSessionEntity
-
setOffline
- Specified by:
setOfflinein interfaceMapAuthenticatedClientSessionEntity
-
getNotes
- Specified by:
getNotesin interfaceMapAuthenticatedClientSessionEntity
-
setNotes
- Specified by:
setNotesin interfaceMapAuthenticatedClientSessionEntity
-
getNote
- Specified by:
getNotein interfaceMapAuthenticatedClientSessionEntity
-
removeNote
- Specified by:
removeNotein interfaceMapAuthenticatedClientSessionEntity
-
setNote
- Specified by:
setNotein interfaceMapAuthenticatedClientSessionEntity
-
hashCode
public int hashCode() -
equals
-