Class JpaClientEntity
java.lang.Object
org.keycloak.models.map.common.UpdatableEntity.Impl
org.keycloak.models.map.client.MapClientEntity.AbstractClientEntity
org.keycloak.models.map.storage.jpa.client.entity.JpaClientEntity
- All Implemented Interfaces:
Serializable,MapClientEntity,AbstractEntity,EntityWithAttributes,UpdatableEntity,JpaRootEntity,JpaRootVersionedEntity
@Entity
public class JpaClientEntity
extends MapClientEntity.AbstractClientEntity
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.client.MapClientEntity
MapClientEntity.AbstractClientEntityNested 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.JpaClientEntity(UUID id, int version, Integer entityVersion, String realmId, String clientId, String protocol, Boolean enabled) Used by hibernate when calling cb.construct from read(QueryParameters) method.JpaClientEntity(DeepCloner cloner) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProtocolMapper(MapProtocolMapperEntity mapping) voidaddRedirectUri(String redirectUri) voidvoidaddWebOrigin(String webOrigin) booleangetAttribute(String name) getId()getName()getScope()intVersion of the JPA entity used for optimistic lockinginthashCode()booleanvoidremoveAttribute(String name) voidvoidvoidvoidremoveRedirectUri(String redirectUri) voidvoidremoveWebOrigin(String webOrigin) voidsetAlwaysDisplayInConsole(Boolean alwaysDisplayInConsole) voidsetAttribute(String name, List<String> values) voidsetAttributes(Map<String, List<String>> attributes) voidsetAuthenticationFlowBindingOverride(String binding, String flowId) voidsetBaseUrl(String baseUrl) voidsetBearerOnly(Boolean bearerOnly) voidsetClientAuthenticatorType(String clientAuthenticatorType) voidsetClientId(String clientId) voidsetClientScope(String id, Boolean defaultScope) voidsetConsentRequired(Boolean consentRequired) voidsetDescription(String description) voidsetDirectAccessGrantsEnabled(Boolean directAccessGrantsEnabled) voidsetEnabled(Boolean enabled) voidsetEntityVersion(Integer entityVersion) voidsetFrontchannelLogout(Boolean frontchannelLogout) voidsetFullScopeAllowed(Boolean fullScopeAllowed) voidvoidsetImplicitFlowEnabled(Boolean implicitFlowEnabled) voidsetManagementUrl(String managementUrl) voidvoidsetNodeReRegistrationTimeout(Integer nodeReRegistrationTimeout) voidsetNotBefore(Long notBefore) voidsetProtocol(String protocol) voidsetPublicClient(Boolean publicClient) voidsetRealmId(String realmId) voidsetRedirectUris(Set<String> redirectUris) voidsetRegistrationToken(String registrationToken) voidsetRootUrl(String rootUrl) voidvoidvoidsetServiceAccountsEnabled(Boolean serviceAccountsEnabled) voidsetStandardFlowEnabled(Boolean standardFlowEnabled) voidsetSurrogateAuthRequired(Boolean surrogateAuthRequired) voidsetWebOrigins(Set<String> webOrigins) Methods inherited from class org.keycloak.models.map.client.MapClientEntity.AbstractClientEntity
clearUpdatedFlag, getClientScopes, isUpdatedMethods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
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
markUpdatedFlag
-
Constructor Details
-
JpaClientEntity
public JpaClientEntity()No-argument constructor, used by hibernate to instantiate entities. -
JpaClientEntity
-
JpaClientEntity
public JpaClientEntity(UUID id, int version, Integer entityVersion, String realmId, String clientId, String protocol, Boolean enabled) 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 classMapClientEntity.AbstractClientEntity
-
setId
- Specified by:
setIdin interfaceAbstractEntity- Overrides:
setIdin classMapClientEntity.AbstractClientEntity
-
getRealmId
- Specified by:
getRealmIdin interfaceMapClientEntity
-
setRealmId
- Specified by:
setRealmIdin interfaceMapClientEntity
-
getClientId
- Specified by:
getClientIdin interfaceMapClientEntity
-
setClientId
- Specified by:
setClientIdin interfaceMapClientEntity
-
setEnabled
- Specified by:
setEnabledin interfaceMapClientEntity
-
isEnabled
- Specified by:
isEnabledin interfaceMapClientEntity
-
getClientScopes
- Specified by:
getClientScopesin interfaceMapClientEntity
-
setClientScope
- Specified by:
setClientScopein interfaceMapClientEntity
-
removeClientScope
- Specified by:
removeClientScopein interfaceMapClientEntity
-
getProtocolMappers
- Specified by:
getProtocolMappersin interfaceMapClientEntity
-
getProtocolMapper
- Specified by:
getProtocolMapperin interfaceMapClientEntity
-
addProtocolMapper
- Specified by:
addProtocolMapperin interfaceMapClientEntity
-
removeProtocolMapper
- Specified by:
removeProtocolMapperin interfaceMapClientEntity
-
addRedirectUri
- Specified by:
addRedirectUriin interfaceMapClientEntity
-
getRedirectUris
- Specified by:
getRedirectUrisin interfaceMapClientEntity
-
removeRedirectUri
- Specified by:
removeRedirectUriin interfaceMapClientEntity
-
setRedirectUris
- Specified by:
setRedirectUrisin interfaceMapClientEntity
-
addScopeMapping
- Specified by:
addScopeMappingin interfaceMapClientEntity
-
removeScopeMapping
- Specified by:
removeScopeMappingin interfaceMapClientEntity
-
getScopeMappings
- Specified by:
getScopeMappingsin interfaceMapClientEntity
-
addWebOrigin
- Specified by:
addWebOriginin interfaceMapClientEntity
-
getWebOrigins
- Specified by:
getWebOriginsin interfaceMapClientEntity
-
removeWebOrigin
- Specified by:
removeWebOriginin interfaceMapClientEntity
-
setWebOrigins
- Specified by:
setWebOriginsin interfaceMapClientEntity
-
getAuthenticationFlowBindingOverride
- Specified by:
getAuthenticationFlowBindingOverridein interfaceMapClientEntity
-
getAuthenticationFlowBindingOverrides
- Specified by:
getAuthenticationFlowBindingOverridesin interfaceMapClientEntity
-
removeAuthenticationFlowBindingOverride
- Specified by:
removeAuthenticationFlowBindingOverridein interfaceMapClientEntity
-
setAuthenticationFlowBindingOverride
- Specified by:
setAuthenticationFlowBindingOverridein interfaceMapClientEntity
-
getBaseUrl
- Specified by:
getBaseUrlin interfaceMapClientEntity
-
setBaseUrl
- Specified by:
setBaseUrlin interfaceMapClientEntity
-
getClientAuthenticatorType
- Specified by:
getClientAuthenticatorTypein interfaceMapClientEntity
-
setClientAuthenticatorType
- Specified by:
setClientAuthenticatorTypein interfaceMapClientEntity
-
getDescription
- Specified by:
getDescriptionin interfaceMapClientEntity
-
setDescription
- Specified by:
setDescriptionin interfaceMapClientEntity
-
getManagementUrl
- Specified by:
getManagementUrlin interfaceMapClientEntity
-
setManagementUrl
- Specified by:
setManagementUrlin interfaceMapClientEntity
-
getName
- Specified by:
getNamein interfaceMapClientEntity
-
setName
- Specified by:
setNamein interfaceMapClientEntity
-
getNodeReRegistrationTimeout
- Specified by:
getNodeReRegistrationTimeoutin interfaceMapClientEntity
-
setNodeReRegistrationTimeout
- Specified by:
setNodeReRegistrationTimeoutin interfaceMapClientEntity
-
getNotBefore
- Specified by:
getNotBeforein interfaceMapClientEntity
-
setNotBefore
- Specified by:
setNotBeforein interfaceMapClientEntity
-
getProtocol
- Specified by:
getProtocolin interfaceMapClientEntity
-
setProtocol
- Specified by:
setProtocolin interfaceMapClientEntity
-
getRegistrationToken
- Specified by:
getRegistrationTokenin interfaceMapClientEntity
-
setRegistrationToken
- Specified by:
setRegistrationTokenin interfaceMapClientEntity
-
getRootUrl
- Specified by:
getRootUrlin interfaceMapClientEntity
-
setRootUrl
- Specified by:
setRootUrlin interfaceMapClientEntity
-
getScope
- Specified by:
getScopein interfaceMapClientEntity
-
setScope
- Specified by:
setScopein interfaceMapClientEntity
-
getSecret
- Specified by:
getSecretin interfaceMapClientEntity
-
setSecret
- Specified by:
setSecretin interfaceMapClientEntity
-
isAlwaysDisplayInConsole
- Specified by:
isAlwaysDisplayInConsolein interfaceMapClientEntity
-
setAlwaysDisplayInConsole
- Specified by:
setAlwaysDisplayInConsolein interfaceMapClientEntity
-
isBearerOnly
- Specified by:
isBearerOnlyin interfaceMapClientEntity
-
setBearerOnly
- Specified by:
setBearerOnlyin interfaceMapClientEntity
-
isConsentRequired
- Specified by:
isConsentRequiredin interfaceMapClientEntity
-
setConsentRequired
- Specified by:
setConsentRequiredin interfaceMapClientEntity
-
isDirectAccessGrantsEnabled
- Specified by:
isDirectAccessGrantsEnabledin interfaceMapClientEntity
-
setDirectAccessGrantsEnabled
- Specified by:
setDirectAccessGrantsEnabledin interfaceMapClientEntity
-
isFrontchannelLogout
- Specified by:
isFrontchannelLogoutin interfaceMapClientEntity
-
setFrontchannelLogout
- Specified by:
setFrontchannelLogoutin interfaceMapClientEntity
-
isFullScopeAllowed
- Specified by:
isFullScopeAllowedin interfaceMapClientEntity
-
setFullScopeAllowed
- Specified by:
setFullScopeAllowedin interfaceMapClientEntity
-
isImplicitFlowEnabled
- Specified by:
isImplicitFlowEnabledin interfaceMapClientEntity
-
setImplicitFlowEnabled
- Specified by:
setImplicitFlowEnabledin interfaceMapClientEntity
-
isPublicClient
- Specified by:
isPublicClientin interfaceMapClientEntity
-
setPublicClient
- Specified by:
setPublicClientin interfaceMapClientEntity
-
isServiceAccountsEnabled
- Specified by:
isServiceAccountsEnabledin interfaceMapClientEntity
-
setServiceAccountsEnabled
- Specified by:
setServiceAccountsEnabledin interfaceMapClientEntity
-
isStandardFlowEnabled
- Specified by:
isStandardFlowEnabledin interfaceMapClientEntity
-
setStandardFlowEnabled
- Specified by:
setStandardFlowEnabledin interfaceMapClientEntity
-
isSurrogateAuthRequired
- Specified by:
isSurrogateAuthRequiredin interfaceMapClientEntity
-
setSurrogateAuthRequired
- Specified by:
setSurrogateAuthRequiredin interfaceMapClientEntity
-
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
-