Class RealmAdapter
java.lang.Object
org.keycloak.models.cache.infinispan.RealmAdapter
- All Implemented Interfaces:
CachedRealmModel
,RealmModel
,RoleContainerModel
,StorageProviderRealmModel
- 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
Nested classes/interfaces inherited from interface org.keycloak.models.RoleContainerModel
RoleContainerModel.RoleRemovedEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected CachedRealm
protected RealmCacheSession
protected boolean
protected KeycloakSession
protected RealmModel
Fields inherited from interface org.keycloak.models.RealmModel
COMPARE_BY_NAME
-
Constructor Summary
ConstructorDescriptionRealmAdapter
(KeycloakSession session, CachedRealm cached, RealmCacheSession cacheSession) -
Method Summary
Modifier and TypeMethodDescriptionaddClientScope
(String name) Creates new client scope with the given name.addClientScope
(String id, String name) Creates new client scope with the given internal ID and name.addComponentModel
(ComponentModel model) Adds component model.void
addDefaultClientScope
(ClientScopeModel clientScope, boolean defaultScope) Adds given client scope among default/optional client scopes of this realm.void
addDefaultGroup
(GroupModel group) void
addIdentityProvider
(IdentityProviderModel identityProvider) void
addRequiredCredential
(String cred) void
addToDefaultRoles
(RoleModel role) Adds a role as a composite to default role of this realm.createClientInitialAccessModel
(int expiration, int count) createGroup
(String id, String name, GroupModel toParent) void
createOrUpdateRealmLocalizationTexts
(String locale, Map<String, String> localizationTexts) Creates or updates the realm-specific localization texts for the given locale.void
decreaseRemainingCount
(ClientInitialAccessModel clientInitialAccess) boolean
void
executeEvictions
(ComponentModel model) int
int
int
int
int
int
int
int
getActionTokenGeneratedByUserLifespan
(String actionTokenId) Returns clients which are always displayed in the admin console as a stream.getAttribute
(String name) getAttribute
(String name, Boolean defaultValue) getAttribute
(String name, Integer defaultValue) getAttribute
(String name, Long defaultValue) Returns sorted (according to priority)AuthenticationExecutionModel
as a stream.Returns authentications flows as a stream.Returns authentication configs as a stream.Returns a map that contains custom things that are cached along with this model.long
When was the model was loaded from database.getClientByClientId
(String clientId) getClientById
(String id) int
int
Returns all client scopes of this realm as a stream.int
int
Returns clients as a stream.getClientsStream
(Integer firstResult, Integer maxResults) Returns clients as a stream.getComponent
(String id) Returns stream of component models.getComponentsStream
(String parentId) Returns stream of ComponentModels for specific parentId.getComponentsStream
(String parentId, String providerType) Returns stream of ComponentModels for specific parentId and providerType.getDefaultClientScopesStream
(boolean defaultScope) Returns default client scopes of this realm either default ones or optional ones.Returns default groups as a stream.Returns default realm role.Invalidates the cache for this model and returns a delegate that represents the actual data providerReturns enabled event types as a stream.long
Returns events listeners as a stream.int
getFlowByAlias
(String alias) getGroupById
(String id) getGroupsCount
(Boolean onlyTopGroups) getGroupsCountByNameContaining
(String search) Returns groups as a stream.getId()
getIdentityProviderByAlias
(String alias) getIdentityProviderMapperByName
(String alias, String name) getIdentityProviderMappersByAliasStream
(String brokerAlias) Returns identity provider mappers by the provided alias as a stream.Returns identity provider mappers as a stream.Returns identity providers as a stream.int
int
int
int
getName()
int
Time in seconds since epocint
int
long
int
Returns sortedRequiredActionProviderModel
as a stream.Returns required credentials as a stream.getRoleById
(String id) Returns available roles as a stream.getRolesStream
(Integer first, Integer max) Returns available roles as a stream.int
int
int
int
Returns supported locales as a stream.getTopLevelGroupsStream
(Integer first, Integer max) This method will return a map with all the lifespans available or an empty map, but never null.int
int
hashCode()
Adds component model.void
Invalidate the cache for this modelprotected void
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
protected boolean
boolean
boolean
boolean
void
moveGroup
(GroupModel group, GroupModel toParent) void
removeAttribute
(String name) void
void
void
boolean
removeClient
(String id) void
boolean
Removes client scope with givenid
from this realm.void
removeComponent
(ComponentModel component) Removes given component.void
removeComponents
(String parentId) Removes all components with givenparentId
void
removeDefaultClientScope
(ClientScopeModel clientScope) Removes given client scope from default or optional client scopes of this realm.void
removeDefaultGroup
(GroupModel group) boolean
removeGroup
(GroupModel group) void
void
boolean
removeRealmLocalizationTexts
(String locale) void
void
boolean
removeRole
(RoleModel role) searchClientByAuthenticationFlowBindingOverrides
(Map<String, String> overrides, Integer firstResult, Integer maxResults) searchClientByClientIdStream
(String clientId, Integer firstResult, Integer maxResults) Search for clients by provided client's id.searchForRolesStream
(String search, Integer first, Integer max) Searches roles by the given name.void
setAccessCodeLifespan
(int seconds) void
setAccessCodeLifespanLogin
(int seconds) void
setAccessCodeLifespanUserAction
(int seconds) void
setAccessTokenLifespan
(int seconds) void
setAccessTokenLifespanForImplicitFlow
(int seconds) void
setAccountTheme
(String name) void
setActionTokenGeneratedByAdminLifespan
(int seconds) void
setActionTokenGeneratedByUserLifespan
(int seconds) void
setActionTokenGeneratedByUserLifespan
(String actionTokenId, Integer seconds) void
setAdminEventsDetailsEnabled
(boolean enabled) void
setAdminEventsEnabled
(boolean enabled) void
setAdminPermissionsEnabled
(boolean adminPermissionsEnabled) void
setAdminTheme
(String name) void
setAttribute
(String name, Boolean value) void
setAttribute
(String name, Integer value) void
setAttribute
(String name, Long value) void
setAttribute
(String name, String value) void
void
setBrowserSecurityHeaders
(Map<String, String> headers) void
setBruteForceProtected
(boolean value) void
void
void
setClientOfflineSessionIdleTimeout
(int seconds) void
setClientOfflineSessionMaxLifespan
(int seconds) void
setClientSessionIdleTimeout
(int seconds) void
setClientSessionMaxLifespan
(int seconds) void
setDefaultLocale
(String locale) void
setDefaultRole
(RoleModel role) Sets default role for this realmvoid
setDefaultSignatureAlgorithm
(String defaultSignatureAlgorithm) void
void
setDisplayName
(String displayName) void
setDisplayNameHtml
(String displayNameHtml) void
void
setDuplicateEmailsAllowed
(boolean duplicateEmailsAllowed) void
setEditUsernameAllowed
(boolean editUsernameAllowed) void
setEmailTheme
(String name) void
setEnabled
(boolean enabled) void
setEnabledEventTypes
(Set<String> enabledEventTypes) void
setEventsEnabled
(boolean enabled) void
setEventsExpiration
(long expiration) void
setEventsListeners
(Set<String> listeners) void
setFailureFactor
(int failureFactor) void
void
setInternationalizationEnabled
(boolean enabled) void
setLoginTheme
(String name) void
setLoginWithEmailAllowed
(boolean loginWithEmailAllowed) void
setMasterAdminClient
(ClientModel client) void
setMaxDeltaTimeSeconds
(int val) void
setMaxFailureWaitSeconds
(int val) void
setMaxTemporaryLockouts
(int val) void
setMinimumQuickLoginWaitSeconds
(int val) void
void
setNotBefore
(int notBefore) void
setOfflineSessionIdleTimeout
(int seconds) void
setOfflineSessionMaxLifespan
(int seconds) void
setOfflineSessionMaxLifespanEnabled
(boolean offlineSessionMaxLifespanEnabled) void
setOrganizationsEnabled
(boolean organizationsEnabled) void
setOTPPolicy
(OTPPolicy policy) void
setPasswordPolicy
(PasswordPolicy policy) void
setPermanentLockout
(boolean val) void
setQuickLoginCheckMilliSeconds
(long val) void
setRefreshTokenMaxReuse
(int refreshTokenMaxReuse) void
setRegistrationAllowed
(boolean registrationAllowed) void
setRegistrationEmailAsUsername
(boolean registrationEmailAsUsername) void
void
setRememberMe
(boolean rememberMe) void
void
setResetPasswordAllowed
(boolean resetPasswordAllowed) void
setRevokeRefreshToken
(boolean revokeRefreshToken) void
setSmtpConfig
(Map<String, String> smtpConfig) void
setSslRequired
(SslRequired sslRequired) void
setSsoSessionIdleTimeout
(int seconds) void
setSsoSessionIdleTimeoutRememberMe
(int seconds) void
setSsoSessionMaxLifespan
(int seconds) void
setSsoSessionMaxLifespanRememberMe
(int seconds) void
setSupportedLocales
(Set<String> locales) void
setUserManagedAccessAllowed
(boolean userManagedAccessAllowed) void
setVerifiableCredentialsEnabled
(boolean verifiableCredentialsEnabled) void
setVerifyEmail
(boolean verifyEmail) void
setWaitIncrementSeconds
(int val) void
setWebAuthnPolicy
(WebAuthnPolicy policy) Set WebAuthn policy for 2-factor authenticationvoid
Set WebAuthn passwordless policy below.toString()
void
void
void
void
updateComponent
(ComponentModel component) Updates component model.void
updateIdentityProvider
(IdentityProviderModel identityProvider) void
void
void
void
updateRequiredCredentials
(Set<String> creds) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.keycloak.models.RealmModel
createGroup, createGroup, createGroup, getStorageProviders
Methods inherited from interface org.keycloak.models.StorageProviderRealmModel
getClientStorageProviders, getClientStorageProvidersStream, getRoleStorageProviders, getRoleStorageProvidersStream, getUserStorageProviders, getUserStorageProvidersStream
-
Field Details
-
cached
-
cacheSession
-
updated
-
session
-
invalidated
protected volatile boolean invalidated
-
-
Constructor Details
-
RealmAdapter
-
-
Method Details
-
getDelegateForUpdate
Description copied from interface:CachedRealmModel
Invalidates the cache for this model and returns a delegate that represents the actual data provider- Specified by:
getDelegateForUpdate
in interfaceCachedRealmModel
- Returns:
-
invalidateFlag
protected void invalidateFlag() -
invalidate
public void invalidate()Description copied from interface:CachedRealmModel
Invalidate the cache for this model- Specified by:
invalidate
in interfaceCachedRealmModel
-
getCacheTimestamp
public long getCacheTimestamp()Description copied from interface:CachedRealmModel
When was the model was loaded from database.- Specified by:
getCacheTimestamp
in interfaceCachedRealmModel
- Returns:
-
getCachedWith
Description copied from interface:CachedRealmModel
Returns a map that contains custom things that are cached along with this model. You can write to this map.- Specified by:
getCachedWith
in interfaceCachedRealmModel
- Returns:
-
isUpdated
protected boolean isUpdated() -
getId
- Specified by:
getId
in interfaceRealmModel
- Specified by:
getId
in interfaceRoleContainerModel
-
getName
- Specified by:
getName
in interfaceRealmModel
-
setName
- Specified by:
setName
in interfaceRealmModel
-
getDisplayName
- Specified by:
getDisplayName
in interfaceRealmModel
-
setDisplayName
- Specified by:
setDisplayName
in interfaceRealmModel
-
getDisplayNameHtml
- Specified by:
getDisplayNameHtml
in interfaceRealmModel
-
setDisplayNameHtml
- Specified by:
setDisplayNameHtml
in interfaceRealmModel
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceRealmModel
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfaceRealmModel
-
isUserManagedAccessAllowed
public boolean isUserManagedAccessAllowed()- Specified by:
isUserManagedAccessAllowed
in interfaceRealmModel
-
setUserManagedAccessAllowed
public void setUserManagedAccessAllowed(boolean userManagedAccessAllowed) - Specified by:
setUserManagedAccessAllowed
in interfaceRealmModel
-
getSslRequired
- Specified by:
getSslRequired
in interfaceRealmModel
-
setSslRequired
- Specified by:
setSslRequired
in interfaceRealmModel
-
isRegistrationAllowed
public boolean isRegistrationAllowed()- Specified by:
isRegistrationAllowed
in interfaceRealmModel
-
setRegistrationAllowed
public void setRegistrationAllowed(boolean registrationAllowed) - Specified by:
setRegistrationAllowed
in interfaceRealmModel
-
isRegistrationEmailAsUsername
public boolean isRegistrationEmailAsUsername()- Specified by:
isRegistrationEmailAsUsername
in interfaceRealmModel
-
setRegistrationEmailAsUsername
public void setRegistrationEmailAsUsername(boolean registrationEmailAsUsername) - Specified by:
setRegistrationEmailAsUsername
in interfaceRealmModel
-
isRememberMe
public boolean isRememberMe()- Specified by:
isRememberMe
in interfaceRealmModel
-
setRememberMe
public void setRememberMe(boolean rememberMe) - Specified by:
setRememberMe
in interfaceRealmModel
-
getDefaultSignatureAlgorithm
- Specified by:
getDefaultSignatureAlgorithm
in interfaceRealmModel
-
setDefaultSignatureAlgorithm
- Specified by:
setDefaultSignatureAlgorithm
in interfaceRealmModel
-
isBruteForceProtected
public boolean isBruteForceProtected()- Specified by:
isBruteForceProtected
in interfaceRealmModel
-
setBruteForceProtected
public void setBruteForceProtected(boolean value) - Specified by:
setBruteForceProtected
in interfaceRealmModel
-
isPermanentLockout
public boolean isPermanentLockout()- Specified by:
isPermanentLockout
in interfaceRealmModel
-
setPermanentLockout
public void setPermanentLockout(boolean val) - Specified by:
setPermanentLockout
in interfaceRealmModel
-
getMaxTemporaryLockouts
public int getMaxTemporaryLockouts()- Specified by:
getMaxTemporaryLockouts
in interfaceRealmModel
-
setMaxTemporaryLockouts
public void setMaxTemporaryLockouts(int val) - Specified by:
setMaxTemporaryLockouts
in interfaceRealmModel
-
getBruteForceStrategy
- Specified by:
getBruteForceStrategy
in interfaceRealmModel
-
setBruteForceStrategy
- Specified by:
setBruteForceStrategy
in interfaceRealmModel
-
getMaxFailureWaitSeconds
public int getMaxFailureWaitSeconds()- Specified by:
getMaxFailureWaitSeconds
in interfaceRealmModel
-
setMaxFailureWaitSeconds
public void setMaxFailureWaitSeconds(int val) - Specified by:
setMaxFailureWaitSeconds
in interfaceRealmModel
-
getWaitIncrementSeconds
public int getWaitIncrementSeconds()- Specified by:
getWaitIncrementSeconds
in interfaceRealmModel
-
setWaitIncrementSeconds
public void setWaitIncrementSeconds(int val) - Specified by:
setWaitIncrementSeconds
in interfaceRealmModel
-
getMinimumQuickLoginWaitSeconds
public int getMinimumQuickLoginWaitSeconds()- Specified by:
getMinimumQuickLoginWaitSeconds
in interfaceRealmModel
-
setMinimumQuickLoginWaitSeconds
public void setMinimumQuickLoginWaitSeconds(int val) - Specified by:
setMinimumQuickLoginWaitSeconds
in interfaceRealmModel
-
getQuickLoginCheckMilliSeconds
public long getQuickLoginCheckMilliSeconds()- Specified by:
getQuickLoginCheckMilliSeconds
in interfaceRealmModel
-
setQuickLoginCheckMilliSeconds
public void setQuickLoginCheckMilliSeconds(long val) - Specified by:
setQuickLoginCheckMilliSeconds
in interfaceRealmModel
-
getMaxDeltaTimeSeconds
public int getMaxDeltaTimeSeconds()- Specified by:
getMaxDeltaTimeSeconds
in interfaceRealmModel
-
setMaxDeltaTimeSeconds
public void setMaxDeltaTimeSeconds(int val) - Specified by:
setMaxDeltaTimeSeconds
in interfaceRealmModel
-
getFailureFactor
public int getFailureFactor()- Specified by:
getFailureFactor
in interfaceRealmModel
-
setFailureFactor
public void setFailureFactor(int failureFactor) - Specified by:
setFailureFactor
in interfaceRealmModel
-
isVerifyEmail
public boolean isVerifyEmail()- Specified by:
isVerifyEmail
in interfaceRealmModel
-
setVerifyEmail
public void setVerifyEmail(boolean verifyEmail) - Specified by:
setVerifyEmail
in interfaceRealmModel
-
isLoginWithEmailAllowed
public boolean isLoginWithEmailAllowed()- Specified by:
isLoginWithEmailAllowed
in interfaceRealmModel
-
setLoginWithEmailAllowed
public void setLoginWithEmailAllowed(boolean loginWithEmailAllowed) - Specified by:
setLoginWithEmailAllowed
in interfaceRealmModel
-
isDuplicateEmailsAllowed
public boolean isDuplicateEmailsAllowed()- Specified by:
isDuplicateEmailsAllowed
in interfaceRealmModel
-
setDuplicateEmailsAllowed
public void setDuplicateEmailsAllowed(boolean duplicateEmailsAllowed) - Specified by:
setDuplicateEmailsAllowed
in interfaceRealmModel
-
isResetPasswordAllowed
public boolean isResetPasswordAllowed()- Specified by:
isResetPasswordAllowed
in interfaceRealmModel
-
setResetPasswordAllowed
public void setResetPasswordAllowed(boolean resetPasswordAllowed) - Specified by:
setResetPasswordAllowed
in interfaceRealmModel
-
isEditUsernameAllowed
public boolean isEditUsernameAllowed()- Specified by:
isEditUsernameAllowed
in interfaceRealmModel
-
setEditUsernameAllowed
public void setEditUsernameAllowed(boolean editUsernameAllowed) - Specified by:
setEditUsernameAllowed
in interfaceRealmModel
-
isRevokeRefreshToken
public boolean isRevokeRefreshToken()- Specified by:
isRevokeRefreshToken
in interfaceRealmModel
-
setRevokeRefreshToken
public void setRevokeRefreshToken(boolean revokeRefreshToken) - Specified by:
setRevokeRefreshToken
in interfaceRealmModel
-
getRefreshTokenMaxReuse
public int getRefreshTokenMaxReuse()- Specified by:
getRefreshTokenMaxReuse
in interfaceRealmModel
-
setRefreshTokenMaxReuse
public void setRefreshTokenMaxReuse(int refreshTokenMaxReuse) - Specified by:
setRefreshTokenMaxReuse
in interfaceRealmModel
-
getSsoSessionIdleTimeout
public int getSsoSessionIdleTimeout()- Specified by:
getSsoSessionIdleTimeout
in interfaceRealmModel
-
setSsoSessionIdleTimeout
public void setSsoSessionIdleTimeout(int seconds) - Specified by:
setSsoSessionIdleTimeout
in interfaceRealmModel
-
getSsoSessionMaxLifespan
public int getSsoSessionMaxLifespan()- Specified by:
getSsoSessionMaxLifespan
in interfaceRealmModel
-
setSsoSessionMaxLifespan
public void setSsoSessionMaxLifespan(int seconds) - Specified by:
setSsoSessionMaxLifespan
in interfaceRealmModel
-
getSsoSessionIdleTimeoutRememberMe
public int getSsoSessionIdleTimeoutRememberMe()- Specified by:
getSsoSessionIdleTimeoutRememberMe
in interfaceRealmModel
-
setSsoSessionIdleTimeoutRememberMe
public void setSsoSessionIdleTimeoutRememberMe(int seconds) - Specified by:
setSsoSessionIdleTimeoutRememberMe
in interfaceRealmModel
-
getSsoSessionMaxLifespanRememberMe
public int getSsoSessionMaxLifespanRememberMe()- Specified by:
getSsoSessionMaxLifespanRememberMe
in interfaceRealmModel
-
setSsoSessionMaxLifespanRememberMe
public void setSsoSessionMaxLifespanRememberMe(int seconds) - Specified by:
setSsoSessionMaxLifespanRememberMe
in interfaceRealmModel
-
getOfflineSessionIdleTimeout
public int getOfflineSessionIdleTimeout()- Specified by:
getOfflineSessionIdleTimeout
in interfaceRealmModel
-
setOfflineSessionIdleTimeout
public void setOfflineSessionIdleTimeout(int seconds) - Specified by:
setOfflineSessionIdleTimeout
in interfaceRealmModel
-
isOfflineSessionMaxLifespanEnabled
public boolean isOfflineSessionMaxLifespanEnabled()- Specified by:
isOfflineSessionMaxLifespanEnabled
in interfaceRealmModel
-
setOfflineSessionMaxLifespanEnabled
public void setOfflineSessionMaxLifespanEnabled(boolean offlineSessionMaxLifespanEnabled) - Specified by:
setOfflineSessionMaxLifespanEnabled
in interfaceRealmModel
-
getOfflineSessionMaxLifespan
public int getOfflineSessionMaxLifespan()- Specified by:
getOfflineSessionMaxLifespan
in interfaceRealmModel
-
setOfflineSessionMaxLifespan
public void setOfflineSessionMaxLifespan(int seconds) - Specified by:
setOfflineSessionMaxLifespan
in interfaceRealmModel
-
getClientSessionIdleTimeout
public int getClientSessionIdleTimeout()- Specified by:
getClientSessionIdleTimeout
in interfaceRealmModel
-
setClientSessionIdleTimeout
public void setClientSessionIdleTimeout(int seconds) - Specified by:
setClientSessionIdleTimeout
in interfaceRealmModel
-
getClientSessionMaxLifespan
public int getClientSessionMaxLifespan()- Specified by:
getClientSessionMaxLifespan
in interfaceRealmModel
-
setClientSessionMaxLifespan
public void setClientSessionMaxLifespan(int seconds) - Specified by:
setClientSessionMaxLifespan
in interfaceRealmModel
-
getClientOfflineSessionIdleTimeout
public int getClientOfflineSessionIdleTimeout()- Specified by:
getClientOfflineSessionIdleTimeout
in interfaceRealmModel
-
setClientOfflineSessionIdleTimeout
public void setClientOfflineSessionIdleTimeout(int seconds) - Specified by:
setClientOfflineSessionIdleTimeout
in interfaceRealmModel
-
getClientOfflineSessionMaxLifespan
public int getClientOfflineSessionMaxLifespan()- Specified by:
getClientOfflineSessionMaxLifespan
in interfaceRealmModel
-
setClientOfflineSessionMaxLifespan
public void setClientOfflineSessionMaxLifespan(int seconds) - Specified by:
setClientOfflineSessionMaxLifespan
in interfaceRealmModel
-
getAccessTokenLifespan
public int getAccessTokenLifespan()- Specified by:
getAccessTokenLifespan
in interfaceRealmModel
-
setAccessTokenLifespan
public void setAccessTokenLifespan(int seconds) - Specified by:
setAccessTokenLifespan
in interfaceRealmModel
-
getAccessTokenLifespanForImplicitFlow
public int getAccessTokenLifespanForImplicitFlow()- Specified by:
getAccessTokenLifespanForImplicitFlow
in interfaceRealmModel
-
setAccessTokenLifespanForImplicitFlow
public void setAccessTokenLifespanForImplicitFlow(int seconds) - Specified by:
setAccessTokenLifespanForImplicitFlow
in interfaceRealmModel
-
getAccessCodeLifespan
public int getAccessCodeLifespan()- Specified by:
getAccessCodeLifespan
in interfaceRealmModel
-
setAccessCodeLifespan
public void setAccessCodeLifespan(int seconds) - Specified by:
setAccessCodeLifespan
in interfaceRealmModel
-
getAccessCodeLifespanUserAction
public int getAccessCodeLifespanUserAction()- Specified by:
getAccessCodeLifespanUserAction
in interfaceRealmModel
-
setAccessCodeLifespanUserAction
public void setAccessCodeLifespanUserAction(int seconds) - Specified by:
setAccessCodeLifespanUserAction
in interfaceRealmModel
-
getUserActionTokenLifespans
Description copied from interface:RealmModel
This method will return a map with all the lifespans available or an empty map, but never null.- Specified by:
getUserActionTokenLifespans
in interfaceRealmModel
- Returns:
- map with user action token lifespans
-
getAccessCodeLifespanLogin
public int getAccessCodeLifespanLogin()- Specified by:
getAccessCodeLifespanLogin
in interfaceRealmModel
-
setAccessCodeLifespanLogin
public void setAccessCodeLifespanLogin(int seconds) - Specified by:
setAccessCodeLifespanLogin
in interfaceRealmModel
-
getActionTokenGeneratedByAdminLifespan
public int getActionTokenGeneratedByAdminLifespan()- Specified by:
getActionTokenGeneratedByAdminLifespan
in interfaceRealmModel
-
setActionTokenGeneratedByAdminLifespan
public void setActionTokenGeneratedByAdminLifespan(int seconds) - Specified by:
setActionTokenGeneratedByAdminLifespan
in interfaceRealmModel
-
getActionTokenGeneratedByUserLifespan
public int getActionTokenGeneratedByUserLifespan()- Specified by:
getActionTokenGeneratedByUserLifespan
in interfaceRealmModel
-
setActionTokenGeneratedByUserLifespan
public void setActionTokenGeneratedByUserLifespan(int seconds) - Specified by:
setActionTokenGeneratedByUserLifespan
in interfaceRealmModel
-
getActionTokenGeneratedByUserLifespan
- Specified by:
getActionTokenGeneratedByUserLifespan
in interfaceRealmModel
-
setActionTokenGeneratedByUserLifespan
- Specified by:
setActionTokenGeneratedByUserLifespan
in interfaceRealmModel
-
getRequiredCredentialsStream
Description copied from interface:RealmModel
Returns required credentials as a stream.- Specified by:
getRequiredCredentialsStream
in interfaceRealmModel
- Returns:
- Stream of
RequiredCredentialModel
. Never returnsnull
.
-
getOAuth2DeviceConfig
- Specified by:
getOAuth2DeviceConfig
in interfaceRealmModel
-
getCibaPolicy
- Specified by:
getCibaPolicy
in interfaceRealmModel
-
getParPolicy
- Specified by:
getParPolicy
in interfaceRealmModel
-
addRequiredCredential
- Specified by:
addRequiredCredential
in interfaceRealmModel
-
getPasswordPolicy
- Specified by:
getPasswordPolicy
in interfaceRealmModel
-
setPasswordPolicy
- Specified by:
setPasswordPolicy
in interfaceRealmModel
-
getOTPPolicy
- Specified by:
getOTPPolicy
in interfaceRealmModel
-
setOTPPolicy
- Specified by:
setOTPPolicy
in interfaceRealmModel
-
getWebAuthnPolicy
- Specified by:
getWebAuthnPolicy
in interfaceRealmModel
- Returns:
- WebAuthn policy for 2-factor authentication
-
setWebAuthnPolicy
Description copied from interface:RealmModel
Set WebAuthn policy for 2-factor authentication- Specified by:
setWebAuthnPolicy
in interfaceRealmModel
-
getWebAuthnPolicyPasswordless
- Specified by:
getWebAuthnPolicyPasswordless
in interfaceRealmModel
- Returns:
- WebAuthn passwordless policy below. This is temporary and will be removed later.
-
setWebAuthnPolicyPasswordless
Description copied from interface:RealmModel
Set WebAuthn passwordless policy below. This is temporary and will be removed later.- Specified by:
setWebAuthnPolicyPasswordless
in interfaceRealmModel
-
getRoleById
- Specified by:
getRoleById
in interfaceRealmModel
-
getDefaultGroupsStream
Description copied from interface:RealmModel
Returns default groups as a stream.- Specified by:
getDefaultGroupsStream
in interfaceRealmModel
- Returns:
- Stream of
GroupModel
. Never returnsnull
.
-
addDefaultGroup
- Specified by:
addDefaultGroup
in interfaceRealmModel
-
removeDefaultGroup
- Specified by:
removeDefaultGroup
in interfaceRealmModel
-
addToDefaultRoles
Description copied from interface:RealmModel
Adds a role as a composite to default role of this realm.- Specified by:
addToDefaultRoles
in interfaceRealmModel
- Parameters:
role
- to be added
-
getClientsStream
Description copied from interface:RealmModel
Returns clients as a stream.- Specified by:
getClientsStream
in interfaceRealmModel
- Returns:
- Stream of
ClientModel
. Never returnsnull
.
-
getAlwaysDisplayInConsoleClientsStream
Description copied from interface:RealmModel
Returns clients which are always displayed in the admin console as a stream.- Specified by:
getAlwaysDisplayInConsoleClientsStream
in interfaceRealmModel
- Returns:
- Stream of
ClientModel
. Never returnsnull
.
-
addClient
- Specified by:
addClient
in interfaceRealmModel
-
addClient
- Specified by:
addClient
in interfaceRealmModel
-
removeClient
- Specified by:
removeClient
in interfaceRealmModel
-
getClientById
- Specified by:
getClientById
in interfaceRealmModel
-
getClientByClientId
- Specified by:
getClientByClientId
in interfaceRealmModel
-
searchClientByClientIdStream
public Stream<ClientModel> searchClientByClientIdStream(String clientId, Integer firstResult, Integer maxResults) Description copied from interface:RealmModel
Search for clients by provided client's id.- Specified by:
searchClientByClientIdStream
in interfaceRealmModel
- Parameters:
clientId
-String
Id of the client.firstResult
- Index of the first desired client. Ignored if negative ornull
.maxResults
- Maximum number of returned clients. Ignored if negative ornull
.- Returns:
- Stream of
ClientModel
. Never returnsnull
.
-
searchClientByAttributes
public Stream<ClientModel> searchClientByAttributes(Map<String, String> attributes, Integer firstResult, Integer maxResults) - Specified by:
searchClientByAttributes
in interfaceRealmModel
-
searchClientByAuthenticationFlowBindingOverrides
public Stream<ClientModel> searchClientByAuthenticationFlowBindingOverrides(Map<String, String> overrides, Integer firstResult, Integer maxResults) - Specified by:
searchClientByAuthenticationFlowBindingOverrides
in interfaceRealmModel
-
getClientsStream
Description copied from interface:RealmModel
Returns clients as a stream.- Specified by:
getClientsStream
in interfaceRealmModel
- Parameters:
firstResult
-Integer
Index of the first desired client. Ignored if negative ornull
.maxResults
-Integer
Maximum number of returned clients. Ignored if negative ornull
.- Returns:
- Stream of
ClientModel
. Never returnsnull
.
-
getClientsCount
- Specified by:
getClientsCount
in interfaceRealmModel
-
updateRequiredCredentials
- Specified by:
updateRequiredCredentials
in interfaceRealmModel
-
getBrowserSecurityHeaders
- Specified by:
getBrowserSecurityHeaders
in interfaceRealmModel
-
setBrowserSecurityHeaders
- Specified by:
setBrowserSecurityHeaders
in interfaceRealmModel
-
getSmtpConfig
- Specified by:
getSmtpConfig
in interfaceRealmModel
-
setSmtpConfig
- Specified by:
setSmtpConfig
in interfaceRealmModel
-
getIdentityProvidersStream
Description copied from interface:RealmModel
Returns identity providers as a stream.- Specified by:
getIdentityProvidersStream
in interfaceRealmModel
- Returns:
- Stream of
IdentityProviderModel
. Never returnsnull
.
-
getIdentityProviderByAlias
- Specified by:
getIdentityProviderByAlias
in interfaceRealmModel
-
addIdentityProvider
- Specified by:
addIdentityProvider
in interfaceRealmModel
-
updateIdentityProvider
- Specified by:
updateIdentityProvider
in interfaceRealmModel
-
removeIdentityProviderByAlias
- Specified by:
removeIdentityProviderByAlias
in interfaceRealmModel
-
getLoginTheme
- Specified by:
getLoginTheme
in interfaceRealmModel
-
setLoginTheme
- Specified by:
setLoginTheme
in interfaceRealmModel
-
getAccountTheme
- Specified by:
getAccountTheme
in interfaceRealmModel
-
setAccountTheme
- Specified by:
setAccountTheme
in interfaceRealmModel
-
getAdminTheme
- Specified by:
getAdminTheme
in interfaceRealmModel
-
setAdminTheme
- Specified by:
setAdminTheme
in interfaceRealmModel
-
getEmailTheme
- Specified by:
getEmailTheme
in interfaceRealmModel
-
setEmailTheme
- Specified by:
setEmailTheme
in interfaceRealmModel
-
getNotBefore
public int getNotBefore()Description copied from interface:RealmModel
Time in seconds since epoc- Specified by:
getNotBefore
in interfaceRealmModel
- Returns:
-
setNotBefore
public void setNotBefore(int notBefore) - Specified by:
setNotBefore
in interfaceRealmModel
-
isEventsEnabled
public boolean isEventsEnabled()- Specified by:
isEventsEnabled
in interfaceRealmModel
-
setEventsEnabled
public void setEventsEnabled(boolean enabled) - Specified by:
setEventsEnabled
in interfaceRealmModel
-
getEventsExpiration
public long getEventsExpiration()- Specified by:
getEventsExpiration
in interfaceRealmModel
-
setEventsExpiration
public void setEventsExpiration(long expiration) - Specified by:
setEventsExpiration
in interfaceRealmModel
-
getEventsListenersStream
Description copied from interface:RealmModel
Returns events listeners as a stream.- Specified by:
getEventsListenersStream
in interfaceRealmModel
- Returns:
- Stream of
String
. Never returnsnull
.
-
setEventsListeners
- Specified by:
setEventsListeners
in interfaceRealmModel
-
getEnabledEventTypesStream
Description copied from interface:RealmModel
Returns enabled event types as a stream.- Specified by:
getEnabledEventTypesStream
in interfaceRealmModel
- Returns:
- Stream of
String
. Never returnsnull
.
-
setEnabledEventTypes
- Specified by:
setEnabledEventTypes
in interfaceRealmModel
-
isAdminEventsEnabled
public boolean isAdminEventsEnabled()- Specified by:
isAdminEventsEnabled
in interfaceRealmModel
-
setAdminEventsEnabled
public void setAdminEventsEnabled(boolean enabled) - Specified by:
setAdminEventsEnabled
in interfaceRealmModel
-
isAdminEventsDetailsEnabled
public boolean isAdminEventsDetailsEnabled()- Specified by:
isAdminEventsDetailsEnabled
in interfaceRealmModel
-
setAdminEventsDetailsEnabled
public void setAdminEventsDetailsEnabled(boolean enabled) - Specified by:
setAdminEventsDetailsEnabled
in interfaceRealmModel
-
getMasterAdminClient
- Specified by:
getMasterAdminClient
in interfaceRealmModel
-
setMasterAdminClient
- Specified by:
setMasterAdminClient
in interfaceRealmModel
-
setDefaultRole
Description copied from interface:RealmModel
Sets default role for this realm- Specified by:
setDefaultRole
in interfaceRealmModel
- Parameters:
role
- to be set
-
getDefaultRole
Description copied from interface:RealmModel
Returns default realm role. All both realm and client default roles are assigned as composite of this role.- Specified by:
getDefaultRole
in interfaceRealmModel
- Returns:
- Default role of this realm
-
getRole
- Specified by:
getRole
in interfaceRoleContainerModel
-
getRolesStream
Description copied from interface:RoleContainerModel
Returns available roles as a stream.- Specified by:
getRolesStream
in interfaceRoleContainerModel
- Returns:
- Stream of
RoleModel
. Never returnsnull
.
-
getRolesStream
Description copied from interface:RoleContainerModel
Returns available roles as a stream.- Specified by:
getRolesStream
in interfaceRoleContainerModel
- Parameters:
first
-Integer
Index of the first desired role. Ignored if negative ornull
.max
-Integer
Maximum number of returned roles. Ignored if negative ornull
.- Returns:
- Stream of
RoleModel
. Never returnsnull
.
-
searchForRolesStream
Description copied from interface:RoleContainerModel
Searches roles by the given name. Returns all roles that match the given filter.- Specified by:
searchForRolesStream
in interfaceRoleContainerModel
- Parameters:
search
-String
Name of the role to be used as a filter.first
-Integer
Index of the first desired role. Ignored if negative ornull
.max
-Integer
Maximum number of returned roles. Ignored if negative ornull
.- Returns:
- Stream of
RoleModel
. Never returnsnull
.
-
addRole
- Specified by:
addRole
in interfaceRoleContainerModel
-
addRole
- Specified by:
addRole
in interfaceRoleContainerModel
-
removeRole
- Specified by:
removeRole
in interfaceRoleContainerModel
-
isIdentityFederationEnabled
public boolean isIdentityFederationEnabled()- Specified by:
isIdentityFederationEnabled
in interfaceRealmModel
-
equals
-
hashCode
public int hashCode() -
isInternationalizationEnabled
public boolean isInternationalizationEnabled()- Specified by:
isInternationalizationEnabled
in interfaceRealmModel
-
setInternationalizationEnabled
public void setInternationalizationEnabled(boolean enabled) - Specified by:
setInternationalizationEnabled
in interfaceRealmModel
-
getSupportedLocalesStream
Description copied from interface:RealmModel
Returns supported locales as a stream.- Specified by:
getSupportedLocalesStream
in interfaceRealmModel
- Returns:
- Stream of
String
. Never returnsnull
.
-
setSupportedLocales
- Specified by:
setSupportedLocales
in interfaceRealmModel
-
getDefaultLocale
- Specified by:
getDefaultLocale
in interfaceRealmModel
-
setDefaultLocale
- Specified by:
setDefaultLocale
in interfaceRealmModel
-
getIdentityProviderMappersStream
Description copied from interface:RealmModel
Returns identity provider mappers as a stream.- Specified by:
getIdentityProviderMappersStream
in interfaceRealmModel
- Returns:
- Stream of
IdentityProviderMapperModel
. Never returnsnull
.
-
getIdentityProviderMappersByAliasStream
public Stream<IdentityProviderMapperModel> getIdentityProviderMappersByAliasStream(String brokerAlias) Description copied from interface:RealmModel
Returns identity provider mappers by the provided alias as a stream.- Specified by:
getIdentityProviderMappersByAliasStream
in interfaceRealmModel
- Parameters:
brokerAlias
-String
Broker's alias to filter results.- Returns:
- Stream of
IdentityProviderMapperModel
Never returnsnull
.
-
addIdentityProviderMapper
- Specified by:
addIdentityProviderMapper
in interfaceRealmModel
-
removeIdentityProviderMapper
- Specified by:
removeIdentityProviderMapper
in interfaceRealmModel
-
updateIdentityProviderMapper
- Specified by:
updateIdentityProviderMapper
in interfaceRealmModel
-
getIdentityProviderMapperById
- Specified by:
getIdentityProviderMapperById
in interfaceRealmModel
-
getIdentityProviderMapperByName
- Specified by:
getIdentityProviderMapperByName
in interfaceRealmModel
-
getBrowserFlow
- Specified by:
getBrowserFlow
in interfaceRealmModel
-
setBrowserFlow
- Specified by:
setBrowserFlow
in interfaceRealmModel
-
getRegistrationFlow
- Specified by:
getRegistrationFlow
in interfaceRealmModel
-
setRegistrationFlow
- Specified by:
setRegistrationFlow
in interfaceRealmModel
-
getDirectGrantFlow
- Specified by:
getDirectGrantFlow
in interfaceRealmModel
-
setDirectGrantFlow
- Specified by:
setDirectGrantFlow
in interfaceRealmModel
-
getResetCredentialsFlow
- Specified by:
getResetCredentialsFlow
in interfaceRealmModel
-
setResetCredentialsFlow
- Specified by:
setResetCredentialsFlow
in interfaceRealmModel
-
getClientAuthenticationFlow
- Specified by:
getClientAuthenticationFlow
in interfaceRealmModel
-
setClientAuthenticationFlow
- Specified by:
setClientAuthenticationFlow
in interfaceRealmModel
-
getDockerAuthenticationFlow
- Specified by:
getDockerAuthenticationFlow
in interfaceRealmModel
-
setDockerAuthenticationFlow
- Specified by:
setDockerAuthenticationFlow
in interfaceRealmModel
-
getFirstBrokerLoginFlow
- Specified by:
getFirstBrokerLoginFlow
in interfaceRealmModel
-
setFirstBrokerLoginFlow
- Specified by:
setFirstBrokerLoginFlow
in interfaceRealmModel
-
getAuthenticationFlowsStream
Description copied from interface:RealmModel
Returns authentications flows as a stream.- Specified by:
getAuthenticationFlowsStream
in interfaceRealmModel
- Returns:
- Stream of
AuthenticationFlowModel
. Never returnsnull
.
-
getFlowByAlias
- Specified by:
getFlowByAlias
in interfaceRealmModel
-
getAuthenticatorConfigByAlias
- Specified by:
getAuthenticatorConfigByAlias
in interfaceRealmModel
-
addAuthenticationFlow
- Specified by:
addAuthenticationFlow
in interfaceRealmModel
-
getAuthenticationFlowById
- Specified by:
getAuthenticationFlowById
in interfaceRealmModel
-
removeAuthenticationFlow
- Specified by:
removeAuthenticationFlow
in interfaceRealmModel
-
updateAuthenticationFlow
- Specified by:
updateAuthenticationFlow
in interfaceRealmModel
-
getAuthenticationExecutionsStream
Description copied from interface:RealmModel
Returns sorted (according to priority)AuthenticationExecutionModel
as a stream. It should be used with forEachOrdered if the ordering is required.- Specified by:
getAuthenticationExecutionsStream
in interfaceRealmModel
- Parameters:
flowId
-String
Id of the flow.- Returns:
- Sorted stream of
AuthenticationExecutionModel
. Never returnsnull
.
-
getAuthenticationExecutionById
- Specified by:
getAuthenticationExecutionById
in interfaceRealmModel
-
getAuthenticationExecutionByFlowId
- Specified by:
getAuthenticationExecutionByFlowId
in interfaceRealmModel
-
addAuthenticatorExecution
- Specified by:
addAuthenticatorExecution
in interfaceRealmModel
-
updateAuthenticatorExecution
- Specified by:
updateAuthenticatorExecution
in interfaceRealmModel
-
removeAuthenticatorExecution
- Specified by:
removeAuthenticatorExecution
in interfaceRealmModel
-
getAuthenticatorConfigsStream
Description copied from interface:RealmModel
Returns authentication configs as a stream.- Specified by:
getAuthenticatorConfigsStream
in interfaceRealmModel
- Returns:
- Stream of
AuthenticatorConfigModel
. Never returnsnull
.
-
addAuthenticatorConfig
- Specified by:
addAuthenticatorConfig
in interfaceRealmModel
-
updateAuthenticatorConfig
- Specified by:
updateAuthenticatorConfig
in interfaceRealmModel
-
removeAuthenticatorConfig
- Specified by:
removeAuthenticatorConfig
in interfaceRealmModel
-
getAuthenticatorConfigById
- Specified by:
getAuthenticatorConfigById
in interfaceRealmModel
-
getRequiredActionConfigById
- Specified by:
getRequiredActionConfigById
in interfaceRealmModel
-
getRequiredActionConfigByAlias
- Specified by:
getRequiredActionConfigByAlias
in interfaceRealmModel
-
updateRequiredActionConfig
- Specified by:
updateRequiredActionConfig
in interfaceRealmModel
-
removeRequiredActionProviderConfig
- Specified by:
removeRequiredActionProviderConfig
in interfaceRealmModel
-
getRequiredActionConfigsStream
- Specified by:
getRequiredActionConfigsStream
in interfaceRealmModel
-
getRequiredActionProvidersStream
Description copied from interface:RealmModel
Returns sortedRequiredActionProviderModel
as a stream. It should be used with forEachOrdered if the ordering is required.- Specified by:
getRequiredActionProvidersStream
in interfaceRealmModel
- Returns:
- Sorted stream of
RequiredActionProviderModel
. Never returnsnull
.
-
addRequiredActionProvider
- Specified by:
addRequiredActionProvider
in interfaceRealmModel
-
updateRequiredActionProvider
- Specified by:
updateRequiredActionProvider
in interfaceRealmModel
-
removeRequiredActionProvider
- Specified by:
removeRequiredActionProvider
in interfaceRealmModel
-
getRequiredActionProviderById
- Specified by:
getRequiredActionProviderById
in interfaceRealmModel
-
getRequiredActionProviderByAlias
- Specified by:
getRequiredActionProviderByAlias
in interfaceRealmModel
-
createGroup
- Specified by:
createGroup
in interfaceRealmModel
-
moveGroup
- Specified by:
moveGroup
in interfaceRealmModel
-
getGroupById
- Specified by:
getGroupById
in interfaceRealmModel
-
getGroupsStream
Description copied from interface:RealmModel
Returns groups as a stream.- Specified by:
getGroupsStream
in interfaceRealmModel
- Returns:
- Stream of
GroupModel
. Never returnsnull
.
-
getGroupsCount
- Specified by:
getGroupsCount
in interfaceRealmModel
-
getGroupsCountByNameContaining
- Specified by:
getGroupsCountByNameContaining
in interfaceRealmModel
-
getTopLevelGroupsStream
- Specified by:
getTopLevelGroupsStream
in interfaceRealmModel
-
getTopLevelGroupsStream
- Specified by:
getTopLevelGroupsStream
in interfaceRealmModel
-
removeGroup
- Specified by:
removeGroup
in interfaceRealmModel
-
getClientScopesStream
Description copied from interface:RealmModel
Returns all client scopes of this realm as a stream.- Specified by:
getClientScopesStream
in interfaceRealmModel
- Returns:
- Stream of
ClientScopeModel
. Never returnsnull
.
-
addClientScope
Description copied from interface:RealmModel
Creates new client scope with the given name. Internal ID is created automatically. If given name contains spaces, those are replaced by underscores.- Specified by:
addClientScope
in interfaceRealmModel
- Parameters:
name
-String
name of the client scope.- Returns:
- Model of the created client scope.
-
addClientScope
Description copied from interface:RealmModel
Creates new client scope with the given internal ID and name. If given name contains spaces, those are replaced by underscores.- Specified by:
addClientScope
in interfaceRealmModel
- Parameters:
id
-String
id of the client scope.name
-String
name of the client scope.- Returns:
- Model of the created client scope.
-
removeClientScope
Description copied from interface:RealmModel
Removes client scope with givenid
from this realm.- Specified by:
removeClientScope
in interfaceRealmModel
- Parameters:
id
- of the client scope- Returns:
- true if the realm contained the scope and the removal was successful, false otherwise
-
getClientScopeById
- Specified by:
getClientScopeById
in interfaceRealmModel
- Parameters:
id
- of the client scope- Returns:
- Client scope with the given
id
, ornull
when the scope does not exist.
-
addDefaultClientScope
Description copied from interface:RealmModel
Adds given client scope among default/optional client scopes of this realm. The scope will be assigned to each new client.- Specified by:
addDefaultClientScope
in interfaceRealmModel
- Parameters:
clientScope
- to be addeddefaultScope
- iftrue
the scope will be added among default client scopes, iffalse
it will be added among optional client scopes
-
removeDefaultClientScope
Description copied from interface:RealmModel
Removes given client scope from default or optional client scopes of this realm.- Specified by:
removeDefaultClientScope
in interfaceRealmModel
- Parameters:
clientScope
- to be removed
-
getDefaultClientScopesStream
Description copied from interface:RealmModel
Returns default client scopes of this realm either default ones or optional ones.- Specified by:
getDefaultClientScopesStream
in interfaceRealmModel
- Parameters:
defaultScope
- iftrue
default client scopes are returned, iffalse
optional client scopes are returned.- Returns:
- Stream of
ClientScopeModel
. Never returnsnull
.
-
addComponentModel
Description copied from interface:RealmModel
Adds component model. Will call onCreate() method of ComponentFactory- Specified by:
addComponentModel
in interfaceRealmModel
- Returns:
-
importComponentModel
Description copied from interface:RealmModel
Adds component model. Will NOT call onCreate() method of ComponentFactory- Specified by:
importComponentModel
in interfaceRealmModel
- Returns:
-
executeEvictions
-
updateComponent
Description copied from interface:RealmModel
Updates component model. Will call onUpdate() method of ComponentFactory- Specified by:
updateComponent
in interfaceRealmModel
- Parameters:
component
- to be updated
-
removeComponent
Description copied from interface:RealmModel
Removes given component. Will call preRemove() method of ComponentFactory. Also callsthis.removeComponents(component.getId())
.- Specified by:
removeComponent
in interfaceRealmModel
- Parameters:
component
- to be removed
-
removeComponents
Description copied from interface:RealmModel
Removes all components with givenparentId
- Specified by:
removeComponents
in interfaceRealmModel
- Parameters:
parentId
-String
id of parent
-
getComponentsStream
Description copied from interface:RealmModel
Returns stream of ComponentModels for specific parentId and providerType.- Specified by:
getComponentsStream
in interfaceRealmModel
- Parameters:
parentId
-String
id of parentproviderType
-String
type of provider- Returns:
- Stream of
ComponentModel
. Never returnsnull
.
-
getComponentsStream
Description copied from interface:RealmModel
Returns stream of ComponentModels for specific parentId.- Specified by:
getComponentsStream
in interfaceRealmModel
- Parameters:
parentId
-String
id of parent- Returns:
- Stream of
ComponentModel
. Never returnsnull
.
-
getComponentsStream
Description copied from interface:RealmModel
Returns stream of component models.- Specified by:
getComponentsStream
in interfaceRealmModel
- Returns:
- Stream of
ComponentModel
. Never returnsnull
.
-
getComponent
- Specified by:
getComponent
in interfaceRealmModel
-
setAttribute
- Specified by:
setAttribute
in interfaceRealmModel
-
setAttribute
- Specified by:
setAttribute
in interfaceRealmModel
-
setAttribute
- Specified by:
setAttribute
in interfaceRealmModel
-
setAttribute
- Specified by:
setAttribute
in interfaceRealmModel
-
removeAttribute
- Specified by:
removeAttribute
in interfaceRealmModel
-
getAttribute
- Specified by:
getAttribute
in interfaceRealmModel
-
getAttribute
- Specified by:
getAttribute
in interfaceRealmModel
-
getAttribute
- Specified by:
getAttribute
in interfaceRealmModel
-
getAttribute
- Specified by:
getAttribute
in interfaceRealmModel
-
getAttributes
- Specified by:
getAttributes
in interfaceRealmModel
-
createOrUpdateRealmLocalizationTexts
public void createOrUpdateRealmLocalizationTexts(String locale, Map<String, String> localizationTexts) Description copied from interface:RealmModel
Creates or updates the realm-specific localization texts for the given locale. This method will not delete any text. It updates texts, which are already stored or create new ones if the key does not exist yet.- Specified by:
createOrUpdateRealmLocalizationTexts
in interfaceRealmModel
-
removeRealmLocalizationTexts
- Specified by:
removeRealmLocalizationTexts
in interfaceRealmModel
-
getRealmLocalizationTexts
- Specified by:
getRealmLocalizationTexts
in interfaceRealmModel
-
getRealmLocalizationTextsByLocale
- Specified by:
getRealmLocalizationTextsByLocale
in interfaceRealmModel
-
createClientInitialAccessModel
- Specified by:
createClientInitialAccessModel
in interfaceRealmModel
-
getClientInitialAccessModel
- Specified by:
getClientInitialAccessModel
in interfaceRealmModel
-
removeClientInitialAccessModel
- Specified by:
removeClientInitialAccessModel
in interfaceRealmModel
-
getClientInitialAccesses
- Specified by:
getClientInitialAccesses
in interfaceRealmModel
-
decreaseRemainingCount
- Specified by:
decreaseRemainingCount
in interfaceRealmModel
-
toString
-
isOrganizationsEnabled
public boolean isOrganizationsEnabled()- Specified by:
isOrganizationsEnabled
in interfaceRealmModel
-
setOrganizationsEnabled
public void setOrganizationsEnabled(boolean organizationsEnabled) - Specified by:
setOrganizationsEnabled
in interfaceRealmModel
-
isAdminPermissionsEnabled
public boolean isAdminPermissionsEnabled()- Specified by:
isAdminPermissionsEnabled
in interfaceRealmModel
-
setAdminPermissionsEnabled
public void setAdminPermissionsEnabled(boolean adminPermissionsEnabled) - Specified by:
setAdminPermissionsEnabled
in interfaceRealmModel
-
isVerifiableCredentialsEnabled
public boolean isVerifiableCredentialsEnabled()- Specified by:
isVerifiableCredentialsEnabled
in interfaceRealmModel
-
setVerifiableCredentialsEnabled
public void setVerifiableCredentialsEnabled(boolean verifiableCredentialsEnabled) - Specified by:
setVerifiableCredentialsEnabled
in interfaceRealmModel
-