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.AbstractClientEntity
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
ConstructorDescriptionNo-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 TypeMethodDescriptionvoid
addProtocolMapper
(MapProtocolMapperEntity mapping) void
addRedirectUri
(String redirectUri) void
void
addWebOrigin
(String webOrigin) boolean
getAttribute
(String name) getId()
getName()
getScope()
int
Version of the JPA entity used for optimistic lockingint
hashCode()
boolean
void
removeAttribute
(String name) void
void
void
void
removeRedirectUri
(String redirectUri) void
void
removeWebOrigin
(String webOrigin) void
setAlwaysDisplayInConsole
(Boolean alwaysDisplayInConsole) void
setAttribute
(String name, List<String> values) void
setAttributes
(Map<String, List<String>> attributes) void
setAuthenticationFlowBindingOverride
(String binding, String flowId) void
setBaseUrl
(String baseUrl) void
setBearerOnly
(Boolean bearerOnly) void
setClientAuthenticatorType
(String clientAuthenticatorType) void
setClientId
(String clientId) void
setClientScope
(String id, Boolean defaultScope) void
setConsentRequired
(Boolean consentRequired) void
setDescription
(String description) void
setDirectAccessGrantsEnabled
(Boolean directAccessGrantsEnabled) void
setEnabled
(Boolean enabled) void
setEntityVersion
(Integer entityVersion) void
setFrontchannelLogout
(Boolean frontchannelLogout) void
setFullScopeAllowed
(Boolean fullScopeAllowed) void
void
setImplicitFlowEnabled
(Boolean implicitFlowEnabled) void
setManagementUrl
(String managementUrl) void
void
setNodeReRegistrationTimeout
(Integer nodeReRegistrationTimeout) void
setNotBefore
(Long notBefore) void
setProtocol
(String protocol) void
setPublicClient
(Boolean publicClient) void
setRealmId
(String realmId) void
setRedirectUris
(Set<String> redirectUris) void
setRegistrationToken
(String registrationToken) void
setRootUrl
(String rootUrl) void
void
void
setServiceAccountsEnabled
(Boolean serviceAccountsEnabled) void
setStandardFlowEnabled
(Boolean standardFlowEnabled) void
setSurrogateAuthRequired
(Boolean surrogateAuthRequired) void
setWebOrigins
(Set<String> webOrigins) Methods inherited from class org.keycloak.models.map.client.MapClientEntity.AbstractClientEntity
clearUpdatedFlag, getClientScopes, isUpdated
Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
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
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:
getEntityVersion
in interfaceJpaRootEntity
- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
- Specified by:
setEntityVersion
in interfaceJpaRootEntity
- Parameters:
entityVersion
- sets current supported version to JPA entity.
-
getCurrentSchemaVersion
- Specified by:
getCurrentSchemaVersion
in interfaceJpaRootEntity
-
getVersion
public int getVersion()Description copied from interface:JpaRootVersionedEntity
Version of the JPA entity used for optimistic locking- Specified by:
getVersion
in interfaceJpaRootVersionedEntity
-
getId
- Specified by:
getId
in interfaceAbstractEntity
- Overrides:
getId
in classMapClientEntity.AbstractClientEntity
-
setId
- Specified by:
setId
in interfaceAbstractEntity
- Overrides:
setId
in classMapClientEntity.AbstractClientEntity
-
getRealmId
- Specified by:
getRealmId
in interfaceMapClientEntity
-
setRealmId
- Specified by:
setRealmId
in interfaceMapClientEntity
-
getClientId
- Specified by:
getClientId
in interfaceMapClientEntity
-
setClientId
- Specified by:
setClientId
in interfaceMapClientEntity
-
setEnabled
- Specified by:
setEnabled
in interfaceMapClientEntity
-
isEnabled
- Specified by:
isEnabled
in interfaceMapClientEntity
-
getClientScopes
- Specified by:
getClientScopes
in interfaceMapClientEntity
-
setClientScope
- Specified by:
setClientScope
in interfaceMapClientEntity
-
removeClientScope
- Specified by:
removeClientScope
in interfaceMapClientEntity
-
getProtocolMappers
- Specified by:
getProtocolMappers
in interfaceMapClientEntity
-
getProtocolMapper
- Specified by:
getProtocolMapper
in interfaceMapClientEntity
-
addProtocolMapper
- Specified by:
addProtocolMapper
in interfaceMapClientEntity
-
removeProtocolMapper
- Specified by:
removeProtocolMapper
in interfaceMapClientEntity
-
addRedirectUri
- Specified by:
addRedirectUri
in interfaceMapClientEntity
-
getRedirectUris
- Specified by:
getRedirectUris
in interfaceMapClientEntity
-
removeRedirectUri
- Specified by:
removeRedirectUri
in interfaceMapClientEntity
-
setRedirectUris
- Specified by:
setRedirectUris
in interfaceMapClientEntity
-
addScopeMapping
- Specified by:
addScopeMapping
in interfaceMapClientEntity
-
removeScopeMapping
- Specified by:
removeScopeMapping
in interfaceMapClientEntity
-
getScopeMappings
- Specified by:
getScopeMappings
in interfaceMapClientEntity
-
addWebOrigin
- Specified by:
addWebOrigin
in interfaceMapClientEntity
-
getWebOrigins
- Specified by:
getWebOrigins
in interfaceMapClientEntity
-
removeWebOrigin
- Specified by:
removeWebOrigin
in interfaceMapClientEntity
-
setWebOrigins
- Specified by:
setWebOrigins
in interfaceMapClientEntity
-
getAuthenticationFlowBindingOverride
- Specified by:
getAuthenticationFlowBindingOverride
in interfaceMapClientEntity
-
getAuthenticationFlowBindingOverrides
- Specified by:
getAuthenticationFlowBindingOverrides
in interfaceMapClientEntity
-
removeAuthenticationFlowBindingOverride
- Specified by:
removeAuthenticationFlowBindingOverride
in interfaceMapClientEntity
-
setAuthenticationFlowBindingOverride
- Specified by:
setAuthenticationFlowBindingOverride
in interfaceMapClientEntity
-
getBaseUrl
- Specified by:
getBaseUrl
in interfaceMapClientEntity
-
setBaseUrl
- Specified by:
setBaseUrl
in interfaceMapClientEntity
-
getClientAuthenticatorType
- Specified by:
getClientAuthenticatorType
in interfaceMapClientEntity
-
setClientAuthenticatorType
- Specified by:
setClientAuthenticatorType
in interfaceMapClientEntity
-
getDescription
- Specified by:
getDescription
in interfaceMapClientEntity
-
setDescription
- Specified by:
setDescription
in interfaceMapClientEntity
-
getManagementUrl
- Specified by:
getManagementUrl
in interfaceMapClientEntity
-
setManagementUrl
- Specified by:
setManagementUrl
in interfaceMapClientEntity
-
getName
- Specified by:
getName
in interfaceMapClientEntity
-
setName
- Specified by:
setName
in interfaceMapClientEntity
-
getNodeReRegistrationTimeout
- Specified by:
getNodeReRegistrationTimeout
in interfaceMapClientEntity
-
setNodeReRegistrationTimeout
- Specified by:
setNodeReRegistrationTimeout
in interfaceMapClientEntity
-
getNotBefore
- Specified by:
getNotBefore
in interfaceMapClientEntity
-
setNotBefore
- Specified by:
setNotBefore
in interfaceMapClientEntity
-
getProtocol
- Specified by:
getProtocol
in interfaceMapClientEntity
-
setProtocol
- Specified by:
setProtocol
in interfaceMapClientEntity
-
getRegistrationToken
- Specified by:
getRegistrationToken
in interfaceMapClientEntity
-
setRegistrationToken
- Specified by:
setRegistrationToken
in interfaceMapClientEntity
-
getRootUrl
- Specified by:
getRootUrl
in interfaceMapClientEntity
-
setRootUrl
- Specified by:
setRootUrl
in interfaceMapClientEntity
-
getScope
- Specified by:
getScope
in interfaceMapClientEntity
-
setScope
- Specified by:
setScope
in interfaceMapClientEntity
-
getSecret
- Specified by:
getSecret
in interfaceMapClientEntity
-
setSecret
- Specified by:
setSecret
in interfaceMapClientEntity
-
isAlwaysDisplayInConsole
- Specified by:
isAlwaysDisplayInConsole
in interfaceMapClientEntity
-
setAlwaysDisplayInConsole
- Specified by:
setAlwaysDisplayInConsole
in interfaceMapClientEntity
-
isBearerOnly
- Specified by:
isBearerOnly
in interfaceMapClientEntity
-
setBearerOnly
- Specified by:
setBearerOnly
in interfaceMapClientEntity
-
isConsentRequired
- Specified by:
isConsentRequired
in interfaceMapClientEntity
-
setConsentRequired
- Specified by:
setConsentRequired
in interfaceMapClientEntity
-
isDirectAccessGrantsEnabled
- Specified by:
isDirectAccessGrantsEnabled
in interfaceMapClientEntity
-
setDirectAccessGrantsEnabled
- Specified by:
setDirectAccessGrantsEnabled
in interfaceMapClientEntity
-
isFrontchannelLogout
- Specified by:
isFrontchannelLogout
in interfaceMapClientEntity
-
setFrontchannelLogout
- Specified by:
setFrontchannelLogout
in interfaceMapClientEntity
-
isFullScopeAllowed
- Specified by:
isFullScopeAllowed
in interfaceMapClientEntity
-
setFullScopeAllowed
- Specified by:
setFullScopeAllowed
in interfaceMapClientEntity
-
isImplicitFlowEnabled
- Specified by:
isImplicitFlowEnabled
in interfaceMapClientEntity
-
setImplicitFlowEnabled
- Specified by:
setImplicitFlowEnabled
in interfaceMapClientEntity
-
isPublicClient
- Specified by:
isPublicClient
in interfaceMapClientEntity
-
setPublicClient
- Specified by:
setPublicClient
in interfaceMapClientEntity
-
isServiceAccountsEnabled
- Specified by:
isServiceAccountsEnabled
in interfaceMapClientEntity
-
setServiceAccountsEnabled
- Specified by:
setServiceAccountsEnabled
in interfaceMapClientEntity
-
isStandardFlowEnabled
- Specified by:
isStandardFlowEnabled
in interfaceMapClientEntity
-
setStandardFlowEnabled
- Specified by:
setStandardFlowEnabled
in interfaceMapClientEntity
-
isSurrogateAuthRequired
- Specified by:
isSurrogateAuthRequired
in interfaceMapClientEntity
-
setSurrogateAuthRequired
- Specified by:
setSurrogateAuthRequired
in interfaceMapClientEntity
-
removeAttribute
- Specified by:
removeAttribute
in interfaceEntityWithAttributes
-
setAttribute
- Specified by:
setAttribute
in interfaceEntityWithAttributes
-
getAttribute
- Specified by:
getAttribute
in interfaceEntityWithAttributes
-
getAttributes
- Specified by:
getAttributes
in interfaceEntityWithAttributes
-
setAttributes
- Specified by:
setAttributes
in interfaceEntityWithAttributes
-
hashCode
public int hashCode() -
equals
-