Class RealmAdapter
- java.lang.Object
-
- org.keycloak.models.cache.infinispan.RealmAdapter
-
- All Implemented Interfaces:
CachedRealmModel,LegacyRealmModel,RealmModel,RoleContainerModel
public class RealmAdapter extends Object implements CachedRealmModel
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.cache.CachedRealmModel
CachedRealmModel.RealmCachedEvent
-
Nested classes/interfaces inherited from interface org.keycloak.models.RealmModel
RealmModel.IdentityProviderRemovedEvent, RealmModel.IdentityProviderUpdatedEvent, RealmModel.RealmCreationEvent, RealmModel.RealmPostCreateEvent, RealmModel.RealmRemovedEvent, RealmModel.SearchableFields
-
Nested classes/interfaces inherited from interface org.keycloak.models.RoleContainerModel
RoleContainerModel.RoleRemovedEvent
-
-
Field Summary
Fields Modifier and Type Field Description protected CachedRealmcachedprotected RealmCacheSessioncacheSessionprotected booleaninvalidatedprotected KeycloakSessionsessionprotected RealmModelupdated-
Fields inherited from interface org.keycloak.models.RealmModel
COMPARE_BY_NAME
-
-
Constructor Summary
Constructors Constructor Description RealmAdapter(KeycloakSession session, CachedRealm cached, RealmCacheSession cacheSession)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.LegacyRealmModel
getClientStorageProviders, getClientStorageProvidersStream, getRoleStorageProviders, getRoleStorageProvidersStream, getUserStorageProviders, getUserStorageProvidersStream
-
Methods inherited from interface org.keycloak.models.RealmModel
createGroup, createGroup, createGroup, getAlwaysDisplayInConsoleClients, getAuthenticationExecutions, getAuthenticationFlows, getAuthenticatorConfigs, getClients, getClients, getClientScopes, getComponents, getComponents, getComponents, getDefaultClientScopes, getDefaultGroups, getEnabledEventTypes, getEventsListeners, getGroups, getIdentityProviderMappers, getIdentityProviderMappersByAlias, getIdentityProviders, getRequiredActionProviders, getStorageProviders, getSupportedLocales, getTopLevelGroups, getTopLevelGroups, searchClientByClientId, searchForGroupByName
-
Methods inherited from interface org.keycloak.models.RoleContainerModel
getDefaultRoles, getRoles, getRoles, searchForRoles, updateDefaultRoles
-
-
-
-
Field Detail
-
cached
protected CachedRealm cached
-
cacheSession
protected RealmCacheSession cacheSession
-
updated
protected volatile RealmModel updated
-
session
protected KeycloakSession session
-
invalidated
protected volatile boolean invalidated
-
-
Constructor Detail
-
RealmAdapter
public RealmAdapter(KeycloakSession session, CachedRealm cached, RealmCacheSession cacheSession)
-
-
Method Detail
-
getDelegateForUpdate
public RealmModel getDelegateForUpdate()
- Specified by:
getDelegateForUpdatein interfaceCachedRealmModel
-
invalidateFlag
protected void invalidateFlag()
-
invalidate
public void invalidate()
- Specified by:
invalidatein interfaceCachedRealmModel
-
getCacheTimestamp
public long getCacheTimestamp()
- Specified by:
getCacheTimestampin interfaceCachedRealmModel
-
getCachedWith
public ConcurrentHashMap getCachedWith()
- Specified by:
getCachedWithin interfaceCachedRealmModel
-
isUpdated
protected boolean isUpdated()
-
getId
public String getId()
- Specified by:
getIdin interfaceRealmModel- Specified by:
getIdin interfaceRoleContainerModel
-
getName
public String getName()
- Specified by:
getNamein interfaceRealmModel
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceRealmModel
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceRealmModel
-
setDisplayName
public void setDisplayName(String displayName)
- Specified by:
setDisplayNamein interfaceRealmModel
-
getDisplayNameHtml
public String getDisplayNameHtml()
- Specified by:
getDisplayNameHtmlin interfaceRealmModel
-
setDisplayNameHtml
public void setDisplayNameHtml(String displayNameHtml)
- Specified by:
setDisplayNameHtmlin interfaceRealmModel
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceRealmModel
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfaceRealmModel
-
isUserManagedAccessAllowed
public boolean isUserManagedAccessAllowed()
- Specified by:
isUserManagedAccessAllowedin interfaceRealmModel
-
setUserManagedAccessAllowed
public void setUserManagedAccessAllowed(boolean userManagedAccessAllowed)
- Specified by:
setUserManagedAccessAllowedin interfaceRealmModel
-
getSslRequired
public org.keycloak.common.enums.SslRequired getSslRequired()
- Specified by:
getSslRequiredin interfaceRealmModel
-
setSslRequired
public void setSslRequired(org.keycloak.common.enums.SslRequired sslRequired)
- Specified by:
setSslRequiredin interfaceRealmModel
-
isRegistrationAllowed
public boolean isRegistrationAllowed()
- Specified by:
isRegistrationAllowedin interfaceRealmModel
-
setRegistrationAllowed
public void setRegistrationAllowed(boolean registrationAllowed)
- Specified by:
setRegistrationAllowedin interfaceRealmModel
-
isRegistrationEmailAsUsername
public boolean isRegistrationEmailAsUsername()
- Specified by:
isRegistrationEmailAsUsernamein interfaceRealmModel
-
setRegistrationEmailAsUsername
public void setRegistrationEmailAsUsername(boolean registrationEmailAsUsername)
- Specified by:
setRegistrationEmailAsUsernamein interfaceRealmModel
-
isRememberMe
public boolean isRememberMe()
- Specified by:
isRememberMein interfaceRealmModel
-
setRememberMe
public void setRememberMe(boolean rememberMe)
- Specified by:
setRememberMein interfaceRealmModel
-
getDefaultSignatureAlgorithm
public String getDefaultSignatureAlgorithm()
- Specified by:
getDefaultSignatureAlgorithmin interfaceRealmModel
-
setDefaultSignatureAlgorithm
public void setDefaultSignatureAlgorithm(String defaultSignatureAlgorithm)
- Specified by:
setDefaultSignatureAlgorithmin interfaceRealmModel
-
isBruteForceProtected
public boolean isBruteForceProtected()
- Specified by:
isBruteForceProtectedin interfaceRealmModel
-
setBruteForceProtected
public void setBruteForceProtected(boolean value)
- Specified by:
setBruteForceProtectedin interfaceRealmModel
-
isPermanentLockout
public boolean isPermanentLockout()
- Specified by:
isPermanentLockoutin interfaceRealmModel
-
setPermanentLockout
public void setPermanentLockout(boolean val)
- Specified by:
setPermanentLockoutin interfaceRealmModel
-
getMaxFailureWaitSeconds
public int getMaxFailureWaitSeconds()
- Specified by:
getMaxFailureWaitSecondsin interfaceRealmModel
-
setMaxFailureWaitSeconds
public void setMaxFailureWaitSeconds(int val)
- Specified by:
setMaxFailureWaitSecondsin interfaceRealmModel
-
getWaitIncrementSeconds
public int getWaitIncrementSeconds()
- Specified by:
getWaitIncrementSecondsin interfaceRealmModel
-
setWaitIncrementSeconds
public void setWaitIncrementSeconds(int val)
- Specified by:
setWaitIncrementSecondsin interfaceRealmModel
-
getMinimumQuickLoginWaitSeconds
public int getMinimumQuickLoginWaitSeconds()
- Specified by:
getMinimumQuickLoginWaitSecondsin interfaceRealmModel
-
setMinimumQuickLoginWaitSeconds
public void setMinimumQuickLoginWaitSeconds(int val)
- Specified by:
setMinimumQuickLoginWaitSecondsin interfaceRealmModel
-
getQuickLoginCheckMilliSeconds
public long getQuickLoginCheckMilliSeconds()
- Specified by:
getQuickLoginCheckMilliSecondsin interfaceRealmModel
-
setQuickLoginCheckMilliSeconds
public void setQuickLoginCheckMilliSeconds(long val)
- Specified by:
setQuickLoginCheckMilliSecondsin interfaceRealmModel
-
getMaxDeltaTimeSeconds
public int getMaxDeltaTimeSeconds()
- Specified by:
getMaxDeltaTimeSecondsin interfaceRealmModel
-
setMaxDeltaTimeSeconds
public void setMaxDeltaTimeSeconds(int val)
- Specified by:
setMaxDeltaTimeSecondsin interfaceRealmModel
-
getFailureFactor
public int getFailureFactor()
- Specified by:
getFailureFactorin interfaceRealmModel
-
setFailureFactor
public void setFailureFactor(int failureFactor)
- Specified by:
setFailureFactorin interfaceRealmModel
-
isVerifyEmail
public boolean isVerifyEmail()
- Specified by:
isVerifyEmailin interfaceRealmModel
-
setVerifyEmail
public void setVerifyEmail(boolean verifyEmail)
- Specified by:
setVerifyEmailin interfaceRealmModel
-
isLoginWithEmailAllowed
public boolean isLoginWithEmailAllowed()
- Specified by:
isLoginWithEmailAllowedin interfaceRealmModel
-
setLoginWithEmailAllowed
public void setLoginWithEmailAllowed(boolean loginWithEmailAllowed)
- Specified by:
setLoginWithEmailAllowedin interfaceRealmModel
-
isDuplicateEmailsAllowed
public boolean isDuplicateEmailsAllowed()
- Specified by:
isDuplicateEmailsAllowedin interfaceRealmModel
-
setDuplicateEmailsAllowed
public void setDuplicateEmailsAllowed(boolean duplicateEmailsAllowed)
- Specified by:
setDuplicateEmailsAllowedin interfaceRealmModel
-
isResetPasswordAllowed
public boolean isResetPasswordAllowed()
- Specified by:
isResetPasswordAllowedin interfaceRealmModel
-
setResetPasswordAllowed
public void setResetPasswordAllowed(boolean resetPasswordAllowed)
- Specified by:
setResetPasswordAllowedin interfaceRealmModel
-
isEditUsernameAllowed
public boolean isEditUsernameAllowed()
- Specified by:
isEditUsernameAllowedin interfaceRealmModel
-
setEditUsernameAllowed
public void setEditUsernameAllowed(boolean editUsernameAllowed)
- Specified by:
setEditUsernameAllowedin interfaceRealmModel
-
isRevokeRefreshToken
public boolean isRevokeRefreshToken()
- Specified by:
isRevokeRefreshTokenin interfaceRealmModel
-
setRevokeRefreshToken
public void setRevokeRefreshToken(boolean revokeRefreshToken)
- Specified by:
setRevokeRefreshTokenin interfaceRealmModel
-
getRefreshTokenMaxReuse
public int getRefreshTokenMaxReuse()
- Specified by:
getRefreshTokenMaxReusein interfaceRealmModel
-
setRefreshTokenMaxReuse
public void setRefreshTokenMaxReuse(int refreshTokenMaxReuse)
- Specified by:
setRefreshTokenMaxReusein interfaceRealmModel
-
getSsoSessionIdleTimeout
public int getSsoSessionIdleTimeout()
- Specified by:
getSsoSessionIdleTimeoutin interfaceRealmModel
-
setSsoSessionIdleTimeout
public void setSsoSessionIdleTimeout(int seconds)
- Specified by:
setSsoSessionIdleTimeoutin interfaceRealmModel
-
getSsoSessionMaxLifespan
public int getSsoSessionMaxLifespan()
- Specified by:
getSsoSessionMaxLifespanin interfaceRealmModel
-
setSsoSessionMaxLifespan
public void setSsoSessionMaxLifespan(int seconds)
- Specified by:
setSsoSessionMaxLifespanin interfaceRealmModel
-
getSsoSessionIdleTimeoutRememberMe
public int getSsoSessionIdleTimeoutRememberMe()
- Specified by:
getSsoSessionIdleTimeoutRememberMein interfaceRealmModel
-
setSsoSessionIdleTimeoutRememberMe
public void setSsoSessionIdleTimeoutRememberMe(int seconds)
- Specified by:
setSsoSessionIdleTimeoutRememberMein interfaceRealmModel
-
getSsoSessionMaxLifespanRememberMe
public int getSsoSessionMaxLifespanRememberMe()
- Specified by:
getSsoSessionMaxLifespanRememberMein interfaceRealmModel
-
setSsoSessionMaxLifespanRememberMe
public void setSsoSessionMaxLifespanRememberMe(int seconds)
- Specified by:
setSsoSessionMaxLifespanRememberMein interfaceRealmModel
-
getOfflineSessionIdleTimeout
public int getOfflineSessionIdleTimeout()
- Specified by:
getOfflineSessionIdleTimeoutin interfaceRealmModel
-
setOfflineSessionIdleTimeout
public void setOfflineSessionIdleTimeout(int seconds)
- Specified by:
setOfflineSessionIdleTimeoutin interfaceRealmModel
-
isOfflineSessionMaxLifespanEnabled
public boolean isOfflineSessionMaxLifespanEnabled()
- Specified by:
isOfflineSessionMaxLifespanEnabledin interfaceRealmModel
-
setOfflineSessionMaxLifespanEnabled
public void setOfflineSessionMaxLifespanEnabled(boolean offlineSessionMaxLifespanEnabled)
- Specified by:
setOfflineSessionMaxLifespanEnabledin interfaceRealmModel
-
getOfflineSessionMaxLifespan
public int getOfflineSessionMaxLifespan()
- Specified by:
getOfflineSessionMaxLifespanin interfaceRealmModel
-
setOfflineSessionMaxLifespan
public void setOfflineSessionMaxLifespan(int seconds)
- Specified by:
setOfflineSessionMaxLifespanin interfaceRealmModel
-
getClientSessionIdleTimeout
public int getClientSessionIdleTimeout()
- Specified by:
getClientSessionIdleTimeoutin interfaceRealmModel
-
setClientSessionIdleTimeout
public void setClientSessionIdleTimeout(int seconds)
- Specified by:
setClientSessionIdleTimeoutin interfaceRealmModel
-
getClientSessionMaxLifespan
public int getClientSessionMaxLifespan()
- Specified by:
getClientSessionMaxLifespanin interfaceRealmModel
-
setClientSessionMaxLifespan
public void setClientSessionMaxLifespan(int seconds)
- Specified by:
setClientSessionMaxLifespanin interfaceRealmModel
-
getClientOfflineSessionIdleTimeout
public int getClientOfflineSessionIdleTimeout()
- Specified by:
getClientOfflineSessionIdleTimeoutin interfaceRealmModel
-
setClientOfflineSessionIdleTimeout
public void setClientOfflineSessionIdleTimeout(int seconds)
- Specified by:
setClientOfflineSessionIdleTimeoutin interfaceRealmModel
-
getClientOfflineSessionMaxLifespan
public int getClientOfflineSessionMaxLifespan()
- Specified by:
getClientOfflineSessionMaxLifespanin interfaceRealmModel
-
setClientOfflineSessionMaxLifespan
public void setClientOfflineSessionMaxLifespan(int seconds)
- Specified by:
setClientOfflineSessionMaxLifespanin interfaceRealmModel
-
getAccessTokenLifespan
public int getAccessTokenLifespan()
- Specified by:
getAccessTokenLifespanin interfaceRealmModel
-
setAccessTokenLifespan
public void setAccessTokenLifespan(int seconds)
- Specified by:
setAccessTokenLifespanin interfaceRealmModel
-
getAccessTokenLifespanForImplicitFlow
public int getAccessTokenLifespanForImplicitFlow()
- Specified by:
getAccessTokenLifespanForImplicitFlowin interfaceRealmModel
-
setAccessTokenLifespanForImplicitFlow
public void setAccessTokenLifespanForImplicitFlow(int seconds)
- Specified by:
setAccessTokenLifespanForImplicitFlowin interfaceRealmModel
-
getAccessCodeLifespan
public int getAccessCodeLifespan()
- Specified by:
getAccessCodeLifespanin interfaceRealmModel
-
setAccessCodeLifespan
public void setAccessCodeLifespan(int seconds)
- Specified by:
setAccessCodeLifespanin interfaceRealmModel
-
getAccessCodeLifespanUserAction
public int getAccessCodeLifespanUserAction()
- Specified by:
getAccessCodeLifespanUserActionin interfaceRealmModel
-
setAccessCodeLifespanUserAction
public void setAccessCodeLifespanUserAction(int seconds)
- Specified by:
setAccessCodeLifespanUserActionin interfaceRealmModel
-
getUserActionTokenLifespans
public Map<String,Integer> getUserActionTokenLifespans()
- Specified by:
getUserActionTokenLifespansin interfaceRealmModel
-
getAccessCodeLifespanLogin
public int getAccessCodeLifespanLogin()
- Specified by:
getAccessCodeLifespanLoginin interfaceRealmModel
-
setAccessCodeLifespanLogin
public void setAccessCodeLifespanLogin(int seconds)
- Specified by:
setAccessCodeLifespanLoginin interfaceRealmModel
-
getActionTokenGeneratedByAdminLifespan
public int getActionTokenGeneratedByAdminLifespan()
- Specified by:
getActionTokenGeneratedByAdminLifespanin interfaceRealmModel
-
setActionTokenGeneratedByAdminLifespan
public void setActionTokenGeneratedByAdminLifespan(int seconds)
- Specified by:
setActionTokenGeneratedByAdminLifespanin interfaceRealmModel
-
getActionTokenGeneratedByUserLifespan
public int getActionTokenGeneratedByUserLifespan()
- Specified by:
getActionTokenGeneratedByUserLifespanin interfaceRealmModel
-
setActionTokenGeneratedByUserLifespan
public void setActionTokenGeneratedByUserLifespan(int seconds)
- Specified by:
setActionTokenGeneratedByUserLifespanin interfaceRealmModel
-
getActionTokenGeneratedByUserLifespan
public int getActionTokenGeneratedByUserLifespan(String actionTokenId)
- Specified by:
getActionTokenGeneratedByUserLifespanin interfaceRealmModel
-
setActionTokenGeneratedByUserLifespan
public void setActionTokenGeneratedByUserLifespan(String actionTokenId, Integer seconds)
- Specified by:
setActionTokenGeneratedByUserLifespanin interfaceRealmModel
-
getRequiredCredentialsStream
public Stream<RequiredCredentialModel> getRequiredCredentialsStream()
- Specified by:
getRequiredCredentialsStreamin interfaceRealmModel
-
getOAuth2DeviceConfig
public OAuth2DeviceConfig getOAuth2DeviceConfig()
- Specified by:
getOAuth2DeviceConfigin interfaceRealmModel
-
getCibaPolicy
public CibaConfig getCibaPolicy()
- Specified by:
getCibaPolicyin interfaceRealmModel
-
getParPolicy
public ParConfig getParPolicy()
- Specified by:
getParPolicyin interfaceRealmModel
-
getRequiredCredentials
public List<RequiredCredentialModel> getRequiredCredentials()
- Specified by:
getRequiredCredentialsin interfaceRealmModel
-
addRequiredCredential
public void addRequiredCredential(String cred)
- Specified by:
addRequiredCredentialin interfaceRealmModel
-
getPasswordPolicy
public PasswordPolicy getPasswordPolicy()
- Specified by:
getPasswordPolicyin interfaceRealmModel
-
setPasswordPolicy
public void setPasswordPolicy(PasswordPolicy policy)
- Specified by:
setPasswordPolicyin interfaceRealmModel
-
getOTPPolicy
public OTPPolicy getOTPPolicy()
- Specified by:
getOTPPolicyin interfaceRealmModel
-
setOTPPolicy
public void setOTPPolicy(OTPPolicy policy)
- Specified by:
setOTPPolicyin interfaceRealmModel
-
getWebAuthnPolicy
public WebAuthnPolicy getWebAuthnPolicy()
- Specified by:
getWebAuthnPolicyin interfaceRealmModel
-
setWebAuthnPolicy
public void setWebAuthnPolicy(WebAuthnPolicy policy)
- Specified by:
setWebAuthnPolicyin interfaceRealmModel
-
getWebAuthnPolicyPasswordless
public WebAuthnPolicy getWebAuthnPolicyPasswordless()
- Specified by:
getWebAuthnPolicyPasswordlessin interfaceRealmModel
-
setWebAuthnPolicyPasswordless
public void setWebAuthnPolicyPasswordless(WebAuthnPolicy policy)
- Specified by:
setWebAuthnPolicyPasswordlessin interfaceRealmModel
-
getRoleById
public RoleModel getRoleById(String id)
- Specified by:
getRoleByIdin interfaceRealmModel
-
getDefaultGroupsStream
public Stream<GroupModel> getDefaultGroupsStream()
- Specified by:
getDefaultGroupsStreamin interfaceRealmModel
-
addDefaultGroup
public void addDefaultGroup(GroupModel group)
- Specified by:
addDefaultGroupin interfaceRealmModel
-
removeDefaultGroup
public void removeDefaultGroup(GroupModel group)
- Specified by:
removeDefaultGroupin interfaceRealmModel
-
getDefaultRolesStream
@Deprecated public Stream<String> getDefaultRolesStream()
Deprecated.- Specified by:
getDefaultRolesStreamin interfaceRoleContainerModel
-
addDefaultRole
@Deprecated public void addDefaultRole(String name)
Deprecated.- Specified by:
addDefaultRolein interfaceRoleContainerModel
-
removeDefaultRoles
@Deprecated public void removeDefaultRoles(String... defaultRoles)
Deprecated.- Specified by:
removeDefaultRolesin interfaceRoleContainerModel
-
addToDefaultRoles
public void addToDefaultRoles(RoleModel role)
- Specified by:
addToDefaultRolesin interfaceRealmModel
-
getClientsStream
public Stream<ClientModel> getClientsStream()
- Specified by:
getClientsStreamin interfaceRealmModel
-
getAlwaysDisplayInConsoleClientsStream
public Stream<ClientModel> getAlwaysDisplayInConsoleClientsStream()
- Specified by:
getAlwaysDisplayInConsoleClientsStreamin interfaceRealmModel
-
addClient
public ClientModel addClient(String name)
- Specified by:
addClientin interfaceRealmModel
-
addClient
public ClientModel addClient(String id, String clientId)
- Specified by:
addClientin interfaceRealmModel
-
removeClient
public boolean removeClient(String id)
- Specified by:
removeClientin interfaceRealmModel
-
getClientById
public ClientModel getClientById(String id)
- Specified by:
getClientByIdin interfaceRealmModel
-
getClientByClientId
public ClientModel getClientByClientId(String clientId)
- Specified by:
getClientByClientIdin interfaceRealmModel
-
searchClientByClientIdStream
public Stream<ClientModel> searchClientByClientIdStream(String clientId, Integer firstResult, Integer maxResults)
- Specified by:
searchClientByClientIdStreamin interfaceRealmModel
-
searchClientByAttributes
public Stream<ClientModel> searchClientByAttributes(Map<String,String> attributes, Integer firstResult, Integer maxResults)
- Specified by:
searchClientByAttributesin interfaceRealmModel
-
getClientsStream
public Stream<ClientModel> getClientsStream(Integer firstResult, Integer maxResults)
- Specified by:
getClientsStreamin interfaceRealmModel
-
getClientsCount
public Long getClientsCount()
- Specified by:
getClientsCountin interfaceRealmModel
-
updateRequiredCredentials
public void updateRequiredCredentials(Set<String> creds)
- Specified by:
updateRequiredCredentialsin interfaceRealmModel
-
getBrowserSecurityHeaders
public Map<String,String> getBrowserSecurityHeaders()
- Specified by:
getBrowserSecurityHeadersin interfaceRealmModel
-
setBrowserSecurityHeaders
public void setBrowserSecurityHeaders(Map<String,String> headers)
- Specified by:
setBrowserSecurityHeadersin interfaceRealmModel
-
getSmtpConfig
public Map<String,String> getSmtpConfig()
- Specified by:
getSmtpConfigin interfaceRealmModel
-
setSmtpConfig
public void setSmtpConfig(Map<String,String> smtpConfig)
- Specified by:
setSmtpConfigin interfaceRealmModel
-
getIdentityProvidersStream
public Stream<IdentityProviderModel> getIdentityProvidersStream()
- Specified by:
getIdentityProvidersStreamin interfaceRealmModel
-
getIdentityProviderByAlias
public IdentityProviderModel getIdentityProviderByAlias(String alias)
- Specified by:
getIdentityProviderByAliasin interfaceRealmModel
-
addIdentityProvider
public void addIdentityProvider(IdentityProviderModel identityProvider)
- Specified by:
addIdentityProviderin interfaceRealmModel
-
updateIdentityProvider
public void updateIdentityProvider(IdentityProviderModel identityProvider)
- Specified by:
updateIdentityProviderin interfaceRealmModel
-
removeIdentityProviderByAlias
public void removeIdentityProviderByAlias(String alias)
- Specified by:
removeIdentityProviderByAliasin interfaceRealmModel
-
getLoginTheme
public String getLoginTheme()
- Specified by:
getLoginThemein interfaceRealmModel
-
setLoginTheme
public void setLoginTheme(String name)
- Specified by:
setLoginThemein interfaceRealmModel
-
getAccountTheme
public String getAccountTheme()
- Specified by:
getAccountThemein interfaceRealmModel
-
setAccountTheme
public void setAccountTheme(String name)
- Specified by:
setAccountThemein interfaceRealmModel
-
getAdminTheme
public String getAdminTheme()
- Specified by:
getAdminThemein interfaceRealmModel
-
setAdminTheme
public void setAdminTheme(String name)
- Specified by:
setAdminThemein interfaceRealmModel
-
getEmailTheme
public String getEmailTheme()
- Specified by:
getEmailThemein interfaceRealmModel
-
setEmailTheme
public void setEmailTheme(String name)
- Specified by:
setEmailThemein interfaceRealmModel
-
getNotBefore
public int getNotBefore()
- Specified by:
getNotBeforein interfaceRealmModel
-
setNotBefore
public void setNotBefore(int notBefore)
- Specified by:
setNotBeforein interfaceRealmModel
-
isEventsEnabled
public boolean isEventsEnabled()
- Specified by:
isEventsEnabledin interfaceRealmModel
-
setEventsEnabled
public void setEventsEnabled(boolean enabled)
- Specified by:
setEventsEnabledin interfaceRealmModel
-
getEventsExpiration
public long getEventsExpiration()
- Specified by:
getEventsExpirationin interfaceRealmModel
-
setEventsExpiration
public void setEventsExpiration(long expiration)
- Specified by:
setEventsExpirationin interfaceRealmModel
-
getEventsListenersStream
public Stream<String> getEventsListenersStream()
- Specified by:
getEventsListenersStreamin interfaceRealmModel
-
setEventsListeners
public void setEventsListeners(Set<String> listeners)
- Specified by:
setEventsListenersin interfaceRealmModel
-
getEnabledEventTypesStream
public Stream<String> getEnabledEventTypesStream()
- Specified by:
getEnabledEventTypesStreamin interfaceRealmModel
-
setEnabledEventTypes
public void setEnabledEventTypes(Set<String> enabledEventTypes)
- Specified by:
setEnabledEventTypesin interfaceRealmModel
-
isAdminEventsEnabled
public boolean isAdminEventsEnabled()
- Specified by:
isAdminEventsEnabledin interfaceRealmModel
-
setAdminEventsEnabled
public void setAdminEventsEnabled(boolean enabled)
- Specified by:
setAdminEventsEnabledin interfaceRealmModel
-
isAdminEventsDetailsEnabled
public boolean isAdminEventsDetailsEnabled()
- Specified by:
isAdminEventsDetailsEnabledin interfaceRealmModel
-
setAdminEventsDetailsEnabled
public void setAdminEventsDetailsEnabled(boolean enabled)
- Specified by:
setAdminEventsDetailsEnabledin interfaceRealmModel
-
getMasterAdminClient
public ClientModel getMasterAdminClient()
- Specified by:
getMasterAdminClientin interfaceRealmModel
-
setMasterAdminClient
public void setMasterAdminClient(ClientModel client)
- Specified by:
setMasterAdminClientin interfaceRealmModel
-
setDefaultRole
public void setDefaultRole(RoleModel role)
- Specified by:
setDefaultRolein interfaceRealmModel
-
getDefaultRole
public RoleModel getDefaultRole()
- Specified by:
getDefaultRolein interfaceRealmModel
-
getRole
public RoleModel getRole(String name)
- Specified by:
getRolein interfaceRoleContainerModel
-
getRolesStream
public Stream<RoleModel> getRolesStream()
- Specified by:
getRolesStreamin interfaceRoleContainerModel
-
getRolesStream
public Stream<RoleModel> getRolesStream(Integer first, Integer max)
- Specified by:
getRolesStreamin interfaceRoleContainerModel
-
searchForRolesStream
public Stream<RoleModel> searchForRolesStream(String search, Integer first, Integer max)
- Specified by:
searchForRolesStreamin interfaceRoleContainerModel
-
addRole
public RoleModel addRole(String name)
- Specified by:
addRolein interfaceRoleContainerModel
-
addRole
public RoleModel addRole(String id, String name)
- Specified by:
addRolein interfaceRoleContainerModel
-
removeRole
public boolean removeRole(RoleModel role)
- Specified by:
removeRolein interfaceRoleContainerModel
-
isIdentityFederationEnabled
public boolean isIdentityFederationEnabled()
- Specified by:
isIdentityFederationEnabledin interfaceRealmModel
-
isInternationalizationEnabled
public boolean isInternationalizationEnabled()
- Specified by:
isInternationalizationEnabledin interfaceRealmModel
-
setInternationalizationEnabled
public void setInternationalizationEnabled(boolean enabled)
- Specified by:
setInternationalizationEnabledin interfaceRealmModel
-
getSupportedLocalesStream
public Stream<String> getSupportedLocalesStream()
- Specified by:
getSupportedLocalesStreamin interfaceRealmModel
-
setSupportedLocales
public void setSupportedLocales(Set<String> locales)
- Specified by:
setSupportedLocalesin interfaceRealmModel
-
getDefaultLocale
public String getDefaultLocale()
- Specified by:
getDefaultLocalein interfaceRealmModel
-
setDefaultLocale
public void setDefaultLocale(String locale)
- Specified by:
setDefaultLocalein interfaceRealmModel
-
getIdentityProviderMappersStream
public Stream<IdentityProviderMapperModel> getIdentityProviderMappersStream()
- Specified by:
getIdentityProviderMappersStreamin interfaceRealmModel
-
getIdentityProviderMappersByAliasStream
public Stream<IdentityProviderMapperModel> getIdentityProviderMappersByAliasStream(String brokerAlias)
- Specified by:
getIdentityProviderMappersByAliasStreamin interfaceRealmModel
-
addIdentityProviderMapper
public IdentityProviderMapperModel addIdentityProviderMapper(IdentityProviderMapperModel model)
- Specified by:
addIdentityProviderMapperin interfaceRealmModel
-
removeIdentityProviderMapper
public void removeIdentityProviderMapper(IdentityProviderMapperModel mapping)
- Specified by:
removeIdentityProviderMapperin interfaceRealmModel
-
updateIdentityProviderMapper
public void updateIdentityProviderMapper(IdentityProviderMapperModel mapping)
- Specified by:
updateIdentityProviderMapperin interfaceRealmModel
-
getIdentityProviderMapperById
public IdentityProviderMapperModel getIdentityProviderMapperById(String id)
- Specified by:
getIdentityProviderMapperByIdin interfaceRealmModel
-
getIdentityProviderMapperByName
public IdentityProviderMapperModel getIdentityProviderMapperByName(String alias, String name)
- Specified by:
getIdentityProviderMapperByNamein interfaceRealmModel
-
getBrowserFlow
public AuthenticationFlowModel getBrowserFlow()
- Specified by:
getBrowserFlowin interfaceRealmModel
-
setBrowserFlow
public void setBrowserFlow(AuthenticationFlowModel flow)
- Specified by:
setBrowserFlowin interfaceRealmModel
-
getRegistrationFlow
public AuthenticationFlowModel getRegistrationFlow()
- Specified by:
getRegistrationFlowin interfaceRealmModel
-
setRegistrationFlow
public void setRegistrationFlow(AuthenticationFlowModel flow)
- Specified by:
setRegistrationFlowin interfaceRealmModel
-
getDirectGrantFlow
public AuthenticationFlowModel getDirectGrantFlow()
- Specified by:
getDirectGrantFlowin interfaceRealmModel
-
setDirectGrantFlow
public void setDirectGrantFlow(AuthenticationFlowModel flow)
- Specified by:
setDirectGrantFlowin interfaceRealmModel
-
getResetCredentialsFlow
public AuthenticationFlowModel getResetCredentialsFlow()
- Specified by:
getResetCredentialsFlowin interfaceRealmModel
-
setResetCredentialsFlow
public void setResetCredentialsFlow(AuthenticationFlowModel flow)
- Specified by:
setResetCredentialsFlowin interfaceRealmModel
-
getClientAuthenticationFlow
public AuthenticationFlowModel getClientAuthenticationFlow()
- Specified by:
getClientAuthenticationFlowin interfaceRealmModel
-
setClientAuthenticationFlow
public void setClientAuthenticationFlow(AuthenticationFlowModel flow)
- Specified by:
setClientAuthenticationFlowin interfaceRealmModel
-
getDockerAuthenticationFlow
public AuthenticationFlowModel getDockerAuthenticationFlow()
- Specified by:
getDockerAuthenticationFlowin interfaceRealmModel
-
setDockerAuthenticationFlow
public void setDockerAuthenticationFlow(AuthenticationFlowModel flow)
- Specified by:
setDockerAuthenticationFlowin interfaceRealmModel
-
getAuthenticationFlowsStream
public Stream<AuthenticationFlowModel> getAuthenticationFlowsStream()
- Specified by:
getAuthenticationFlowsStreamin interfaceRealmModel
-
getFlowByAlias
public AuthenticationFlowModel getFlowByAlias(String alias)
- Specified by:
getFlowByAliasin interfaceRealmModel
-
getAuthenticatorConfigByAlias
public AuthenticatorConfigModel getAuthenticatorConfigByAlias(String alias)
- Specified by:
getAuthenticatorConfigByAliasin interfaceRealmModel
-
addAuthenticationFlow
public AuthenticationFlowModel addAuthenticationFlow(AuthenticationFlowModel model)
- Specified by:
addAuthenticationFlowin interfaceRealmModel
-
getAuthenticationFlowById
public AuthenticationFlowModel getAuthenticationFlowById(String id)
- Specified by:
getAuthenticationFlowByIdin interfaceRealmModel
-
removeAuthenticationFlow
public void removeAuthenticationFlow(AuthenticationFlowModel model)
- Specified by:
removeAuthenticationFlowin interfaceRealmModel
-
updateAuthenticationFlow
public void updateAuthenticationFlow(AuthenticationFlowModel model)
- Specified by:
updateAuthenticationFlowin interfaceRealmModel
-
getAuthenticationExecutionsStream
public Stream<AuthenticationExecutionModel> getAuthenticationExecutionsStream(String flowId)
- Specified by:
getAuthenticationExecutionsStreamin interfaceRealmModel
-
getAuthenticationExecutionById
public AuthenticationExecutionModel getAuthenticationExecutionById(String id)
- Specified by:
getAuthenticationExecutionByIdin interfaceRealmModel
-
getAuthenticationExecutionByFlowId
public AuthenticationExecutionModel getAuthenticationExecutionByFlowId(String flowId)
- Specified by:
getAuthenticationExecutionByFlowIdin interfaceRealmModel
-
addAuthenticatorExecution
public AuthenticationExecutionModel addAuthenticatorExecution(AuthenticationExecutionModel model)
- Specified by:
addAuthenticatorExecutionin interfaceRealmModel
-
updateAuthenticatorExecution
public void updateAuthenticatorExecution(AuthenticationExecutionModel model)
- Specified by:
updateAuthenticatorExecutionin interfaceRealmModel
-
removeAuthenticatorExecution
public void removeAuthenticatorExecution(AuthenticationExecutionModel model)
- Specified by:
removeAuthenticatorExecutionin interfaceRealmModel
-
getAuthenticatorConfigsStream
public Stream<AuthenticatorConfigModel> getAuthenticatorConfigsStream()
- Specified by:
getAuthenticatorConfigsStreamin interfaceRealmModel
-
addAuthenticatorConfig
public AuthenticatorConfigModel addAuthenticatorConfig(AuthenticatorConfigModel model)
- Specified by:
addAuthenticatorConfigin interfaceRealmModel
-
updateAuthenticatorConfig
public void updateAuthenticatorConfig(AuthenticatorConfigModel model)
- Specified by:
updateAuthenticatorConfigin interfaceRealmModel
-
removeAuthenticatorConfig
public void removeAuthenticatorConfig(AuthenticatorConfigModel model)
- Specified by:
removeAuthenticatorConfigin interfaceRealmModel
-
getAuthenticatorConfigById
public AuthenticatorConfigModel getAuthenticatorConfigById(String id)
- Specified by:
getAuthenticatorConfigByIdin interfaceRealmModel
-
getRequiredActionProvidersStream
public Stream<RequiredActionProviderModel> getRequiredActionProvidersStream()
- Specified by:
getRequiredActionProvidersStreamin interfaceRealmModel
-
addRequiredActionProvider
public RequiredActionProviderModel addRequiredActionProvider(RequiredActionProviderModel model)
- Specified by:
addRequiredActionProviderin interfaceRealmModel
-
updateRequiredActionProvider
public void updateRequiredActionProvider(RequiredActionProviderModel model)
- Specified by:
updateRequiredActionProviderin interfaceRealmModel
-
removeRequiredActionProvider
public void removeRequiredActionProvider(RequiredActionProviderModel model)
- Specified by:
removeRequiredActionProviderin interfaceRealmModel
-
getRequiredActionProviderById
public RequiredActionProviderModel getRequiredActionProviderById(String id)
- Specified by:
getRequiredActionProviderByIdin interfaceRealmModel
-
getRequiredActionProviderByAlias
public RequiredActionProviderModel getRequiredActionProviderByAlias(String alias)
- Specified by:
getRequiredActionProviderByAliasin interfaceRealmModel
-
createGroup
public GroupModel createGroup(String id, String name, GroupModel toParent)
- Specified by:
createGroupin interfaceRealmModel
-
moveGroup
public void moveGroup(GroupModel group, GroupModel toParent)
- Specified by:
moveGroupin interfaceRealmModel
-
getGroupById
public GroupModel getGroupById(String id)
- Specified by:
getGroupByIdin interfaceRealmModel
-
getGroupsStream
public Stream<GroupModel> getGroupsStream()
- Specified by:
getGroupsStreamin interfaceRealmModel
-
getGroupsCount
public Long getGroupsCount(Boolean onlyTopGroups)
- Specified by:
getGroupsCountin interfaceRealmModel
-
getGroupsCountByNameContaining
public Long getGroupsCountByNameContaining(String search)
- Specified by:
getGroupsCountByNameContainingin interfaceRealmModel
-
getTopLevelGroupsStream
public Stream<GroupModel> getTopLevelGroupsStream()
- Specified by:
getTopLevelGroupsStreamin interfaceRealmModel
-
getTopLevelGroupsStream
public Stream<GroupModel> getTopLevelGroupsStream(Integer first, Integer max)
- Specified by:
getTopLevelGroupsStreamin interfaceRealmModel
-
searchForGroupByNameStream
public Stream<GroupModel> searchForGroupByNameStream(String search, Integer first, Integer max)
- Specified by:
searchForGroupByNameStreamin interfaceRealmModel
-
removeGroup
public boolean removeGroup(GroupModel group)
- Specified by:
removeGroupin interfaceRealmModel
-
getClientScopesStream
public Stream<ClientScopeModel> getClientScopesStream()
- Specified by:
getClientScopesStreamin interfaceRealmModel
-
addClientScope
public ClientScopeModel addClientScope(String name)
- Specified by:
addClientScopein interfaceRealmModel
-
addClientScope
public ClientScopeModel addClientScope(String id, String name)
- Specified by:
addClientScopein interfaceRealmModel
-
removeClientScope
public boolean removeClientScope(String id)
- Specified by:
removeClientScopein interfaceRealmModel
-
getClientScopeById
public ClientScopeModel getClientScopeById(String id)
- Specified by:
getClientScopeByIdin interfaceRealmModel
-
addDefaultClientScope
public void addDefaultClientScope(ClientScopeModel clientScope, boolean defaultScope)
- Specified by:
addDefaultClientScopein interfaceRealmModel
-
removeDefaultClientScope
public void removeDefaultClientScope(ClientScopeModel clientScope)
- Specified by:
removeDefaultClientScopein interfaceRealmModel
-
getDefaultClientScopesStream
public Stream<ClientScopeModel> getDefaultClientScopesStream(boolean defaultScope)
- Specified by:
getDefaultClientScopesStreamin interfaceRealmModel
-
addComponentModel
public ComponentModel addComponentModel(ComponentModel model)
- Specified by:
addComponentModelin interfaceRealmModel
-
importComponentModel
public ComponentModel importComponentModel(ComponentModel model)
- Specified by:
importComponentModelin interfaceRealmModel
-
executeEvictions
public void executeEvictions(ComponentModel model)
-
updateComponent
public void updateComponent(ComponentModel component)
- Specified by:
updateComponentin interfaceRealmModel
-
removeComponent
public void removeComponent(ComponentModel component)
- Specified by:
removeComponentin interfaceRealmModel
-
removeComponents
public void removeComponents(String parentId)
- Specified by:
removeComponentsin interfaceRealmModel
-
getComponentsStream
public Stream<ComponentModel> getComponentsStream(String parentId, String providerType)
- Specified by:
getComponentsStreamin interfaceRealmModel
-
getComponentsStream
public Stream<ComponentModel> getComponentsStream(String parentId)
- Specified by:
getComponentsStreamin interfaceRealmModel
-
getComponentsStream
public Stream<ComponentModel> getComponentsStream()
- Specified by:
getComponentsStreamin interfaceRealmModel
-
getComponent
public ComponentModel getComponent(String id)
- Specified by:
getComponentin interfaceRealmModel
-
setAttribute
public void setAttribute(String name, String value)
- Specified by:
setAttributein interfaceRealmModel
-
setAttribute
public void setAttribute(String name, Boolean value)
- Specified by:
setAttributein interfaceRealmModel
-
setAttribute
public void setAttribute(String name, Integer value)
- Specified by:
setAttributein interfaceRealmModel
-
setAttribute
public void setAttribute(String name, Long value)
- Specified by:
setAttributein interfaceRealmModel
-
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttributein interfaceRealmModel
-
getAttribute
public String getAttribute(String name)
- Specified by:
getAttributein interfaceRealmModel
-
getAttribute
public Integer getAttribute(String name, Integer defaultValue)
- Specified by:
getAttributein interfaceRealmModel
-
getAttribute
public Long getAttribute(String name, Long defaultValue)
- Specified by:
getAttributein interfaceRealmModel
-
getAttribute
public Boolean getAttribute(String name, Boolean defaultValue)
- Specified by:
getAttributein interfaceRealmModel
-
getAttributes
public Map<String,String> getAttributes()
- Specified by:
getAttributesin interfaceRealmModel
-
createOrUpdateRealmLocalizationTexts
public void createOrUpdateRealmLocalizationTexts(String locale, Map<String,String> localizationTexts)
- Specified by:
createOrUpdateRealmLocalizationTextsin interfaceRealmModel
-
removeRealmLocalizationTexts
public boolean removeRealmLocalizationTexts(String locale)
- Specified by:
removeRealmLocalizationTextsin interfaceRealmModel
-
getRealmLocalizationTexts
public Map<String,Map<String,String>> getRealmLocalizationTexts()
- Specified by:
getRealmLocalizationTextsin interfaceRealmModel
-
getRealmLocalizationTextsByLocale
public Map<String,String> getRealmLocalizationTextsByLocale(String locale)
- Specified by:
getRealmLocalizationTextsByLocalein interfaceRealmModel
-
createClientInitialAccessModel
public ClientInitialAccessModel createClientInitialAccessModel(int expiration, int count)
- Specified by:
createClientInitialAccessModelin interfaceRealmModel
-
getClientInitialAccessModel
public ClientInitialAccessModel getClientInitialAccessModel(String id)
- Specified by:
getClientInitialAccessModelin interfaceRealmModel
-
removeClientInitialAccessModel
public void removeClientInitialAccessModel(String id)
- Specified by:
removeClientInitialAccessModelin interfaceRealmModel
-
getClientInitialAccesses
public Stream<ClientInitialAccessModel> getClientInitialAccesses()
- Specified by:
getClientInitialAccessesin interfaceRealmModel
-
decreaseRemainingCount
public void decreaseRemainingCount(ClientInitialAccessModel clientInitialAccess)
- Specified by:
decreaseRemainingCountin interfaceRealmModel
-
-