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>
JPAMapUserConsentEntity
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:
- 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 void
addGrantedClientScopesId(String scope)
boolean
equals(Object obj)
String
getClientId()
Long
getCreatedDate()
Integer
getCurrentSchemaVersion()
Integer
getEntityVersion()
Set<String>
getGrantedClientScopesIds()
String
getId()
Long
getLastUpdatedDate()
JpaUserEntity
getParent()
Parent entity that should get its optimistic locking version updated upon changes in the childint
hashCode()
boolean
isMetadataInitialized()
void
removeGrantedClientScopesId(String scopes)
void
setClientId(String clientId)
void
setCreatedDate(Long createdDate)
void
setEntityVersion(Integer version)
void
setGrantedClientScopesIds(Set<String> scopesIds)
void
setId(String id)
void
setLastUpdatedDate(Long lastUpdatedDate)
void
setParent(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:
getEntityVersion
in interfaceJpaRootEntity
- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
public void setEntityVersion(Integer version)
- Specified by:
setEntityVersion
in interfaceJpaRootEntity
- Parameters:
version
- sets current supported version to JPA entity.
-
getParent
public JpaUserEntity 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
public void setParent(JpaUserEntity root)
-
getId
public String getId()
- Specified by:
getId
in interfaceAbstractEntity
-
setId
public void setId(String id)
- Specified by:
setId
in interfaceAbstractEntity
-
getCurrentSchemaVersion
public Integer getCurrentSchemaVersion()
- Specified by:
getCurrentSchemaVersion
in interfaceJpaRootEntity
-
getClientId
public String getClientId()
- Specified by:
getClientId
in interfaceMapUserConsentEntity
-
setClientId
public void setClientId(String clientId)
- Specified by:
setClientId
in interfaceMapUserConsentEntity
-
getGrantedClientScopesIds
public Set<String> getGrantedClientScopesIds()
- Specified by:
getGrantedClientScopesIds
in interfaceMapUserConsentEntity
-
addGrantedClientScopesId
public void addGrantedClientScopesId(String scope)
- Specified by:
addGrantedClientScopesId
in interfaceMapUserConsentEntity
-
setGrantedClientScopesIds
public void setGrantedClientScopesIds(Set<String> scopesIds)
- Specified by:
setGrantedClientScopesIds
in interfaceMapUserConsentEntity
-
removeGrantedClientScopesId
public void removeGrantedClientScopesId(String scopes)
- Specified by:
removeGrantedClientScopesId
in interfaceMapUserConsentEntity
-
getCreatedDate
public Long getCreatedDate()
- Specified by:
getCreatedDate
in interfaceMapUserConsentEntity
-
setCreatedDate
public void setCreatedDate(Long createdDate)
- Specified by:
setCreatedDate
in interfaceMapUserConsentEntity
-
getLastUpdatedDate
public Long getLastUpdatedDate()
- Specified by:
getLastUpdatedDate
in interfaceMapUserConsentEntity
-
setLastUpdatedDate
public void setLastUpdatedDate(Long lastUpdatedDate)
- Specified by:
setLastUpdatedDate
in interfaceMapUserConsentEntity
-
-