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:
getEntityVersionin interfaceJpaRootEntity- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
public void setEntityVersion(Integer entityVersion)
- Specified by:
setEntityVersionin interfaceJpaRootEntity- Parameters:
entityVersion- sets current supported version to JPA entity.
-
getCurrentSchemaVersion
public Integer 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
public String getId()
- Specified by:
getIdin interfaceAbstractEntity- Overrides:
getIdin classMapClientEntity.AbstractClientEntity
-
setId
public void setId(String id)
- Specified by:
setIdin interfaceAbstractEntity- Overrides:
setIdin classMapClientEntity.AbstractClientEntity
-
getRealmId
public String getRealmId()
- Specified by:
getRealmIdin interfaceMapClientEntity
-
setRealmId
public void setRealmId(String realmId)
- Specified by:
setRealmIdin interfaceMapClientEntity
-
getClientId
public String getClientId()
- Specified by:
getClientIdin interfaceMapClientEntity
-
setClientId
public void setClientId(String clientId)
- Specified by:
setClientIdin interfaceMapClientEntity
-
setEnabled
public void setEnabled(Boolean enabled)
- Specified by:
setEnabledin interfaceMapClientEntity
-
isEnabled
public Boolean isEnabled()
- Specified by:
isEnabledin interfaceMapClientEntity
-
getClientScopes
public Map<String,Boolean> getClientScopes()
- Specified by:
getClientScopesin interfaceMapClientEntity
-
setClientScope
public void setClientScope(String id, Boolean defaultScope)
- Specified by:
setClientScopein interfaceMapClientEntity
-
removeClientScope
public void removeClientScope(String id)
- Specified by:
removeClientScopein interfaceMapClientEntity
-
getProtocolMappers
public Set<MapProtocolMapperEntity> getProtocolMappers()
- Specified by:
getProtocolMappersin interfaceMapClientEntity
-
getProtocolMapper
public Optional<MapProtocolMapperEntity> getProtocolMapper(String id)
- Specified by:
getProtocolMapperin interfaceMapClientEntity
-
addProtocolMapper
public void addProtocolMapper(MapProtocolMapperEntity mapping)
- Specified by:
addProtocolMapperin interfaceMapClientEntity
-
removeProtocolMapper
public void removeProtocolMapper(String id)
- Specified by:
removeProtocolMapperin interfaceMapClientEntity
-
addRedirectUri
public void addRedirectUri(String redirectUri)
- Specified by:
addRedirectUriin interfaceMapClientEntity
-
getRedirectUris
public Set<String> getRedirectUris()
- Specified by:
getRedirectUrisin interfaceMapClientEntity
-
removeRedirectUri
public void removeRedirectUri(String redirectUri)
- Specified by:
removeRedirectUriin interfaceMapClientEntity
-
setRedirectUris
public void setRedirectUris(Set<String> redirectUris)
- Specified by:
setRedirectUrisin interfaceMapClientEntity
-
addScopeMapping
public void addScopeMapping(String id)
- Specified by:
addScopeMappingin interfaceMapClientEntity
-
removeScopeMapping
public void removeScopeMapping(String id)
- Specified by:
removeScopeMappingin interfaceMapClientEntity
-
getScopeMappings
public Collection<String> getScopeMappings()
- Specified by:
getScopeMappingsin interfaceMapClientEntity
-
addWebOrigin
public void addWebOrigin(String webOrigin)
- Specified by:
addWebOriginin interfaceMapClientEntity
-
getWebOrigins
public Set<String> getWebOrigins()
- Specified by:
getWebOriginsin interfaceMapClientEntity
-
removeWebOrigin
public void removeWebOrigin(String webOrigin)
- Specified by:
removeWebOriginin interfaceMapClientEntity
-
setWebOrigins
public void setWebOrigins(Set<String> webOrigins)
- Specified by:
setWebOriginsin interfaceMapClientEntity
-
getAuthenticationFlowBindingOverride
public String getAuthenticationFlowBindingOverride(String binding)
- Specified by:
getAuthenticationFlowBindingOverridein interfaceMapClientEntity
-
getAuthenticationFlowBindingOverrides
public Map<String,String> getAuthenticationFlowBindingOverrides()
- Specified by:
getAuthenticationFlowBindingOverridesin interfaceMapClientEntity
-
removeAuthenticationFlowBindingOverride
public void removeAuthenticationFlowBindingOverride(String binding)
- Specified by:
removeAuthenticationFlowBindingOverridein interfaceMapClientEntity
-
setAuthenticationFlowBindingOverride
public void setAuthenticationFlowBindingOverride(String binding, String flowId)
- Specified by:
setAuthenticationFlowBindingOverridein interfaceMapClientEntity
-
getBaseUrl
public String getBaseUrl()
- Specified by:
getBaseUrlin interfaceMapClientEntity
-
setBaseUrl
public void setBaseUrl(String baseUrl)
- Specified by:
setBaseUrlin interfaceMapClientEntity
-
getClientAuthenticatorType
public String getClientAuthenticatorType()
- Specified by:
getClientAuthenticatorTypein interfaceMapClientEntity
-
setClientAuthenticatorType
public void setClientAuthenticatorType(String clientAuthenticatorType)
- Specified by:
setClientAuthenticatorTypein interfaceMapClientEntity
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceMapClientEntity
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceMapClientEntity
-
getManagementUrl
public String getManagementUrl()
- Specified by:
getManagementUrlin interfaceMapClientEntity
-
setManagementUrl
public void setManagementUrl(String managementUrl)
- Specified by:
setManagementUrlin interfaceMapClientEntity
-
getName
public String getName()
- Specified by:
getNamein interfaceMapClientEntity
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceMapClientEntity
-
getNodeReRegistrationTimeout
public Integer getNodeReRegistrationTimeout()
- Specified by:
getNodeReRegistrationTimeoutin interfaceMapClientEntity
-
setNodeReRegistrationTimeout
public void setNodeReRegistrationTimeout(Integer nodeReRegistrationTimeout)
- Specified by:
setNodeReRegistrationTimeoutin interfaceMapClientEntity
-
getNotBefore
public Long getNotBefore()
- Specified by:
getNotBeforein interfaceMapClientEntity
-
setNotBefore
public void setNotBefore(Long notBefore)
- Specified by:
setNotBeforein interfaceMapClientEntity
-
getProtocol
public String getProtocol()
- Specified by:
getProtocolin interfaceMapClientEntity
-
setProtocol
public void setProtocol(String protocol)
- Specified by:
setProtocolin interfaceMapClientEntity
-
getRegistrationToken
public String getRegistrationToken()
- Specified by:
getRegistrationTokenin interfaceMapClientEntity
-
setRegistrationToken
public void setRegistrationToken(String registrationToken)
- Specified by:
setRegistrationTokenin interfaceMapClientEntity
-
getRootUrl
public String getRootUrl()
- Specified by:
getRootUrlin interfaceMapClientEntity
-
setRootUrl
public void setRootUrl(String rootUrl)
- Specified by:
setRootUrlin interfaceMapClientEntity
-
getScope
public Set<String> getScope()
- Specified by:
getScopein interfaceMapClientEntity
-
setScope
public void setScope(Set<String> scope)
- Specified by:
setScopein interfaceMapClientEntity
-
getSecret
public String getSecret()
- Specified by:
getSecretin interfaceMapClientEntity
-
setSecret
public void setSecret(String secret)
- Specified by:
setSecretin interfaceMapClientEntity
-
isAlwaysDisplayInConsole
public Boolean isAlwaysDisplayInConsole()
- Specified by:
isAlwaysDisplayInConsolein interfaceMapClientEntity
-
setAlwaysDisplayInConsole
public void setAlwaysDisplayInConsole(Boolean alwaysDisplayInConsole)
- Specified by:
setAlwaysDisplayInConsolein interfaceMapClientEntity
-
isBearerOnly
public Boolean isBearerOnly()
- Specified by:
isBearerOnlyin interfaceMapClientEntity
-
setBearerOnly
public void setBearerOnly(Boolean bearerOnly)
- Specified by:
setBearerOnlyin interfaceMapClientEntity
-
isConsentRequired
public Boolean isConsentRequired()
- Specified by:
isConsentRequiredin interfaceMapClientEntity
-
setConsentRequired
public void setConsentRequired(Boolean consentRequired)
- Specified by:
setConsentRequiredin interfaceMapClientEntity
-
isDirectAccessGrantsEnabled
public Boolean isDirectAccessGrantsEnabled()
- Specified by:
isDirectAccessGrantsEnabledin interfaceMapClientEntity
-
setDirectAccessGrantsEnabled
public void setDirectAccessGrantsEnabled(Boolean directAccessGrantsEnabled)
- Specified by:
setDirectAccessGrantsEnabledin interfaceMapClientEntity
-
isFrontchannelLogout
public Boolean isFrontchannelLogout()
- Specified by:
isFrontchannelLogoutin interfaceMapClientEntity
-
setFrontchannelLogout
public void setFrontchannelLogout(Boolean frontchannelLogout)
- Specified by:
setFrontchannelLogoutin interfaceMapClientEntity
-
isFullScopeAllowed
public Boolean isFullScopeAllowed()
- Specified by:
isFullScopeAllowedin interfaceMapClientEntity
-
setFullScopeAllowed
public void setFullScopeAllowed(Boolean fullScopeAllowed)
- Specified by:
setFullScopeAllowedin interfaceMapClientEntity
-
isImplicitFlowEnabled
public Boolean isImplicitFlowEnabled()
- Specified by:
isImplicitFlowEnabledin interfaceMapClientEntity
-
setImplicitFlowEnabled
public void setImplicitFlowEnabled(Boolean implicitFlowEnabled)
- Specified by:
setImplicitFlowEnabledin interfaceMapClientEntity
-
isPublicClient
public Boolean isPublicClient()
- Specified by:
isPublicClientin interfaceMapClientEntity
-
setPublicClient
public void setPublicClient(Boolean publicClient)
- Specified by:
setPublicClientin interfaceMapClientEntity
-
isServiceAccountsEnabled
public Boolean isServiceAccountsEnabled()
- Specified by:
isServiceAccountsEnabledin interfaceMapClientEntity
-
setServiceAccountsEnabled
public void setServiceAccountsEnabled(Boolean serviceAccountsEnabled)
- Specified by:
setServiceAccountsEnabledin interfaceMapClientEntity
-
isStandardFlowEnabled
public Boolean isStandardFlowEnabled()
- Specified by:
isStandardFlowEnabledin interfaceMapClientEntity
-
setStandardFlowEnabled
public void setStandardFlowEnabled(Boolean standardFlowEnabled)
- Specified by:
setStandardFlowEnabledin interfaceMapClientEntity
-
isSurrogateAuthRequired
public Boolean isSurrogateAuthRequired()
- Specified by:
isSurrogateAuthRequiredin interfaceMapClientEntity
-
setSurrogateAuthRequired
public void setSurrogateAuthRequired(Boolean surrogateAuthRequired)
- Specified by:
setSurrogateAuthRequiredin interfaceMapClientEntity
-
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttributein interfaceEntityWithAttributes
-
setAttribute
public void setAttribute(String name, List<String> values)
- Specified by:
setAttributein interfaceEntityWithAttributes
-
getAttribute
public List<String> getAttribute(String name)
- Specified by:
getAttributein interfaceEntityWithAttributes
-
getAttributes
public Map<String,List<String>> getAttributes()
- Specified by:
getAttributesin interfaceEntityWithAttributes
-
setAttributes
public void setAttributes(Map<String,List<String>> attributes)
- Specified by:
setAttributesin interfaceEntityWithAttributes
-
-