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.UpdatableEntity
UpdatableEntity.Impl
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
updated
-
-
Constructor Summary
Constructors Constructor Description JpaUserConsentEntity()JpaUserConsentEntity(DeepCloner cloner)
-
Method Summary
All 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.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
-
JpaUserConsentEntity
public JpaUserConsentEntity()
-
JpaUserConsentEntity
public JpaUserConsentEntity(DeepCloner cloner)
-
-
Method Detail
-
isMetadataInitialized
public boolean isMetadataInitialized()
-
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 version)
- Specified by:
setEntityVersionin interfaceJpaRootEntity- Parameters:
version- sets current supported version to JPA entity.
-
getParent
public JpaUserEntity getParent()
Description copied from interface:JpaChildEntityParent entity that should get its optimistic locking version updated upon changes in the child- Specified by:
getParentin interfaceJpaChildEntity<JpaUserEntity>
-
setParent
public void setParent(JpaUserEntity root)
-
getId
public String getId()
- Specified by:
getIdin interfaceAbstractEntity
-
setId
public void setId(String id)
- Specified by:
setIdin interfaceAbstractEntity
-
getCurrentSchemaVersion
public Integer getCurrentSchemaVersion()
- Specified by:
getCurrentSchemaVersionin interfaceJpaRootEntity
-
getClientId
public String getClientId()
- Specified by:
getClientIdin interfaceMapUserConsentEntity
-
setClientId
public void setClientId(String clientId)
- Specified by:
setClientIdin interfaceMapUserConsentEntity
-
getGrantedClientScopesIds
public Set<String> getGrantedClientScopesIds()
- Specified by:
getGrantedClientScopesIdsin interfaceMapUserConsentEntity
-
addGrantedClientScopesId
public void addGrantedClientScopesId(String scope)
- Specified by:
addGrantedClientScopesIdin interfaceMapUserConsentEntity
-
setGrantedClientScopesIds
public void setGrantedClientScopesIds(Set<String> scopesIds)
- Specified by:
setGrantedClientScopesIdsin interfaceMapUserConsentEntity
-
removeGrantedClientScopesId
public void removeGrantedClientScopesId(String scopes)
- Specified by:
removeGrantedClientScopesIdin interfaceMapUserConsentEntity
-
getCreatedDate
public Long getCreatedDate()
- Specified by:
getCreatedDatein interfaceMapUserConsentEntity
-
setCreatedDate
public void setCreatedDate(Long createdDate)
- Specified by:
setCreatedDatein interfaceMapUserConsentEntity
-
getLastUpdatedDate
public Long getLastUpdatedDate()
- Specified by:
getLastUpdatedDatein interfaceMapUserConsentEntity
-
setLastUpdatedDate
public void setLastUpdatedDate(Long lastUpdatedDate)
- Specified by:
setLastUpdatedDatein interfaceMapUserConsentEntity
-
-