Class JpaUserConsentEntity
- java.lang.Object
- 
- org.keycloak.models.map.common.UpdatableEntity.Impl
- 
- org.keycloak.models.map.storage.jpa.user.entity.JpaUserConsentEntity
 
 
- 
- All Implemented Interfaces:
- Serializable,- AbstractEntity,- UpdatableEntity,- JpaChildEntity<JpaUserEntity>,- JpaRootEntity,- MapUserConsentEntity
 
 @Entity public class JpaUserConsentEntity extends UpdatableEntity.Impl implements MapUserConsentEntity, JpaRootEntity, JpaChildEntity<JpaUserEntity> JPAMapUserConsentEntityimplementation. Some fields are annotated with@Column(insertable = false, updatable = false)to indicate that they are automatically generated from json fields. As such, these fields are non-insertable and non-updatable.- Author:
- Stefan Guilhen
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntityUpdatableEntity.Impl
 
- 
 - 
Field Summary- 
Fields inherited from class org.keycloak.models.map.common.UpdatableEntity.Implupdated
 
- 
 - 
Constructor SummaryConstructors Constructor Description JpaUserConsentEntity()JpaUserConsentEntity(DeepCloner cloner)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGrantedClientScopesId(String scope)booleanequals(Object obj)StringgetClientId()LonggetCreatedDate()IntegergetCurrentSchemaVersion()IntegergetEntityVersion()Set<String>getGrantedClientScopesIds()StringgetId()LonggetLastUpdatedDate()JpaUserEntitygetParent()Parent entity that should get its optimistic locking version updated upon changes in the childinthashCode()booleanisMetadataInitialized()voidremoveGrantedClientScopesId(String scopes)voidsetClientId(String clientId)voidsetCreatedDate(Long createdDate)voidsetEntityVersion(Integer version)voidsetGrantedClientScopesIds(Set<String> scopesIds)voidsetId(String id)voidsetLastUpdatedDate(Long lastUpdatedDate)voidsetParent(JpaUserEntity root)- 
Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.ImplclearUpdatedFlag, isUpdated
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.map.storage.jpa.JpaRootEntityupdateEntityVersion
 - 
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntityclearUpdatedFlag, isUpdated
 
- 
 
- 
- 
- 
Constructor Detail- 
JpaUserConsentEntitypublic JpaUserConsentEntity() 
 - 
JpaUserConsentEntitypublic JpaUserConsentEntity(DeepCloner cloner) 
 
- 
 - 
Method Detail- 
isMetadataInitializedpublic boolean isMetadataInitialized() 
 - 
getEntityVersionpublic Integer getEntityVersion() - Specified by:
- getEntityVersionin interface- JpaRootEntity
- Returns:
- current supported version of the JPA entity used for schema versioning.
 
 - 
setEntityVersionpublic void setEntityVersion(Integer version) - Specified by:
- setEntityVersionin interface- JpaRootEntity
- Parameters:
- version- sets current supported version to JPA entity.
 
 - 
getParentpublic JpaUserEntity getParent() Description copied from interface:JpaChildEntityParent entity that should get its optimistic locking version updated upon changes in the child- Specified by:
- getParentin interface- JpaChildEntity<JpaUserEntity>
 
 - 
setParentpublic void setParent(JpaUserEntity root) 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- AbstractEntity
 
 - 
setIdpublic void setId(String id) - Specified by:
- setIdin interface- AbstractEntity
 
 - 
getCurrentSchemaVersionpublic Integer getCurrentSchemaVersion() - Specified by:
- getCurrentSchemaVersionin interface- JpaRootEntity
 
 - 
getClientIdpublic String getClientId() - Specified by:
- getClientIdin interface- MapUserConsentEntity
 
 - 
setClientIdpublic void setClientId(String clientId) - Specified by:
- setClientIdin interface- MapUserConsentEntity
 
 - 
getGrantedClientScopesIdspublic Set<String> getGrantedClientScopesIds() - Specified by:
- getGrantedClientScopesIdsin interface- MapUserConsentEntity
 
 - 
addGrantedClientScopesIdpublic void addGrantedClientScopesId(String scope) - Specified by:
- addGrantedClientScopesIdin interface- MapUserConsentEntity
 
 - 
setGrantedClientScopesIdspublic void setGrantedClientScopesIds(Set<String> scopesIds) - Specified by:
- setGrantedClientScopesIdsin interface- MapUserConsentEntity
 
 - 
removeGrantedClientScopesIdpublic void removeGrantedClientScopesId(String scopes) - Specified by:
- removeGrantedClientScopesIdin interface- MapUserConsentEntity
 
 - 
getCreatedDatepublic Long getCreatedDate() - Specified by:
- getCreatedDatein interface- MapUserConsentEntity
 
 - 
setCreatedDatepublic void setCreatedDate(Long createdDate) - Specified by:
- setCreatedDatein interface- MapUserConsentEntity
 
 - 
getLastUpdatedDatepublic Long getLastUpdatedDate() - Specified by:
- getLastUpdatedDatein interface- MapUserConsentEntity
 
 - 
setLastUpdatedDatepublic void setLastUpdatedDate(Long lastUpdatedDate) - Specified by:
- setLastUpdatedDatein interface- MapUserConsentEntity
 
 
- 
 
-