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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.userSession.MapAuthenticatedClientSessionEntity
MapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity
-
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 JpaClientSessionEntity()No-argument constructor, used by hibernate to instantiate entities.JpaClientSessionEntity(DeepCloner cloner)
-
Method Summary
-
Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag, isUpdated
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.map.storage.jpa.JpaRootEntity
updateEntityVersion
-
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag, isUpdated
-
-
-
-
Constructor Detail
-
JpaClientSessionEntity
public JpaClientSessionEntity()
No-argument constructor, used by hibernate to instantiate entities.
-
JpaClientSessionEntity
public JpaClientSessionEntity(DeepCloner cloner)
-
-
Method Detail
-
isMetadataInitialized
public boolean isMetadataInitialized()
-
getParent
public JpaUserSessionEntity 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
public void setParent(JpaUserSessionEntity root)
-
getEntityVersion
public Integer getEntityVersion()
- Specified by:
getEntityVersionin interfaceJpaRootEntity- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
public void setEntityVersion(Integer entityVersion)
- Specified by:
setEntityVersionin interfaceJpaRootEntity- Parameters:
entityVersion- sets current supported version to JPA entity.
-
getCurrentSchemaVersion
public Integer 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
public String getId()
- Specified by:
getIdin interfaceAbstractEntity- Overrides:
getIdin classMapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity
-
setId
public void setId(String id)
- Specified by:
setIdin interfaceAbstractEntity- Overrides:
setIdin classMapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity
-
getRealmId
public String getRealmId()
- Specified by:
getRealmIdin interfaceMapAuthenticatedClientSessionEntity
-
setRealmId
public void setRealmId(String realmId)
- Specified by:
setRealmIdin interfaceMapAuthenticatedClientSessionEntity
-
getClientId
public String getClientId()
- Specified by:
getClientIdin interfaceMapAuthenticatedClientSessionEntity
-
setClientId
public void setClientId(String clientId)
- Specified by:
setClientIdin interfaceMapAuthenticatedClientSessionEntity
-
getAuthMethod
public String getAuthMethod()
- Specified by:
getAuthMethodin interfaceMapAuthenticatedClientSessionEntity
-
setAuthMethod
public void setAuthMethod(String authMethod)
- Specified by:
setAuthMethodin interfaceMapAuthenticatedClientSessionEntity
-
getRedirectUri
public String getRedirectUri()
- Specified by:
getRedirectUriin interfaceMapAuthenticatedClientSessionEntity
-
setRedirectUri
public void setRedirectUri(String redirectUri)
- Specified by:
setRedirectUriin interfaceMapAuthenticatedClientSessionEntity
-
getTimestamp
public Long getTimestamp()
- Specified by:
getTimestampin interfaceMapAuthenticatedClientSessionEntity
-
setTimestamp
public void setTimestamp(Long timestamp)
- Specified by:
setTimestampin interfaceMapAuthenticatedClientSessionEntity
-
getExpiration
public Long getExpiration()
- Specified by:
getExpirationin interfaceExpirableEntity
-
setExpiration
public void setExpiration(Long expiration)
- Specified by:
setExpirationin interfaceExpirableEntity
-
getAction
public String getAction()
- Specified by:
getActionin interfaceMapAuthenticatedClientSessionEntity
-
setAction
public void setAction(String action)
- Specified by:
setActionin interfaceMapAuthenticatedClientSessionEntity
-
getCurrentRefreshToken
public String getCurrentRefreshToken()
- Specified by:
getCurrentRefreshTokenin interfaceMapAuthenticatedClientSessionEntity
-
setCurrentRefreshToken
public void setCurrentRefreshToken(String currentRefreshToken)
- Specified by:
setCurrentRefreshTokenin interfaceMapAuthenticatedClientSessionEntity
-
getCurrentRefreshTokenUseCount
public Integer getCurrentRefreshTokenUseCount()
- Specified by:
getCurrentRefreshTokenUseCountin interfaceMapAuthenticatedClientSessionEntity
-
setCurrentRefreshTokenUseCount
public void setCurrentRefreshTokenUseCount(Integer currentRefreshTokenUseCount)
- Specified by:
setCurrentRefreshTokenUseCountin interfaceMapAuthenticatedClientSessionEntity
-
isOffline
public Boolean isOffline()
- Specified by:
isOfflinein interfaceMapAuthenticatedClientSessionEntity
-
setOffline
public void setOffline(Boolean offline)
- Specified by:
setOfflinein interfaceMapAuthenticatedClientSessionEntity
-
getNotes
public Map<String,String> getNotes()
- Specified by:
getNotesin interfaceMapAuthenticatedClientSessionEntity
-
setNotes
public void setNotes(Map<String,String> notes)
- Specified by:
setNotesin interfaceMapAuthenticatedClientSessionEntity
-
getNote
public String getNote(String name)
- Specified by:
getNotein interfaceMapAuthenticatedClientSessionEntity
-
removeNote
public Boolean removeNote(String name)
- Specified by:
removeNotein interfaceMapAuthenticatedClientSessionEntity
-
setNote
public void setNote(String name, String value)
- Specified by:
setNotein interfaceMapAuthenticatedClientSessionEntity
-
-