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