Class JpaClientScopeEntity
java.lang.Object
org.keycloak.models.map.common.UpdatableEntity.Impl
org.keycloak.models.map.clientscope.MapClientScopeEntity.AbstractClientScopeEntity
org.keycloak.models.map.storage.jpa.clientScope.entity.JpaClientScopeEntity
- All Implemented Interfaces:
Serializable,MapClientScopeEntity,AbstractEntity,EntityWithAttributes,UpdatableEntity,JpaRootEntity,JpaRootVersionedEntity
@Entity
public class JpaClientScopeEntity
extends MapClientScopeEntity.AbstractClientScopeEntity
implements JpaRootVersionedEntity
There are some fields marked by
@Column(insertable = false, updatable = false).
Those fields are automatically generated by database from json field,
therefore marked as non-insertable and non-updatable to instruct hibernate.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.map.clientscope.MapClientScopeEntity
MapClientScopeEntity.AbstractClientScopeEntityNested 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
ConstructorsConstructorDescriptionNo-argument constructor, used by hibernate to instantiate entities.JpaClientScopeEntity(UUID id, int version, Integer entityVersion, String realmId, String name) Used by hibernate when calling cb.construct from read(QueryParameters) method.JpaClientScopeEntity(DeepCloner cloner) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProtocolMapper(MapProtocolMapperEntity mapping) voidbooleangetAttribute(String name) getId()getName()intVersion of the JPA entity used for optimistic lockinginthashCode()booleanvoidremoveAttribute(String name) voidvoidvoidsetAttribute(String name, List<String> values) voidsetAttributes(Map<String, List<String>> attributes) voidsetDescription(String description) voidsetEntityVersion(Integer entityVersion) voidvoidvoidsetProtocol(String protocol) voidsetRealmId(String realmId) Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag, isUpdated, markUpdatedFlagMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.map.storage.jpa.JpaRootEntity
updateEntityVersionMethods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag, isUpdated, markUpdatedFlag
-
Constructor Details
-
JpaClientScopeEntity
public JpaClientScopeEntity()No-argument constructor, used by hibernate to instantiate entities. -
JpaClientScopeEntity
-
JpaClientScopeEntity
public JpaClientScopeEntity(UUID id, int version, Integer entityVersion, String realmId, String name) Used by hibernate when calling cb.construct from read(QueryParameters) method. It is used to select client without metadata(json) field.
-
-
Method Details
-
isMetadataInitialized
public boolean isMetadataInitialized() -
getEntityVersion
- Specified by:
getEntityVersionin interfaceJpaRootEntity- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
- Specified by:
setEntityVersionin interfaceJpaRootEntity- Parameters:
entityVersion- sets current supported version to JPA entity.
-
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
- Specified by:
getIdin interfaceAbstractEntity- Overrides:
getIdin classMapClientScopeEntity.AbstractClientScopeEntity
-
setId
- Specified by:
setIdin interfaceAbstractEntity- Overrides:
setIdin classMapClientScopeEntity.AbstractClientScopeEntity
-
getRealmId
- Specified by:
getRealmIdin interfaceMapClientScopeEntity
-
setRealmId
- Specified by:
setRealmIdin interfaceMapClientScopeEntity
-
getProtocolMappers
- Specified by:
getProtocolMappersin interfaceMapClientScopeEntity
-
getProtocolMapper
- Specified by:
getProtocolMapperin interfaceMapClientScopeEntity
-
addProtocolMapper
- Specified by:
addProtocolMapperin interfaceMapClientScopeEntity
-
removeProtocolMapper
- Specified by:
removeProtocolMapperin interfaceMapClientScopeEntity
-
addScopeMapping
- Specified by:
addScopeMappingin interfaceMapClientScopeEntity
-
removeScopeMapping
- Specified by:
removeScopeMappingin interfaceMapClientScopeEntity
-
getScopeMappings
- Specified by:
getScopeMappingsin interfaceMapClientScopeEntity
-
getDescription
- Specified by:
getDescriptionin interfaceMapClientScopeEntity
-
setDescription
- Specified by:
setDescriptionin interfaceMapClientScopeEntity
-
getName
- Specified by:
getNamein interfaceMapClientScopeEntity
-
setName
- Specified by:
setNamein interfaceMapClientScopeEntity
-
getProtocol
- Specified by:
getProtocolin interfaceMapClientScopeEntity
-
setProtocol
- Specified by:
setProtocolin interfaceMapClientScopeEntity
-
removeAttribute
- Specified by:
removeAttributein interfaceEntityWithAttributes
-
setAttribute
- Specified by:
setAttributein interfaceEntityWithAttributes
-
getAttribute
- Specified by:
getAttributein interfaceEntityWithAttributes
-
getAttributes
- Specified by:
getAttributesin interfaceEntityWithAttributes
-
setAttributes
- Specified by:
setAttributesin interfaceEntityWithAttributes
-
hashCode
public int hashCode() -
equals
-