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>
JPA
MapUserConsentEntity
implementation. 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:
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGrantedClientScopesId
(String scope) boolean
getId()
Parent entity that should get its optimistic locking version updated upon changes in the childint
hashCode()
boolean
void
removeGrantedClientScopesId
(String scopes) void
setClientId
(String clientId) void
setCreatedDate
(Long createdDate) void
setEntityVersion
(Integer version) void
setGrantedClientScopesIds
(Set<String> scopesIds) void
void
setLastUpdatedDate
(Long lastUpdatedDate) void
setParent
(JpaUserEntity root) Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag, isUpdated, markUpdatedFlag
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, markUpdatedFlag
-
Constructor Details
-
JpaUserConsentEntity
public JpaUserConsentEntity() -
JpaUserConsentEntity
-
-
Method Details
-
isMetadataInitialized
public boolean isMetadataInitialized() -
getEntityVersion
- Specified by:
getEntityVersion
in interfaceJpaRootEntity
- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
- Specified by:
setEntityVersion
in interfaceJpaRootEntity
- Parameters:
version
- sets current supported version to JPA entity.
-
getParent
Description copied from interface:JpaChildEntity
Parent entity that should get its optimistic locking version updated upon changes in the child- Specified by:
getParent
in interfaceJpaChildEntity<JpaUserEntity>
-
setParent
-
getId
- Specified by:
getId
in interfaceAbstractEntity
-
setId
- Specified by:
setId
in interfaceAbstractEntity
-
getCurrentSchemaVersion
- Specified by:
getCurrentSchemaVersion
in interfaceJpaRootEntity
-
getClientId
- Specified by:
getClientId
in interfaceMapUserConsentEntity
-
setClientId
- Specified by:
setClientId
in interfaceMapUserConsentEntity
-
getGrantedClientScopesIds
- Specified by:
getGrantedClientScopesIds
in interfaceMapUserConsentEntity
-
addGrantedClientScopesId
- Specified by:
addGrantedClientScopesId
in interfaceMapUserConsentEntity
-
setGrantedClientScopesIds
- Specified by:
setGrantedClientScopesIds
in interfaceMapUserConsentEntity
-
removeGrantedClientScopesId
- Specified by:
removeGrantedClientScopesId
in interfaceMapUserConsentEntity
-
getCreatedDate
- Specified by:
getCreatedDate
in interfaceMapUserConsentEntity
-
setCreatedDate
- Specified by:
setCreatedDate
in interfaceMapUserConsentEntity
-
getLastUpdatedDate
- Specified by:
getLastUpdatedDate
in interfaceMapUserConsentEntity
-
setLastUpdatedDate
- Specified by:
setLastUpdatedDate
in interfaceMapUserConsentEntity
-
hashCode
public int hashCode() -
equals
-