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 TypeMethodDescriptionbooleangetId()getNotes()Parent entity that should get its optimistic locking version updated upon changes in the childintVersion 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) voidvoidvoidvoidsetOffline(Boolean offline) voidvoidsetRealmId(String realmId) voidsetRedirectUri(String redirectUri) voidsetTimestamp(Long timestamp) 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
- Specified by:
getTimestampin interfaceMapAuthenticatedClientSessionEntity
-
setTimestamp
- Specified by:
setTimestampin interfaceMapAuthenticatedClientSessionEntity
-
getExpiration
- Specified by:
getExpirationin interfaceExpirableEntity
-
setExpiration
- Specified by:
setExpirationin interfaceExpirableEntity
-
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
-