public class RealmAdapter extends Object implements CachedRealmModel
CachedRealmModel.RealmCachedEventRealmModel.IdentityProviderRemovedEvent, RealmModel.IdentityProviderUpdatedEvent, RealmModel.RealmCreationEvent, RealmModel.RealmPostCreateEvent, RealmModel.RealmRemovedEvent, RealmModel.SearchableFieldsRoleContainerModel.RoleRemovedEvent| Modifier and Type | Field and Description |
|---|---|
protected CachedRealm |
cached |
protected RealmCacheSession |
cacheSession |
protected boolean |
invalidated |
protected KeycloakSession |
session |
protected RealmModel |
updated |
COMPARE_BY_NAME| Constructor and Description |
|---|
RealmAdapter(KeycloakSession session,
CachedRealm cached,
RealmCacheSession cacheSession) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateGroup, createGroup, createGroup, getAlwaysDisplayInConsoleClients, getAuthenticationExecutions, getAuthenticationFlows, getAuthenticatorConfigs, getClients, getClients, getClientScopes, getClientStorageProviders, getClientStorageProvidersStream, getComponents, getComponents, getComponents, getDefaultClientScopes, getDefaultGroups, getEnabledEventTypes, getEventsListeners, getGroups, getIdentityProviderMappers, getIdentityProviderMappersByAlias, getIdentityProviders, getRequiredActionProviders, getRoleStorageProviders, getRoleStorageProvidersStream, getStorageProviders, getSupportedLocales, getTopLevelGroups, getTopLevelGroups, getUserStorageProviders, getUserStorageProvidersStream, searchClientByClientId, searchForGroupByNamegetDefaultRoles, getRoles, getRoles, searchForRoles, updateDefaultRolesprotected CachedRealm cached
protected RealmCacheSession cacheSession
protected volatile RealmModel updated
protected KeycloakSession session
protected volatile boolean invalidated
public RealmAdapter(KeycloakSession session, CachedRealm cached, RealmCacheSession cacheSession)
public RealmModel getDelegateForUpdate()
CachedRealmModelgetDelegateForUpdate in interface CachedRealmModelprotected void invalidateFlag()
public void invalidate()
CachedRealmModelinvalidate in interface CachedRealmModelpublic long getCacheTimestamp()
CachedRealmModelgetCacheTimestamp in interface CachedRealmModelpublic ConcurrentHashMap getCachedWith()
CachedRealmModelgetCachedWith in interface CachedRealmModelprotected boolean isUpdated()
public String getId()
getId in interface RealmModelgetId in interface RoleContainerModelpublic String getName()
getName in interface RealmModelpublic void setName(String name)
setName in interface RealmModelpublic String getDisplayName()
getDisplayName in interface RealmModelpublic void setDisplayName(String displayName)
setDisplayName in interface RealmModelpublic String getDisplayNameHtml()
getDisplayNameHtml in interface RealmModelpublic void setDisplayNameHtml(String displayNameHtml)
setDisplayNameHtml in interface RealmModelpublic boolean isEnabled()
isEnabled in interface RealmModelpublic void setEnabled(boolean enabled)
setEnabled in interface RealmModelpublic boolean isUserManagedAccessAllowed()
isUserManagedAccessAllowed in interface RealmModelpublic void setUserManagedAccessAllowed(boolean userManagedAccessAllowed)
setUserManagedAccessAllowed in interface RealmModelpublic SslRequired getSslRequired()
getSslRequired in interface RealmModelpublic void setSslRequired(SslRequired sslRequired)
setSslRequired in interface RealmModelpublic boolean isRegistrationAllowed()
isRegistrationAllowed in interface RealmModelpublic void setRegistrationAllowed(boolean registrationAllowed)
setRegistrationAllowed in interface RealmModelpublic boolean isRegistrationEmailAsUsername()
isRegistrationEmailAsUsername in interface RealmModelpublic void setRegistrationEmailAsUsername(boolean registrationEmailAsUsername)
setRegistrationEmailAsUsername in interface RealmModelpublic boolean isRememberMe()
isRememberMe in interface RealmModelpublic void setRememberMe(boolean rememberMe)
setRememberMe in interface RealmModelpublic String getDefaultSignatureAlgorithm()
getDefaultSignatureAlgorithm in interface RealmModelpublic void setDefaultSignatureAlgorithm(String defaultSignatureAlgorithm)
setDefaultSignatureAlgorithm in interface RealmModelpublic boolean isBruteForceProtected()
isBruteForceProtected in interface RealmModelpublic void setBruteForceProtected(boolean value)
setBruteForceProtected in interface RealmModelpublic boolean isPermanentLockout()
isPermanentLockout in interface RealmModelpublic void setPermanentLockout(boolean val)
setPermanentLockout in interface RealmModelpublic int getMaxFailureWaitSeconds()
getMaxFailureWaitSeconds in interface RealmModelpublic void setMaxFailureWaitSeconds(int val)
setMaxFailureWaitSeconds in interface RealmModelpublic int getWaitIncrementSeconds()
getWaitIncrementSeconds in interface RealmModelpublic void setWaitIncrementSeconds(int val)
setWaitIncrementSeconds in interface RealmModelpublic int getMinimumQuickLoginWaitSeconds()
getMinimumQuickLoginWaitSeconds in interface RealmModelpublic void setMinimumQuickLoginWaitSeconds(int val)
setMinimumQuickLoginWaitSeconds in interface RealmModelpublic long getQuickLoginCheckMilliSeconds()
getQuickLoginCheckMilliSeconds in interface RealmModelpublic void setQuickLoginCheckMilliSeconds(long val)
setQuickLoginCheckMilliSeconds in interface RealmModelpublic int getMaxDeltaTimeSeconds()
getMaxDeltaTimeSeconds in interface RealmModelpublic void setMaxDeltaTimeSeconds(int val)
setMaxDeltaTimeSeconds in interface RealmModelpublic int getFailureFactor()
getFailureFactor in interface RealmModelpublic void setFailureFactor(int failureFactor)
setFailureFactor in interface RealmModelpublic boolean isVerifyEmail()
isVerifyEmail in interface RealmModelpublic void setVerifyEmail(boolean verifyEmail)
setVerifyEmail in interface RealmModelpublic boolean isLoginWithEmailAllowed()
isLoginWithEmailAllowed in interface RealmModelpublic void setLoginWithEmailAllowed(boolean loginWithEmailAllowed)
setLoginWithEmailAllowed in interface RealmModelpublic boolean isDuplicateEmailsAllowed()
isDuplicateEmailsAllowed in interface RealmModelpublic void setDuplicateEmailsAllowed(boolean duplicateEmailsAllowed)
setDuplicateEmailsAllowed in interface RealmModelpublic boolean isResetPasswordAllowed()
isResetPasswordAllowed in interface RealmModelpublic void setResetPasswordAllowed(boolean resetPasswordAllowed)
setResetPasswordAllowed in interface RealmModelpublic boolean isEditUsernameAllowed()
isEditUsernameAllowed in interface RealmModelpublic void setEditUsernameAllowed(boolean editUsernameAllowed)
setEditUsernameAllowed in interface RealmModelpublic boolean isRevokeRefreshToken()
isRevokeRefreshToken in interface RealmModelpublic void setRevokeRefreshToken(boolean revokeRefreshToken)
setRevokeRefreshToken in interface RealmModelpublic int getRefreshTokenMaxReuse()
getRefreshTokenMaxReuse in interface RealmModelpublic void setRefreshTokenMaxReuse(int refreshTokenMaxReuse)
setRefreshTokenMaxReuse in interface RealmModelpublic int getSsoSessionIdleTimeout()
getSsoSessionIdleTimeout in interface RealmModelpublic void setSsoSessionIdleTimeout(int seconds)
setSsoSessionIdleTimeout in interface RealmModelpublic int getSsoSessionMaxLifespan()
getSsoSessionMaxLifespan in interface RealmModelpublic void setSsoSessionMaxLifespan(int seconds)
setSsoSessionMaxLifespan in interface RealmModelpublic int getSsoSessionIdleTimeoutRememberMe()
getSsoSessionIdleTimeoutRememberMe in interface RealmModelpublic void setSsoSessionIdleTimeoutRememberMe(int seconds)
setSsoSessionIdleTimeoutRememberMe in interface RealmModelpublic int getSsoSessionMaxLifespanRememberMe()
getSsoSessionMaxLifespanRememberMe in interface RealmModelpublic void setSsoSessionMaxLifespanRememberMe(int seconds)
setSsoSessionMaxLifespanRememberMe in interface RealmModelpublic int getOfflineSessionIdleTimeout()
getOfflineSessionIdleTimeout in interface RealmModelpublic void setOfflineSessionIdleTimeout(int seconds)
setOfflineSessionIdleTimeout in interface RealmModelpublic boolean isOfflineSessionMaxLifespanEnabled()
isOfflineSessionMaxLifespanEnabled in interface RealmModelpublic void setOfflineSessionMaxLifespanEnabled(boolean offlineSessionMaxLifespanEnabled)
setOfflineSessionMaxLifespanEnabled in interface RealmModelpublic int getOfflineSessionMaxLifespan()
getOfflineSessionMaxLifespan in interface RealmModelpublic void setOfflineSessionMaxLifespan(int seconds)
setOfflineSessionMaxLifespan in interface RealmModelpublic int getClientSessionIdleTimeout()
getClientSessionIdleTimeout in interface RealmModelpublic void setClientSessionIdleTimeout(int seconds)
setClientSessionIdleTimeout in interface RealmModelpublic int getClientSessionMaxLifespan()
getClientSessionMaxLifespan in interface RealmModelpublic void setClientSessionMaxLifespan(int seconds)
setClientSessionMaxLifespan in interface RealmModelpublic int getClientOfflineSessionIdleTimeout()
getClientOfflineSessionIdleTimeout in interface RealmModelpublic void setClientOfflineSessionIdleTimeout(int seconds)
setClientOfflineSessionIdleTimeout in interface RealmModelpublic int getClientOfflineSessionMaxLifespan()
getClientOfflineSessionMaxLifespan in interface RealmModelpublic void setClientOfflineSessionMaxLifespan(int seconds)
setClientOfflineSessionMaxLifespan in interface RealmModelpublic int getAccessTokenLifespan()
getAccessTokenLifespan in interface RealmModelpublic void setAccessTokenLifespan(int seconds)
setAccessTokenLifespan in interface RealmModelpublic int getAccessTokenLifespanForImplicitFlow()
getAccessTokenLifespanForImplicitFlow in interface RealmModelpublic void setAccessTokenLifespanForImplicitFlow(int seconds)
setAccessTokenLifespanForImplicitFlow in interface RealmModelpublic int getAccessCodeLifespan()
getAccessCodeLifespan in interface RealmModelpublic void setAccessCodeLifespan(int seconds)
setAccessCodeLifespan in interface RealmModelpublic int getAccessCodeLifespanUserAction()
getAccessCodeLifespanUserAction in interface RealmModelpublic void setAccessCodeLifespanUserAction(int seconds)
setAccessCodeLifespanUserAction in interface RealmModelpublic Map<String,Integer> getUserActionTokenLifespans()
RealmModelgetUserActionTokenLifespans in interface RealmModelpublic int getAccessCodeLifespanLogin()
getAccessCodeLifespanLogin in interface RealmModelpublic void setAccessCodeLifespanLogin(int seconds)
setAccessCodeLifespanLogin in interface RealmModelpublic int getActionTokenGeneratedByAdminLifespan()
getActionTokenGeneratedByAdminLifespan in interface RealmModelpublic void setActionTokenGeneratedByAdminLifespan(int seconds)
setActionTokenGeneratedByAdminLifespan in interface RealmModelpublic int getActionTokenGeneratedByUserLifespan()
getActionTokenGeneratedByUserLifespan in interface RealmModelpublic void setActionTokenGeneratedByUserLifespan(int seconds)
setActionTokenGeneratedByUserLifespan in interface RealmModelpublic int getActionTokenGeneratedByUserLifespan(String actionTokenId)
getActionTokenGeneratedByUserLifespan in interface RealmModelpublic void setActionTokenGeneratedByUserLifespan(String actionTokenId, Integer seconds)
setActionTokenGeneratedByUserLifespan in interface RealmModelpublic Stream<RequiredCredentialModel> getRequiredCredentialsStream()
RealmModelgetRequiredCredentialsStream in interface RealmModelRequiredCredentialModel. Never returns null.public OAuth2DeviceConfig getOAuth2DeviceConfig()
getOAuth2DeviceConfig in interface RealmModelpublic CibaConfig getCibaPolicy()
getCibaPolicy in interface RealmModelpublic ParConfig getParPolicy()
getParPolicy in interface RealmModelpublic List<RequiredCredentialModel> getRequiredCredentials()
getRequiredCredentials in interface RealmModelpublic void addRequiredCredential(String cred)
addRequiredCredential in interface RealmModelpublic PasswordPolicy getPasswordPolicy()
getPasswordPolicy in interface RealmModelpublic void setPasswordPolicy(PasswordPolicy policy)
setPasswordPolicy in interface RealmModelpublic OTPPolicy getOTPPolicy()
getOTPPolicy in interface RealmModelpublic void setOTPPolicy(OTPPolicy policy)
setOTPPolicy in interface RealmModelpublic WebAuthnPolicy getWebAuthnPolicy()
getWebAuthnPolicy in interface RealmModelpublic void setWebAuthnPolicy(WebAuthnPolicy policy)
RealmModelsetWebAuthnPolicy in interface RealmModelpublic WebAuthnPolicy getWebAuthnPolicyPasswordless()
getWebAuthnPolicyPasswordless in interface RealmModelpublic void setWebAuthnPolicyPasswordless(WebAuthnPolicy policy)
RealmModelsetWebAuthnPolicyPasswordless in interface RealmModelpublic RoleModel getRoleById(String id)
getRoleById in interface RealmModelpublic Stream<GroupModel> getDefaultGroupsStream()
RealmModelgetDefaultGroupsStream in interface RealmModelGroupModel. Never returns null.public void addDefaultGroup(GroupModel group)
addDefaultGroup in interface RealmModelpublic void removeDefaultGroup(GroupModel group)
removeDefaultGroup in interface RealmModel@Deprecated public Stream<String> getDefaultRolesStream()
getDefaultRolesStream in interface RoleContainerModelnull.@Deprecated public void addDefaultRole(String name)
addDefaultRole in interface RoleContainerModel@Deprecated public void removeDefaultRoles(String... defaultRoles)
removeDefaultRoles in interface RoleContainerModelpublic void addToDefaultRoles(RoleModel role)
RealmModeladdToDefaultRoles in interface RealmModelrole - to be addedpublic Stream<ClientModel> getClientsStream()
RealmModelgetClientsStream in interface RealmModelClientModel. Never returns null.public Stream<ClientModel> getAlwaysDisplayInConsoleClientsStream()
RealmModelgetAlwaysDisplayInConsoleClientsStream in interface RealmModelClientModel. Never returns null.public ClientModel addClient(String name)
addClient in interface RealmModelpublic ClientModel addClient(String id, String clientId)
addClient in interface RealmModelpublic boolean removeClient(String id)
removeClient in interface RealmModelpublic ClientModel getClientById(String id)
getClientById in interface RealmModelpublic ClientModel getClientByClientId(String clientId)
getClientByClientId in interface RealmModelpublic Stream<ClientModel> searchClientByClientIdStream(String clientId, Integer firstResult, Integer maxResults)
RealmModelsearchClientByClientIdStream in interface RealmModelclientId - String Id of the client.firstResult - Index of the first desired client. Ignored if negative or null.maxResults - Maximum number of returned clients. Ignored if negative or null.ClientModel. Never returns null.public Stream<ClientModel> searchClientByAttributes(Map<String,String> attributes, Integer firstResult, Integer maxResults)
searchClientByAttributes in interface RealmModelpublic Stream<ClientModel> getClientsStream(Integer firstResult, Integer maxResults)
RealmModelgetClientsStream in interface RealmModelfirstResult - Integer Index of the first desired client. Ignored if negative or null.maxResults - Integer Maximum number of returned clients. Ignored if negative or null.ClientModel. Never returns null.public Long getClientsCount()
getClientsCount in interface RealmModelpublic void updateRequiredCredentials(Set<String> creds)
updateRequiredCredentials in interface RealmModelpublic Map<String,String> getBrowserSecurityHeaders()
getBrowserSecurityHeaders in interface RealmModelpublic void setBrowserSecurityHeaders(Map<String,String> headers)
setBrowserSecurityHeaders in interface RealmModelpublic Map<String,String> getSmtpConfig()
getSmtpConfig in interface RealmModelpublic void setSmtpConfig(Map<String,String> smtpConfig)
setSmtpConfig in interface RealmModelpublic Stream<IdentityProviderModel> getIdentityProvidersStream()
RealmModelgetIdentityProvidersStream in interface RealmModelIdentityProviderModel. Never returns null.public IdentityProviderModel getIdentityProviderByAlias(String alias)
getIdentityProviderByAlias in interface RealmModelpublic void addIdentityProvider(IdentityProviderModel identityProvider)
addIdentityProvider in interface RealmModelpublic void updateIdentityProvider(IdentityProviderModel identityProvider)
updateIdentityProvider in interface RealmModelpublic void removeIdentityProviderByAlias(String alias)
removeIdentityProviderByAlias in interface RealmModelpublic String getLoginTheme()
getLoginTheme in interface RealmModelpublic void setLoginTheme(String name)
setLoginTheme in interface RealmModelpublic String getAccountTheme()
getAccountTheme in interface RealmModelpublic void setAccountTheme(String name)
setAccountTheme in interface RealmModelpublic String getAdminTheme()
getAdminTheme in interface RealmModelpublic void setAdminTheme(String name)
setAdminTheme in interface RealmModelpublic String getEmailTheme()
getEmailTheme in interface RealmModelpublic void setEmailTheme(String name)
setEmailTheme in interface RealmModelpublic int getNotBefore()
RealmModelgetNotBefore in interface RealmModelpublic void setNotBefore(int notBefore)
setNotBefore in interface RealmModelpublic boolean isEventsEnabled()
isEventsEnabled in interface RealmModelpublic void setEventsEnabled(boolean enabled)
setEventsEnabled in interface RealmModelpublic long getEventsExpiration()
getEventsExpiration in interface RealmModelpublic void setEventsExpiration(long expiration)
setEventsExpiration in interface RealmModelpublic Stream<String> getEventsListenersStream()
RealmModelgetEventsListenersStream in interface RealmModelString. Never returns null.public void setEventsListeners(Set<String> listeners)
setEventsListeners in interface RealmModelpublic Stream<String> getEnabledEventTypesStream()
RealmModelgetEnabledEventTypesStream in interface RealmModelString. Never returns null.public void setEnabledEventTypes(Set<String> enabledEventTypes)
setEnabledEventTypes in interface RealmModelpublic boolean isAdminEventsEnabled()
isAdminEventsEnabled in interface RealmModelpublic void setAdminEventsEnabled(boolean enabled)
setAdminEventsEnabled in interface RealmModelpublic boolean isAdminEventsDetailsEnabled()
isAdminEventsDetailsEnabled in interface RealmModelpublic void setAdminEventsDetailsEnabled(boolean enabled)
setAdminEventsDetailsEnabled in interface RealmModelpublic ClientModel getMasterAdminClient()
getMasterAdminClient in interface RealmModelpublic void setMasterAdminClient(ClientModel client)
setMasterAdminClient in interface RealmModelpublic void setDefaultRole(RoleModel role)
RealmModelsetDefaultRole in interface RealmModelrole - to be setpublic RoleModel getDefaultRole()
RealmModelgetDefaultRole in interface RealmModelpublic RoleModel getRole(String name)
getRole in interface RoleContainerModelpublic Stream<RoleModel> getRolesStream()
RoleContainerModelgetRolesStream in interface RoleContainerModelRoleModel. Never returns null.public Stream<RoleModel> getRolesStream(Integer first, Integer max)
RoleContainerModelgetRolesStream in interface RoleContainerModelfirst - Integer Index of the first desired role. Ignored if negative or null.max - Integer Maximum number of returned roles. Ignored if negative or null.RoleModel. Never returns null.public Stream<RoleModel> searchForRolesStream(String search, Integer first, Integer max)
RoleContainerModelsearchForRolesStream in interface RoleContainerModelsearch - String Name of the role to be used as a filter.first - Integer Index of the first desired role. Ignored if negative or null.max - Integer Maximum number of returned roles. Ignored if negative or null.RoleModel. Never returns null.public RoleModel addRole(String name)
addRole in interface RoleContainerModelpublic RoleModel addRole(String id, String name)
addRole in interface RoleContainerModelpublic boolean removeRole(RoleModel role)
removeRole in interface RoleContainerModelpublic boolean isIdentityFederationEnabled()
isIdentityFederationEnabled in interface RealmModelpublic boolean isInternationalizationEnabled()
isInternationalizationEnabled in interface RealmModelpublic void setInternationalizationEnabled(boolean enabled)
setInternationalizationEnabled in interface RealmModelpublic Stream<String> getSupportedLocalesStream()
RealmModelgetSupportedLocalesStream in interface RealmModelString. Never returns null.public void setSupportedLocales(Set<String> locales)
setSupportedLocales in interface RealmModelpublic String getDefaultLocale()
getDefaultLocale in interface RealmModelpublic void setDefaultLocale(String locale)
setDefaultLocale in interface RealmModelpublic Stream<IdentityProviderMapperModel> getIdentityProviderMappersStream()
RealmModelgetIdentityProviderMappersStream in interface RealmModelIdentityProviderMapperModel. Never returns null.public Stream<IdentityProviderMapperModel> getIdentityProviderMappersByAliasStream(String brokerAlias)
RealmModelgetIdentityProviderMappersByAliasStream in interface RealmModelbrokerAlias - String Broker's alias to filter results.IdentityProviderMapperModel Never returns null.public IdentityProviderMapperModel addIdentityProviderMapper(IdentityProviderMapperModel model)
addIdentityProviderMapper in interface RealmModelpublic void removeIdentityProviderMapper(IdentityProviderMapperModel mapping)
removeIdentityProviderMapper in interface RealmModelpublic void updateIdentityProviderMapper(IdentityProviderMapperModel mapping)
updateIdentityProviderMapper in interface RealmModelpublic IdentityProviderMapperModel getIdentityProviderMapperById(String id)
getIdentityProviderMapperById in interface RealmModelpublic IdentityProviderMapperModel getIdentityProviderMapperByName(String alias, String name)
getIdentityProviderMapperByName in interface RealmModelpublic AuthenticationFlowModel getBrowserFlow()
getBrowserFlow in interface RealmModelpublic void setBrowserFlow(AuthenticationFlowModel flow)
setBrowserFlow in interface RealmModelpublic AuthenticationFlowModel getRegistrationFlow()
getRegistrationFlow in interface RealmModelpublic void setRegistrationFlow(AuthenticationFlowModel flow)
setRegistrationFlow in interface RealmModelpublic AuthenticationFlowModel getDirectGrantFlow()
getDirectGrantFlow in interface RealmModelpublic void setDirectGrantFlow(AuthenticationFlowModel flow)
setDirectGrantFlow in interface RealmModelpublic AuthenticationFlowModel getResetCredentialsFlow()
getResetCredentialsFlow in interface RealmModelpublic void setResetCredentialsFlow(AuthenticationFlowModel flow)
setResetCredentialsFlow in interface RealmModelpublic AuthenticationFlowModel getClientAuthenticationFlow()
getClientAuthenticationFlow in interface RealmModelpublic void setClientAuthenticationFlow(AuthenticationFlowModel flow)
setClientAuthenticationFlow in interface RealmModelpublic AuthenticationFlowModel getDockerAuthenticationFlow()
getDockerAuthenticationFlow in interface RealmModelpublic void setDockerAuthenticationFlow(AuthenticationFlowModel flow)
setDockerAuthenticationFlow in interface RealmModelpublic Stream<AuthenticationFlowModel> getAuthenticationFlowsStream()
RealmModelgetAuthenticationFlowsStream in interface RealmModelAuthenticationFlowModel. Never returns null.public AuthenticationFlowModel getFlowByAlias(String alias)
getFlowByAlias in interface RealmModelpublic AuthenticatorConfigModel getAuthenticatorConfigByAlias(String alias)
getAuthenticatorConfigByAlias in interface RealmModelpublic AuthenticationFlowModel addAuthenticationFlow(AuthenticationFlowModel model)
addAuthenticationFlow in interface RealmModelpublic AuthenticationFlowModel getAuthenticationFlowById(String id)
getAuthenticationFlowById in interface RealmModelpublic void removeAuthenticationFlow(AuthenticationFlowModel model)
removeAuthenticationFlow in interface RealmModelpublic void updateAuthenticationFlow(AuthenticationFlowModel model)
updateAuthenticationFlow in interface RealmModelpublic Stream<AuthenticationExecutionModel> getAuthenticationExecutionsStream(String flowId)
RealmModelAuthenticationExecutionModel as a stream.
It should be used with forEachOrdered if the ordering is required.getAuthenticationExecutionsStream in interface RealmModelflowId - String Id of the flow.AuthenticationExecutionModel. Never returns null.public AuthenticationExecutionModel getAuthenticationExecutionById(String id)
getAuthenticationExecutionById in interface RealmModelpublic AuthenticationExecutionModel getAuthenticationExecutionByFlowId(String flowId)
getAuthenticationExecutionByFlowId in interface RealmModelpublic AuthenticationExecutionModel addAuthenticatorExecution(AuthenticationExecutionModel model)
addAuthenticatorExecution in interface RealmModelpublic void updateAuthenticatorExecution(AuthenticationExecutionModel model)
updateAuthenticatorExecution in interface RealmModelpublic void removeAuthenticatorExecution(AuthenticationExecutionModel model)
removeAuthenticatorExecution in interface RealmModelpublic Stream<AuthenticatorConfigModel> getAuthenticatorConfigsStream()
RealmModelgetAuthenticatorConfigsStream in interface RealmModelAuthenticatorConfigModel. Never returns null.public AuthenticatorConfigModel addAuthenticatorConfig(AuthenticatorConfigModel model)
addAuthenticatorConfig in interface RealmModelpublic void updateAuthenticatorConfig(AuthenticatorConfigModel model)
updateAuthenticatorConfig in interface RealmModelpublic void removeAuthenticatorConfig(AuthenticatorConfigModel model)
removeAuthenticatorConfig in interface RealmModelpublic AuthenticatorConfigModel getAuthenticatorConfigById(String id)
getAuthenticatorConfigById in interface RealmModelpublic Stream<RequiredActionProviderModel> getRequiredActionProvidersStream()
RealmModelRequiredActionProviderModel as a stream.
It should be used with forEachOrdered if the ordering is required.getRequiredActionProvidersStream in interface RealmModelRequiredActionProviderModel. Never returns null.public RequiredActionProviderModel addRequiredActionProvider(RequiredActionProviderModel model)
addRequiredActionProvider in interface RealmModelpublic void updateRequiredActionProvider(RequiredActionProviderModel model)
updateRequiredActionProvider in interface RealmModelpublic void removeRequiredActionProvider(RequiredActionProviderModel model)
removeRequiredActionProvider in interface RealmModelpublic RequiredActionProviderModel getRequiredActionProviderById(String id)
getRequiredActionProviderById in interface RealmModelpublic RequiredActionProviderModel getRequiredActionProviderByAlias(String alias)
getRequiredActionProviderByAlias in interface RealmModelpublic GroupModel createGroup(String id, String name, GroupModel toParent)
createGroup in interface RealmModelpublic void moveGroup(GroupModel group, GroupModel toParent)
moveGroup in interface RealmModelpublic GroupModel getGroupById(String id)
getGroupById in interface RealmModelpublic Stream<GroupModel> getGroupsStream()
RealmModelgetGroupsStream in interface RealmModelGroupModel. Never returns null.public Long getGroupsCount(Boolean onlyTopGroups)
getGroupsCount in interface RealmModelpublic Long getGroupsCountByNameContaining(String search)
getGroupsCountByNameContaining in interface RealmModelpublic Stream<GroupModel> getTopLevelGroupsStream()
RealmModelgetTopLevelGroupsStream in interface RealmModelGroupModel. Never returns null.public Stream<GroupModel> getTopLevelGroupsStream(Integer first, Integer max)
RealmModelgetTopLevelGroupsStream in interface RealmModelfirst - Integer Index of the first desired group. Ignored if negative or null.max - Integer Maximum number of returned groups. Ignored if negative or null.GroupModel. Never returns null.public Stream<GroupModel> searchForGroupByNameStream(String search, Integer first, Integer max)
RealmModelsearchForGroupByNameStream in interface RealmModelsearch - String Name of a group to be used as a filter.first - Integer Index of the first desired group. Ignored if negative or null.max - Integer Maximum number of returned groups. Ignored if negative or null.GroupModel. Never returns null.public boolean removeGroup(GroupModel group)
removeGroup in interface RealmModelpublic Stream<ClientScopeModel> getClientScopesStream()
RealmModelgetClientScopesStream in interface RealmModelClientScopeModel. Never returns null.public ClientScopeModel addClientScope(String name)
RealmModeladdClientScope in interface RealmModelname - String name of the client scope.public ClientScopeModel addClientScope(String id, String name)
RealmModeladdClientScope in interface RealmModelid - String id of the client scope.name - String name of the client scope.public boolean removeClientScope(String id)
RealmModelid from this realm.removeClientScope in interface RealmModelid - of the client scopepublic ClientScopeModel getClientScopeById(String id)
getClientScopeById in interface RealmModelid - of the client scopeid, or null when the scope does not exist.public void addDefaultClientScope(ClientScopeModel clientScope, boolean defaultScope)
RealmModeladdDefaultClientScope in interface RealmModelclientScope - to be addeddefaultScope - if true the scope will be added among default client scopes,
if false it will be added among optional client scopespublic void removeDefaultClientScope(ClientScopeModel clientScope)
RealmModelremoveDefaultClientScope in interface RealmModelclientScope - to be removedpublic Stream<ClientScopeModel> getDefaultClientScopesStream(boolean defaultScope)
RealmModelgetDefaultClientScopesStream in interface RealmModeldefaultScope - if true default client scopes are returned,
if false optional client scopes are returned.ClientScopeModel. Never returns null.public ComponentModel addComponentModel(ComponentModel model)
RealmModeladdComponentModel in interface RealmModelpublic ComponentModel importComponentModel(ComponentModel model)
RealmModelimportComponentModel in interface RealmModelpublic void executeEvictions(ComponentModel model)
public void updateComponent(ComponentModel component)
RealmModelupdateComponent in interface RealmModelcomponent - to be updatedpublic void removeComponent(ComponentModel component)
RealmModelthis.removeComponents(component.getId()).removeComponent in interface RealmModelcomponent - to be removedpublic void removeComponents(String parentId)
RealmModelparentIdremoveComponents in interface RealmModelparentId - String id of parentpublic Stream<ComponentModel> getComponentsStream(String parentId, String providerType)
RealmModelgetComponentsStream in interface RealmModelparentId - String id of parentproviderType - String type of providerComponentModel. Never returns null.public Stream<ComponentModel> getComponentsStream(String parentId)
RealmModelgetComponentsStream in interface RealmModelparentId - String id of parentComponentModel. Never returns null.public Stream<ComponentModel> getComponentsStream()
RealmModelgetComponentsStream in interface RealmModelComponentModel. Never returns null.public ComponentModel getComponent(String id)
getComponent in interface RealmModelpublic void setAttribute(String name, String value)
setAttribute in interface RealmModelpublic void setAttribute(String name, Boolean value)
setAttribute in interface RealmModelpublic void setAttribute(String name, Integer value)
setAttribute in interface RealmModelpublic void setAttribute(String name, Long value)
setAttribute in interface RealmModelpublic void removeAttribute(String name)
removeAttribute in interface RealmModelpublic String getAttribute(String name)
getAttribute in interface RealmModelpublic Integer getAttribute(String name, Integer defaultValue)
getAttribute in interface RealmModelpublic Long getAttribute(String name, Long defaultValue)
getAttribute in interface RealmModelpublic Boolean getAttribute(String name, Boolean defaultValue)
getAttribute in interface RealmModelpublic Map<String,String> getAttributes()
getAttributes in interface RealmModelpublic void patchRealmLocalizationTexts(String locale, Map<String,String> localizationTexts)
RealmModelpatchRealmLocalizationTexts in interface RealmModelpublic boolean removeRealmLocalizationTexts(String locale)
removeRealmLocalizationTexts in interface RealmModelpublic Map<String,Map<String,String>> getRealmLocalizationTexts()
getRealmLocalizationTexts in interface RealmModelpublic Map<String,String> getRealmLocalizationTextsByLocale(String locale)
getRealmLocalizationTextsByLocale in interface RealmModelpublic ClientInitialAccessModel createClientInitialAccessModel(int expiration, int count)
createClientInitialAccessModel in interface RealmModelpublic ClientInitialAccessModel getClientInitialAccessModel(String id)
getClientInitialAccessModel in interface RealmModelpublic void removeClientInitialAccessModel(String id)
removeClientInitialAccessModel in interface RealmModelpublic Stream<ClientInitialAccessModel> getClientInitialAccesses()
getClientInitialAccesses in interface RealmModelpublic void decreaseRemainingCount(ClientInitialAccessModel clientInitialAccess)
decreaseRemainingCount in interface RealmModelCopyright © 2021 JBoss by Red Hat. All rights reserved.