public abstract class MapRealmAdapter<K> extends AbstractRealmModel<MapRealmEntity<K>> implements RealmModel
RealmModel.IdentityProviderRemovedEvent, RealmModel.IdentityProviderUpdatedEvent, RealmModel.RealmCreationEvent, RealmModel.RealmPostCreateEvent, RealmModel.RealmRemovedEvent, RealmModel.SearchableFields
RoleContainerModel.RoleRemovedEvent
entity, session
COMPARE_BY_NAME
Constructor and Description |
---|
MapRealmAdapter(KeycloakSession session,
MapRealmEntity<K> entity) |
equals, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addToDefaultRoles, createGroup, createGroup, createGroup, getAlwaysDisplayInConsoleClients, getAttribute, getAttribute, getAttribute, getAuthenticationExecutions, getAuthenticationFlows, getAuthenticatorConfigs, getClients, getClients, getClientScopes, getClientStorageProviders, getClientStorageProvidersStream, getComponents, getComponents, getComponents, getDefaultClientScopes, getDefaultGroups, getEnabledEventTypes, getEventsListeners, getGroups, getId, getIdentityProviderMappers, getIdentityProviderMappersByAlias, getIdentityProviders, getRequiredActionProviders, getRequiredCredentials, getRoleStorageProviders, getRoleStorageProvidersStream, getStorageProviders, getSupportedLocales, getTopLevelGroups, getTopLevelGroups, getUserStorageProviders, getUserStorageProvidersStream, searchClientByClientId, searchForGroupByName, setAttribute, setAttribute, setAttribute
getDefaultRoles, getRoles, getRoles, searchForRoles, updateDefaultRoles
public MapRealmAdapter(KeycloakSession session, MapRealmEntity<K> entity)
public String getName()
getName
in interface RealmModel
public void setName(String name)
setName
in interface RealmModel
public String getDisplayName()
getDisplayName
in interface RealmModel
public void setDisplayName(String displayName)
setDisplayName
in interface RealmModel
public String getDisplayNameHtml()
getDisplayNameHtml
in interface RealmModel
public void setDisplayNameHtml(String displayNameHtml)
setDisplayNameHtml
in interface RealmModel
public boolean isEnabled()
isEnabled
in interface RealmModel
public void setEnabled(boolean enabled)
setEnabled
in interface RealmModel
public SslRequired getSslRequired()
getSslRequired
in interface RealmModel
public void setSslRequired(SslRequired sslRequired)
setSslRequired
in interface RealmModel
public boolean isRegistrationAllowed()
isRegistrationAllowed
in interface RealmModel
public void setRegistrationAllowed(boolean registrationAllowed)
setRegistrationAllowed
in interface RealmModel
public boolean isRegistrationEmailAsUsername()
isRegistrationEmailAsUsername
in interface RealmModel
public void setRegistrationEmailAsUsername(boolean registrationEmailAsUsername)
setRegistrationEmailAsUsername
in interface RealmModel
public boolean isRememberMe()
isRememberMe
in interface RealmModel
public void setRememberMe(boolean rememberMe)
setRememberMe
in interface RealmModel
public boolean isEditUsernameAllowed()
isEditUsernameAllowed
in interface RealmModel
public void setEditUsernameAllowed(boolean editUsernameAllowed)
setEditUsernameAllowed
in interface RealmModel
public boolean isUserManagedAccessAllowed()
isUserManagedAccessAllowed
in interface RealmModel
public void setUserManagedAccessAllowed(boolean userManagedAccessAllowed)
setUserManagedAccessAllowed
in interface RealmModel
public void setAttribute(String name, String value)
setAttribute
in interface RealmModel
public void removeAttribute(String name)
removeAttribute
in interface RealmModel
public String getAttribute(String name)
getAttribute
in interface RealmModel
public Map<String,String> getAttributes()
getAttributes
in interface RealmModel
public boolean isVerifyEmail()
isVerifyEmail
in interface RealmModel
public void setVerifyEmail(boolean verifyEmail)
setVerifyEmail
in interface RealmModel
public boolean isLoginWithEmailAllowed()
isLoginWithEmailAllowed
in interface RealmModel
public void setLoginWithEmailAllowed(boolean loginWithEmailAllowed)
setLoginWithEmailAllowed
in interface RealmModel
public boolean isDuplicateEmailsAllowed()
isDuplicateEmailsAllowed
in interface RealmModel
public void setDuplicateEmailsAllowed(boolean duplicateEmailsAllowed)
setDuplicateEmailsAllowed
in interface RealmModel
public boolean isResetPasswordAllowed()
isResetPasswordAllowed
in interface RealmModel
public void setResetPasswordAllowed(boolean resetPasswordAllowed)
setResetPasswordAllowed
in interface RealmModel
public boolean isRevokeRefreshToken()
isRevokeRefreshToken
in interface RealmModel
public void setRevokeRefreshToken(boolean revokeRefreshToken)
setRevokeRefreshToken
in interface RealmModel
public int getRefreshTokenMaxReuse()
getRefreshTokenMaxReuse
in interface RealmModel
public void setRefreshTokenMaxReuse(int revokeRefreshTokenCount)
setRefreshTokenMaxReuse
in interface RealmModel
public int getSsoSessionIdleTimeout()
getSsoSessionIdleTimeout
in interface RealmModel
public void setSsoSessionIdleTimeout(int seconds)
setSsoSessionIdleTimeout
in interface RealmModel
public int getSsoSessionMaxLifespan()
getSsoSessionMaxLifespan
in interface RealmModel
public void setSsoSessionMaxLifespan(int seconds)
setSsoSessionMaxLifespan
in interface RealmModel
public int getSsoSessionIdleTimeoutRememberMe()
getSsoSessionIdleTimeoutRememberMe
in interface RealmModel
public void setSsoSessionIdleTimeoutRememberMe(int seconds)
setSsoSessionIdleTimeoutRememberMe
in interface RealmModel
public int getSsoSessionMaxLifespanRememberMe()
getSsoSessionMaxLifespanRememberMe
in interface RealmModel
public void setSsoSessionMaxLifespanRememberMe(int seconds)
setSsoSessionMaxLifespanRememberMe
in interface RealmModel
public int getOfflineSessionIdleTimeout()
getOfflineSessionIdleTimeout
in interface RealmModel
public void setOfflineSessionIdleTimeout(int seconds)
setOfflineSessionIdleTimeout
in interface RealmModel
public int getAccessTokenLifespan()
getAccessTokenLifespan
in interface RealmModel
public int getClientSessionIdleTimeout()
getClientSessionIdleTimeout
in interface RealmModel
public void setClientSessionIdleTimeout(int seconds)
setClientSessionIdleTimeout
in interface RealmModel
public int getClientSessionMaxLifespan()
getClientSessionMaxLifespan
in interface RealmModel
public void setClientSessionMaxLifespan(int seconds)
setClientSessionMaxLifespan
in interface RealmModel
public int getClientOfflineSessionIdleTimeout()
getClientOfflineSessionIdleTimeout
in interface RealmModel
public void setClientOfflineSessionIdleTimeout(int seconds)
setClientOfflineSessionIdleTimeout
in interface RealmModel
public int getClientOfflineSessionMaxLifespan()
getClientOfflineSessionMaxLifespan
in interface RealmModel
public void setClientOfflineSessionMaxLifespan(int seconds)
setClientOfflineSessionMaxLifespan
in interface RealmModel
public void setAccessTokenLifespan(int seconds)
setAccessTokenLifespan
in interface RealmModel
public int getAccessTokenLifespanForImplicitFlow()
getAccessTokenLifespanForImplicitFlow
in interface RealmModel
public void setAccessTokenLifespanForImplicitFlow(int seconds)
setAccessTokenLifespanForImplicitFlow
in interface RealmModel
public int getAccessCodeLifespan()
getAccessCodeLifespan
in interface RealmModel
public void setAccessCodeLifespan(int seconds)
setAccessCodeLifespan
in interface RealmModel
public int getAccessCodeLifespanUserAction()
getAccessCodeLifespanUserAction
in interface RealmModel
public void setAccessCodeLifespanUserAction(int seconds)
setAccessCodeLifespanUserAction
in interface RealmModel
public int getAccessCodeLifespanLogin()
getAccessCodeLifespanLogin
in interface RealmModel
public void setAccessCodeLifespanLogin(int seconds)
setAccessCodeLifespanLogin
in interface RealmModel
public int getActionTokenGeneratedByAdminLifespan()
getActionTokenGeneratedByAdminLifespan
in interface RealmModel
public void setActionTokenGeneratedByAdminLifespan(int seconds)
setActionTokenGeneratedByAdminLifespan
in interface RealmModel
public int getActionTokenGeneratedByUserLifespan()
getActionTokenGeneratedByUserLifespan
in interface RealmModel
public void setActionTokenGeneratedByUserLifespan(int seconds)
setActionTokenGeneratedByUserLifespan
in interface RealmModel
public int getActionTokenGeneratedByUserLifespan(String actionTokenType)
getActionTokenGeneratedByUserLifespan
in interface RealmModel
public void setActionTokenGeneratedByUserLifespan(String actionTokenType, Integer seconds)
setActionTokenGeneratedByUserLifespan
in interface RealmModel
public Map<String,Integer> getUserActionTokenLifespans()
RealmModel
getUserActionTokenLifespans
in interface RealmModel
public Stream<RequiredCredentialModel> getRequiredCredentialsStream()
RealmModel
getRequiredCredentialsStream
in interface RealmModel
RequiredCredentialModel
. Never returns null
.public void addRequiredCredential(String cred)
addRequiredCredential
in interface RealmModel
public void updateRequiredCredentials(Set<String> credentials)
updateRequiredCredentials
in interface RealmModel
public PasswordPolicy getPasswordPolicy()
getPasswordPolicy
in interface RealmModel
public void setPasswordPolicy(PasswordPolicy policy)
setPasswordPolicy
in interface RealmModel
public OTPPolicy getOTPPolicy()
getOTPPolicy
in interface RealmModel
public void setOTPPolicy(OTPPolicy policy)
setOTPPolicy
in interface RealmModel
public RoleModel getRoleById(String id)
getRoleById
in interface RealmModel
public Stream<GroupModel> getDefaultGroupsStream()
RealmModel
getDefaultGroupsStream
in interface RealmModel
GroupModel
. Never returns null
.public void addDefaultGroup(GroupModel group)
addDefaultGroup
in interface RealmModel
public void removeDefaultGroup(GroupModel group)
removeDefaultGroup
in interface RealmModel
public Stream<ClientModel> getClientsStream()
RealmModel
getClientsStream
in interface RealmModel
ClientModel
. Never returns null
.public Stream<ClientModel> getClientsStream(Integer firstResult, Integer maxResults)
RealmModel
getClientsStream
in interface RealmModel
firstResult
- 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 RealmModel
public Stream<ClientModel> getAlwaysDisplayInConsoleClientsStream()
RealmModel
getAlwaysDisplayInConsoleClientsStream
in interface RealmModel
ClientModel
. Never returns null
.public ClientModel addClient(String name)
addClient
in interface RealmModel
public ClientModel addClient(String id, String clientId)
addClient
in interface RealmModel
public boolean removeClient(String id)
removeClient
in interface RealmModel
public ClientModel getClientById(String id)
getClientById
in interface RealmModel
public ClientModel getClientByClientId(String clientId)
getClientByClientId
in interface RealmModel
public Stream<ClientModel> searchClientByClientIdStream(String clientId, Integer firstResult, Integer maxResults)
RealmModel
searchClientByClientIdStream
in interface RealmModel
clientId
- 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 RealmModel
public Map<String,String> getSmtpConfig()
getSmtpConfig
in interface RealmModel
public void setSmtpConfig(Map<String,String> smtpConfig)
setSmtpConfig
in interface RealmModel
public AuthenticationFlowModel getBrowserFlow()
getBrowserFlow
in interface RealmModel
public void setBrowserFlow(AuthenticationFlowModel flow)
setBrowserFlow
in interface RealmModel
public AuthenticationFlowModel getRegistrationFlow()
getRegistrationFlow
in interface RealmModel
public void setRegistrationFlow(AuthenticationFlowModel flow)
setRegistrationFlow
in interface RealmModel
public AuthenticationFlowModel getDirectGrantFlow()
getDirectGrantFlow
in interface RealmModel
public void setDirectGrantFlow(AuthenticationFlowModel flow)
setDirectGrantFlow
in interface RealmModel
public AuthenticationFlowModel getResetCredentialsFlow()
getResetCredentialsFlow
in interface RealmModel
public void setResetCredentialsFlow(AuthenticationFlowModel flow)
setResetCredentialsFlow
in interface RealmModel
public AuthenticationFlowModel getClientAuthenticationFlow()
getClientAuthenticationFlow
in interface RealmModel
public void setClientAuthenticationFlow(AuthenticationFlowModel flow)
setClientAuthenticationFlow
in interface RealmModel
public AuthenticationFlowModel getDockerAuthenticationFlow()
getDockerAuthenticationFlow
in interface RealmModel
public void setDockerAuthenticationFlow(AuthenticationFlowModel flow)
setDockerAuthenticationFlow
in interface RealmModel
public Stream<AuthenticationFlowModel> getAuthenticationFlowsStream()
RealmModel
getAuthenticationFlowsStream
in interface RealmModel
AuthenticationFlowModel
. Never returns null
.public AuthenticationFlowModel getFlowByAlias(String alias)
getFlowByAlias
in interface RealmModel
public AuthenticationFlowModel addAuthenticationFlow(AuthenticationFlowModel model)
addAuthenticationFlow
in interface RealmModel
public AuthenticationFlowModel getAuthenticationFlowById(String flowId)
getAuthenticationFlowById
in interface RealmModel
public void removeAuthenticationFlow(AuthenticationFlowModel model)
removeAuthenticationFlow
in interface RealmModel
public void updateAuthenticationFlow(AuthenticationFlowModel model)
updateAuthenticationFlow
in interface RealmModel
public Stream<AuthenticationExecutionModel> getAuthenticationExecutionsStream(String flowId)
RealmModel
AuthenticationExecutionModel
as a stream.
It should be used with forEachOrdered if the ordering is required.getAuthenticationExecutionsStream
in interface RealmModel
flowId
- String
Id of the flow.AuthenticationExecutionModel
. Never returns null
.public AuthenticationExecutionModel getAuthenticationExecutionById(String id)
getAuthenticationExecutionById
in interface RealmModel
public AuthenticationExecutionModel getAuthenticationExecutionByFlowId(String flowId)
getAuthenticationExecutionByFlowId
in interface RealmModel
public AuthenticationExecutionModel addAuthenticatorExecution(AuthenticationExecutionModel model)
addAuthenticatorExecution
in interface RealmModel
public void updateAuthenticatorExecution(AuthenticationExecutionModel model)
updateAuthenticatorExecution
in interface RealmModel
public void removeAuthenticatorExecution(AuthenticationExecutionModel model)
removeAuthenticatorExecution
in interface RealmModel
public Stream<AuthenticatorConfigModel> getAuthenticatorConfigsStream()
RealmModel
getAuthenticatorConfigsStream
in interface RealmModel
AuthenticatorConfigModel
. Never returns null
.public AuthenticatorConfigModel addAuthenticatorConfig(AuthenticatorConfigModel model)
addAuthenticatorConfig
in interface RealmModel
public void updateAuthenticatorConfig(AuthenticatorConfigModel model)
updateAuthenticatorConfig
in interface RealmModel
public void removeAuthenticatorConfig(AuthenticatorConfigModel model)
removeAuthenticatorConfig
in interface RealmModel
public AuthenticatorConfigModel getAuthenticatorConfigById(String id)
getAuthenticatorConfigById
in interface RealmModel
public AuthenticatorConfigModel getAuthenticatorConfigByAlias(String alias)
getAuthenticatorConfigByAlias
in interface RealmModel
public Stream<RequiredActionProviderModel> getRequiredActionProvidersStream()
RealmModel
RequiredActionProviderModel
as a stream.
It should be used with forEachOrdered if the ordering is required.getRequiredActionProvidersStream
in interface RealmModel
RequiredActionProviderModel
. Never returns null
.public RequiredActionProviderModel addRequiredActionProvider(RequiredActionProviderModel model)
addRequiredActionProvider
in interface RealmModel
public void updateRequiredActionProvider(RequiredActionProviderModel model)
updateRequiredActionProvider
in interface RealmModel
public void removeRequiredActionProvider(RequiredActionProviderModel model)
removeRequiredActionProvider
in interface RealmModel
public RequiredActionProviderModel getRequiredActionProviderById(String id)
getRequiredActionProviderById
in interface RealmModel
public RequiredActionProviderModel getRequiredActionProviderByAlias(String alias)
getRequiredActionProviderByAlias
in interface RealmModel
public Stream<IdentityProviderModel> getIdentityProvidersStream()
RealmModel
getIdentityProvidersStream
in interface RealmModel
IdentityProviderModel
. Never returns null
.public IdentityProviderModel getIdentityProviderByAlias(String alias)
getIdentityProviderByAlias
in interface RealmModel
public void addIdentityProvider(IdentityProviderModel model)
addIdentityProvider
in interface RealmModel
public void removeIdentityProviderByAlias(String alias)
removeIdentityProviderByAlias
in interface RealmModel
public void updateIdentityProvider(IdentityProviderModel identityProvider)
updateIdentityProvider
in interface RealmModel
public Stream<IdentityProviderMapperModel> getIdentityProviderMappersStream()
RealmModel
getIdentityProviderMappersStream
in interface RealmModel
IdentityProviderMapperModel
. Never returns null
.public Stream<IdentityProviderMapperModel> getIdentityProviderMappersByAliasStream(String brokerAlias)
RealmModel
getIdentityProviderMappersByAliasStream
in interface RealmModel
brokerAlias
- String
Broker's alias to filter results.IdentityProviderMapperModel
Never returns null
.public IdentityProviderMapperModel addIdentityProviderMapper(IdentityProviderMapperModel model)
addIdentityProviderMapper
in interface RealmModel
public void removeIdentityProviderMapper(IdentityProviderMapperModel model)
removeIdentityProviderMapper
in interface RealmModel
public void updateIdentityProviderMapper(IdentityProviderMapperModel model)
updateIdentityProviderMapper
in interface RealmModel
public IdentityProviderMapperModel getIdentityProviderMapperById(String id)
getIdentityProviderMapperById
in interface RealmModel
public IdentityProviderMapperModel getIdentityProviderMapperByName(String brokerAlias, String name)
getIdentityProviderMapperByName
in interface RealmModel
public ComponentModel addComponentModel(ComponentModel model)
RealmModel
addComponentModel
in interface RealmModel
public ComponentModel importComponentModel(ComponentModel model)
RealmModel
importComponentModel
in interface RealmModel
public void updateComponent(ComponentModel component)
RealmModel
updateComponent
in interface RealmModel
component
- to be updatedpublic void removeComponent(ComponentModel component)
RealmModel
this.removeComponents(component.getId())
.removeComponent
in interface RealmModel
component
- to be removedpublic void removeComponents(String parentId)
RealmModel
parentId
removeComponents
in interface RealmModel
parentId
- String
id of parentpublic Stream<ComponentModel> getComponentsStream()
RealmModel
getComponentsStream
in interface RealmModel
ComponentModel
. Never returns null
.public Stream<ComponentModel> getComponentsStream(String parentId)
RealmModel
getComponentsStream
in interface RealmModel
parentId
- String
id of parentComponentModel
. Never returns null
.public Stream<ComponentModel> getComponentsStream(String parentId, String providerType)
RealmModel
getComponentsStream
in interface RealmModel
parentId
- String
id of parentproviderType
- String
type of providerComponentModel
. Never returns null
.public ComponentModel getComponent(String id)
getComponent
in interface RealmModel
public String getLoginTheme()
getLoginTheme
in interface RealmModel
public void setLoginTheme(String name)
setLoginTheme
in interface RealmModel
public String getAccountTheme()
getAccountTheme
in interface RealmModel
public void setAccountTheme(String name)
setAccountTheme
in interface RealmModel
public String getAdminTheme()
getAdminTheme
in interface RealmModel
public void setAdminTheme(String name)
setAdminTheme
in interface RealmModel
public String getEmailTheme()
getEmailTheme
in interface RealmModel
public void setEmailTheme(String name)
setEmailTheme
in interface RealmModel
public int getNotBefore()
RealmModel
getNotBefore
in interface RealmModel
public void setNotBefore(int notBefore)
setNotBefore
in interface RealmModel
public boolean isEventsEnabled()
isEventsEnabled
in interface RealmModel
public void setEventsEnabled(boolean enabled)
setEventsEnabled
in interface RealmModel
public long getEventsExpiration()
getEventsExpiration
in interface RealmModel
public void setEventsExpiration(long expiration)
setEventsExpiration
in interface RealmModel
public Stream<String> getEventsListenersStream()
RealmModel
getEventsListenersStream
in interface RealmModel
String
. Never returns null
.public void setEventsListeners(Set<String> listeners)
setEventsListeners
in interface RealmModel
public Stream<String> getEnabledEventTypesStream()
RealmModel
getEnabledEventTypesStream
in interface RealmModel
String
. Never returns null
.public void setEnabledEventTypes(Set<String> enabledEventTypes)
setEnabledEventTypes
in interface RealmModel
public boolean isAdminEventsEnabled()
isAdminEventsEnabled
in interface RealmModel
public void setAdminEventsEnabled(boolean enabled)
setAdminEventsEnabled
in interface RealmModel
public boolean isAdminEventsDetailsEnabled()
isAdminEventsDetailsEnabled
in interface RealmModel
public void setAdminEventsDetailsEnabled(boolean enabled)
setAdminEventsDetailsEnabled
in interface RealmModel
public ClientModel getMasterAdminClient()
getMasterAdminClient
in interface RealmModel
public void setMasterAdminClient(ClientModel client)
setMasterAdminClient
in interface RealmModel
public RoleModel getDefaultRole()
RealmModel
getDefaultRole
in interface RealmModel
public void setDefaultRole(RoleModel role)
RealmModel
setDefaultRole
in interface RealmModel
role
- to be setpublic boolean isIdentityFederationEnabled()
isIdentityFederationEnabled
in interface RealmModel
public boolean isInternationalizationEnabled()
isInternationalizationEnabled
in interface RealmModel
public void setInternationalizationEnabled(boolean enabled)
setInternationalizationEnabled
in interface RealmModel
public Stream<String> getSupportedLocalesStream()
RealmModel
getSupportedLocalesStream
in interface RealmModel
String
. Never returns null
.public void setSupportedLocales(Set<String> locales)
setSupportedLocales
in interface RealmModel
public String getDefaultLocale()
getDefaultLocale
in interface RealmModel
public void setDefaultLocale(String locale)
setDefaultLocale
in interface RealmModel
public GroupModel createGroup(String id, String name, GroupModel toParent)
createGroup
in interface RealmModel
public GroupModel getGroupById(String id)
getGroupById
in interface RealmModel
public Stream<GroupModel> getGroupsStream()
RealmModel
getGroupsStream
in interface RealmModel
GroupModel
. Never returns null
.public Long getGroupsCount(Boolean onlyTopGroups)
getGroupsCount
in interface RealmModel
public Long getGroupsCountByNameContaining(String search)
getGroupsCountByNameContaining
in interface RealmModel
public Stream<GroupModel> getTopLevelGroupsStream()
RealmModel
getTopLevelGroupsStream
in interface RealmModel
GroupModel
. Never returns null
.public Stream<GroupModel> getTopLevelGroupsStream(Integer first, Integer max)
RealmModel
getTopLevelGroupsStream
in interface RealmModel
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 Stream<GroupModel> searchForGroupByNameStream(String search, Integer first, Integer max)
RealmModel
searchForGroupByNameStream
in interface RealmModel
search
- 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 RealmModel
public void moveGroup(GroupModel group, GroupModel toParent)
moveGroup
in interface RealmModel
public Stream<ClientScopeModel> getClientScopesStream()
RealmModel
getClientScopesStream
in interface RealmModel
ClientScopeModel
. Never returns null
.public ClientScopeModel addClientScope(String name)
RealmModel
addClientScope
in interface RealmModel
name
- String
name of the client scope.public ClientScopeModel addClientScope(String id, String name)
RealmModel
addClientScope
in interface RealmModel
id
- String
id of the client scope.name
- String
name of the client scope.public boolean removeClientScope(String id)
RealmModel
id
from this realm.removeClientScope
in interface RealmModel
id
- of the client scopepublic ClientScopeModel getClientScopeById(String id)
getClientScopeById
in interface RealmModel
id
- of the client scopeid
, or null
when the scope does not exist.public void addDefaultClientScope(ClientScopeModel clientScope, boolean defaultScope)
RealmModel
addDefaultClientScope
in interface RealmModel
clientScope
- 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)
RealmModel
removeDefaultClientScope
in interface RealmModel
clientScope
- to be removedpublic Stream<ClientScopeModel> getDefaultClientScopesStream(boolean defaultScope)
RealmModel
getDefaultClientScopesStream
in interface RealmModel
defaultScope
- if true
default client scopes are returned,
if false
optional client scopes are returned.ClientScopeModel
. Never returns null
.public void patchRealmLocalizationTexts(String locale, Map<String,String> localizationTexts)
RealmModel
patchRealmLocalizationTexts
in interface RealmModel
public boolean removeRealmLocalizationTexts(String locale)
removeRealmLocalizationTexts
in interface RealmModel
public Map<String,Map<String,String>> getRealmLocalizationTexts()
getRealmLocalizationTexts
in interface RealmModel
public Map<String,String> getRealmLocalizationTextsByLocale(String locale)
getRealmLocalizationTextsByLocale
in interface RealmModel
public RoleModel getRole(String name)
getRole
in interface RoleContainerModel
public RoleModel addRole(String name)
addRole
in interface RoleContainerModel
public RoleModel addRole(String id, String name)
addRole
in interface RoleContainerModel
public boolean removeRole(RoleModel role)
removeRole
in interface RoleContainerModel
public Stream<RoleModel> getRolesStream()
RoleContainerModel
getRolesStream
in interface RoleContainerModel
RoleModel
. Never returns null
.public Stream<RoleModel> getRolesStream(Integer firstResult, Integer maxResults)
RoleContainerModel
getRolesStream
in interface RoleContainerModel
firstResult
- Integer
Index of the first desired role. Ignored if negative or null
.maxResults
- 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)
RoleContainerModel
searchForRolesStream
in interface RoleContainerModel
search
- 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
.@Deprecated public Stream<String> getDefaultRolesStream()
getDefaultRolesStream
in interface RoleContainerModel
@Deprecated public void addDefaultRole(String name)
addDefaultRole
in interface RoleContainerModel
@Deprecated public void removeDefaultRoles(String... defaultRoles)
removeDefaultRoles
in interface RoleContainerModel
public boolean isBruteForceProtected()
isBruteForceProtected
in interface RealmModel
public void setBruteForceProtected(boolean value)
setBruteForceProtected
in interface RealmModel
public boolean isPermanentLockout()
isPermanentLockout
in interface RealmModel
public void setPermanentLockout(boolean val)
setPermanentLockout
in interface RealmModel
public int getMaxFailureWaitSeconds()
getMaxFailureWaitSeconds
in interface RealmModel
public void setMaxFailureWaitSeconds(int val)
setMaxFailureWaitSeconds
in interface RealmModel
public int getWaitIncrementSeconds()
getWaitIncrementSeconds
in interface RealmModel
public void setWaitIncrementSeconds(int val)
setWaitIncrementSeconds
in interface RealmModel
public int getMinimumQuickLoginWaitSeconds()
getMinimumQuickLoginWaitSeconds
in interface RealmModel
public void setMinimumQuickLoginWaitSeconds(int val)
setMinimumQuickLoginWaitSeconds
in interface RealmModel
public long getQuickLoginCheckMilliSeconds()
getQuickLoginCheckMilliSeconds
in interface RealmModel
public void setQuickLoginCheckMilliSeconds(long val)
setQuickLoginCheckMilliSeconds
in interface RealmModel
public int getMaxDeltaTimeSeconds()
getMaxDeltaTimeSeconds
in interface RealmModel
public void setMaxDeltaTimeSeconds(int val)
setMaxDeltaTimeSeconds
in interface RealmModel
public int getFailureFactor()
getFailureFactor
in interface RealmModel
public void setFailureFactor(int failureFactor)
setFailureFactor
in interface RealmModel
public String getDefaultSignatureAlgorithm()
getDefaultSignatureAlgorithm
in interface RealmModel
public void setDefaultSignatureAlgorithm(String defaultSignatureAlgorithm)
setDefaultSignatureAlgorithm
in interface RealmModel
public boolean isOfflineSessionMaxLifespanEnabled()
isOfflineSessionMaxLifespanEnabled
in interface RealmModel
public void setOfflineSessionMaxLifespanEnabled(boolean offlineSessionMaxLifespanEnabled)
setOfflineSessionMaxLifespanEnabled
in interface RealmModel
public int getOfflineSessionMaxLifespan()
getOfflineSessionMaxLifespan
in interface RealmModel
public void setOfflineSessionMaxLifespan(int seconds)
setOfflineSessionMaxLifespan
in interface RealmModel
public WebAuthnPolicy getWebAuthnPolicy()
getWebAuthnPolicy
in interface RealmModel
public void setWebAuthnPolicy(WebAuthnPolicy policy)
RealmModel
setWebAuthnPolicy
in interface RealmModel
public WebAuthnPolicy getWebAuthnPolicyPasswordless()
getWebAuthnPolicyPasswordless
in interface RealmModel
public void setWebAuthnPolicyPasswordless(WebAuthnPolicy policy)
RealmModel
setWebAuthnPolicyPasswordless
in interface RealmModel
public Map<String,String> getBrowserSecurityHeaders()
getBrowserSecurityHeaders
in interface RealmModel
public void setBrowserSecurityHeaders(Map<String,String> headers)
setBrowserSecurityHeaders
in interface RealmModel
public ClientInitialAccessModel createClientInitialAccessModel(int expiration, int count)
createClientInitialAccessModel
in interface RealmModel
public ClientInitialAccessModel getClientInitialAccessModel(String id)
getClientInitialAccessModel
in interface RealmModel
public void removeClientInitialAccessModel(String id)
removeClientInitialAccessModel
in interface RealmModel
public Stream<ClientInitialAccessModel> getClientInitialAccesses()
getClientInitialAccesses
in interface RealmModel
public void decreaseRemainingCount(ClientInitialAccessModel model)
decreaseRemainingCount
in interface RealmModel
public OAuth2DeviceConfig getOAuth2DeviceConfig()
getOAuth2DeviceConfig
in interface RealmModel
public CibaConfig getCibaPolicy()
getCibaPolicy
in interface RealmModel
Copyright © 2021 JBoss by Red Hat. All rights reserved.