Package org.keycloak.models.jpa
Class RealmAdapter
java.lang.Object
org.keycloak.models.jpa.RealmAdapter
- All Implemented Interfaces:
JpaModel<RealmEntity>,RealmModel,RoleContainerModel,StorageProviderRealmModel
public class RealmAdapter
extends Object
implements StorageProviderRealmModel, JpaModel<RealmEntity>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.RealmModel
RealmModel.IdentityProviderRemovedEvent, RealmModel.IdentityProviderUpdatedEvent, RealmModel.RealmAttributeUpdateEvent, RealmModel.RealmCreationEvent, RealmModel.RealmPostCreateEvent, RealmModel.RealmRemovedEventNested classes/interfaces inherited from interface org.keycloak.models.RoleContainerModel
RoleContainerModel.RoleRemovedEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis just exists for testing purposesprotected jakarta.persistence.EntityManagerprotected static final org.jboss.logging.Loggerprotected RealmEntityprotected KeycloakSessionFields inherited from interface org.keycloak.models.RealmModel
COMPARE_BY_NAME -
Constructor Summary
ConstructorsConstructorDescriptionRealmAdapter(KeycloakSession session, jakarta.persistence.EntityManager em, RealmEntity realm) -
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.voidaddDefaultClientScope(ClientScopeModel clientScope, boolean defaultScope) Adds given client scope among default/optional client scopes of this realm.voidaddDefaultGroup(GroupModel group) voidaddIdentityProvider(IdentityProviderModel identityProvider) voidaddRequiredCredential(String type) voidcreateClientInitialAccessModel(int expiration, int count) createGroup(String id, String name, GroupModel toParent) voidcreateOrUpdateRealmLocalizationTexts(String locale, Map<String, String> localizationTexts) Creates or updates the realm-specific localization texts for the given locale.voiddecreaseRemainingCount(ClientInitialAccessModel clientInitialAccess) protected AuthenticationFlowModelprotected ComponentModelbooleanintintintintintintintintgetActionTokenGeneratedByUserLifespan(String actionTokenId) Returns clients which are always displayed in the admin console as a stream.getAttribute(String name) Returns sorted (according to priority)AuthenticationExecutionModelas a stream.Returns authentications flows as a stream.Returns authentication configs as a stream.getClientByClientId(String clientId) getClientById(String id) intintReturns all client scopes of this realm as a stream.intintReturns 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.Returns enabled event types as a stream.longReturns events listeners as a stream.intgetFlowByAlias(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.intintintintgetName()intTime in seconds since epocintintlongintReturns sortedRequiredActionProviderModelas 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.intintintintReturns 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.intinthashCode()Adds component model.protected RequiredCredentialModelbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidmoveGroup(GroupModel group, GroupModel toParent) voidremoveAttribute(String name) voidvoidvoidbooleanremoveClient(String id) voidbooleanRemoves client scope with givenidfrom this realm.voidremoveComponent(ComponentModel component) Removes given component.voidremoveComponents(String parentId) Removes all components with givenparentIdvoidremoveDefaultClientScope(ClientScopeModel clientScope) Removes given client scope from default or optional client scopes of this realm.voidremoveDefaultGroup(GroupModel group) booleanremoveGroup(GroupModel group) voidvoidbooleanremoveRealmLocalizationTexts(String locale) voidvoidbooleanremoveRole(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.voidsetAccessCodeLifespan(int accessCodeLifespan) voidsetAccessCodeLifespanLogin(int accessCodeLifespanLogin) voidsetAccessCodeLifespanUserAction(int accessCodeLifespanUserAction) voidsetAccessTokenLifespan(int tokenLifespan) voidsetAccessTokenLifespanForImplicitFlow(int seconds) voidsetAccountTheme(String name) voidsetActionTokenGeneratedByAdminLifespan(int actionTokenGeneratedByAdminLifespan) voidsetActionTokenGeneratedByUserLifespan(int actionTokenGeneratedByUserLifespan) voidsetActionTokenGeneratedByUserLifespan(String actionTokenId, Integer actionTokenGeneratedByUserLifespan) voidsetAdminEventsDetailsEnabled(boolean enabled) voidsetAdminEventsEnabled(boolean enabled) voidsetAdminPermissionsClient(ClientModel client) voidsetAdminPermissionsEnabled(boolean adminPermissionsEnabled) voidsetAdminTheme(String name) voidsetAttribute(String name, String value) voidvoidsetBrowserSecurityHeaders(Map<String, String> headers) voidsetBruteForceProtected(boolean value) voidvoidvoidsetClientOfflineSessionIdleTimeout(int seconds) voidsetClientOfflineSessionMaxLifespan(int seconds) voidsetClientSessionIdleTimeout(int seconds) voidsetClientSessionMaxLifespan(int seconds) protected voidsetConfig(ComponentModel model, ComponentEntity c) voidsetDefaultLocale(String locale) voidsetDefaultRole(RoleModel role) Sets default role for this realmvoidsetDefaultSignatureAlgorithm(String defaultSignatureAlgorithm) voidvoidsetDisplayName(String displayName) voidsetDisplayNameHtml(String displayNameHtml) voidvoidsetDuplicateEmailsAllowed(boolean duplicateEmailsAllowed) voidsetEditUsernameAllowed(boolean editUsernameAllowed) voidsetEmailTheme(String name) voidsetEnabled(boolean enabled) voidsetEnabledEventTypes(Set<String> enabledEventTypes) voidsetEventsEnabled(boolean enabled) voidsetEventsExpiration(long expiration) voidsetEventsListeners(Set<String> listeners) voidsetFailureFactor(int failureFactor) voidvoidsetInternationalizationEnabled(boolean enabled) voidsetLoginTheme(String name) voidsetLoginWithEmailAllowed(boolean loginWithEmailAllowed) voidsetMasterAdminClient(ClientModel client) voidsetMaxDeltaTimeSeconds(int val) voidsetMaxFailureWaitSeconds(int val) voidsetMaxTemporaryLockouts(int val) voidsetMinimumQuickLoginWaitSeconds(int val) voidvoidsetNotBefore(int notBefore) voidsetOfflineSessionIdleTimeout(int seconds) voidsetOfflineSessionMaxLifespan(int seconds) voidsetOfflineSessionMaxLifespanEnabled(boolean offlineSessionMaxLifespanEnabled) voidsetOrganizationsEnabled(boolean organizationsEnabled) voidsetOTPPolicy(OTPPolicy policy) voidsetPasswordPolicy(PasswordPolicy policy) voidsetPermanentLockout(boolean val) voidsetQuickLoginCheckMilliSeconds(long val) voidsetRefreshTokenMaxReuse(int revokeRefreshTokenReuseCount) voidsetRegistrationAllowed(boolean registrationAllowed) voidsetRegistrationEmailAsUsername(boolean registrationEmailAsUsername) voidvoidsetRememberMe(boolean rememberMe) voidvoidsetResetPasswordAllowed(boolean resetPasswordAllowed) voidsetRevokeRefreshToken(boolean revokeRefreshToken) voidsetSmtpConfig(Map<String, String> smtpConfig) voidsetSslRequired(SslRequired sslRequired) voidsetSsoSessionIdleTimeout(int seconds) voidsetSsoSessionIdleTimeoutRememberMe(int seconds) voidsetSsoSessionMaxLifespan(int seconds) voidsetSsoSessionMaxLifespanRememberMe(int seconds) voidsetSupportedLocales(Set<String> locales) voidsetUserManagedAccessAllowed(boolean userManagedAccessAllowed) voidsetVerifiableCredentialsEnabled(boolean verifiableCredentialsEnabled) voidsetVerifyEmail(boolean verifyEmail) voidsetWaitIncrementSeconds(int val) voidsetWebAuthnPolicy(WebAuthnPolicy policy) Set WebAuthn policy for 2-factor authenticationvoidSet WebAuthn passwordless policy below.toString()voidvoidvoidvoidupdateComponent(ComponentModel component) Updates component model.voidupdateIdentityProvider(IdentityProviderModel identityProvider) voidvoidvoidvoidupdateRequiredCredentials(Set<String> creds) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.keycloak.models.RealmModel
addToDefaultRoles, createGroup, createGroup, createGroup, getAttribute, getAttribute, getAttribute, getAttribute, getStorageProviders, setAttribute, setAttribute, setAttributeMethods inherited from interface org.keycloak.models.StorageProviderRealmModel
getClientStorageProviders, getClientStorageProvidersStream, getRoleStorageProviders, getRoleStorageProvidersStream, getUserStorageProviders, getUserStorageProvidersStream
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger -
realm
-
em
protected jakarta.persistence.EntityManager em -
session
-
COMPONENT_PROVIDER_EXISTS_DISABLED
This just exists for testing purposes- See Also:
-
-
Constructor Details
-
RealmAdapter
public RealmAdapter(KeycloakSession session, jakarta.persistence.EntityManager em, RealmEntity realm)
-
-
Method Details
-
getClientsCount
- Specified by:
getClientsCountin interfaceRealmModel
-
getEntity
- Specified by:
getEntityin interfaceJpaModel<RealmEntity>
-
getId
- Specified by:
getIdin interfaceRealmModel- Specified by:
getIdin interfaceRoleContainerModel
-
getName
- Specified by:
getNamein interfaceRealmModel
-
setName
- Specified by:
setNamein interfaceRealmModel
-
getDisplayName
- Specified by:
getDisplayNamein interfaceRealmModel
-
setDisplayName
- Specified by:
setDisplayNamein interfaceRealmModel
-
getDisplayNameHtml
- Specified by:
getDisplayNameHtmlin interfaceRealmModel
-
setDisplayNameHtml
- Specified by:
setDisplayNameHtmlin interfaceRealmModel
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceRealmModel
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceRealmModel
-
getSslRequired
- Specified by:
getSslRequiredin interfaceRealmModel
-
setSslRequired
- Specified by:
setSslRequiredin interfaceRealmModel
-
isUserManagedAccessAllowed
public boolean isUserManagedAccessAllowed()- Specified by:
isUserManagedAccessAllowedin interfaceRealmModel
-
setUserManagedAccessAllowed
public void setUserManagedAccessAllowed(boolean userManagedAccessAllowed) - Specified by:
setUserManagedAccessAllowedin interfaceRealmModel
-
isRegistrationAllowed
public boolean isRegistrationAllowed()- Specified by:
isRegistrationAllowedin interfaceRealmModel
-
setRegistrationAllowed
public void setRegistrationAllowed(boolean registrationAllowed) - Specified by:
setRegistrationAllowedin interfaceRealmModel
-
isRegistrationEmailAsUsername
public boolean isRegistrationEmailAsUsername()- Specified by:
isRegistrationEmailAsUsernamein interfaceRealmModel
-
setRegistrationEmailAsUsername
public void setRegistrationEmailAsUsername(boolean registrationEmailAsUsername) - Specified by:
setRegistrationEmailAsUsernamein interfaceRealmModel
-
isRememberMe
public boolean isRememberMe()- Specified by:
isRememberMein interfaceRealmModel
-
setRememberMe
public void setRememberMe(boolean rememberMe) - Specified by:
setRememberMein interfaceRealmModel
-
setAttribute
- Specified by:
setAttributein interfaceRealmModel
-
removeAttribute
- Specified by:
removeAttributein interfaceRealmModel
-
getAttribute
- Specified by:
getAttributein interfaceRealmModel
-
getAttributes
- Specified by:
getAttributesin interfaceRealmModel
-
getDefaultSignatureAlgorithm
- Specified by:
getDefaultSignatureAlgorithmin interfaceRealmModel
-
setDefaultSignatureAlgorithm
- Specified by:
setDefaultSignatureAlgorithmin interfaceRealmModel
-
isBruteForceProtected
public boolean isBruteForceProtected()- Specified by:
isBruteForceProtectedin interfaceRealmModel
-
setBruteForceProtected
public void setBruteForceProtected(boolean value) - Specified by:
setBruteForceProtectedin interfaceRealmModel
-
isPermanentLockout
public boolean isPermanentLockout()- Specified by:
isPermanentLockoutin interfaceRealmModel
-
setPermanentLockout
public void setPermanentLockout(boolean val) - Specified by:
setPermanentLockoutin interfaceRealmModel
-
getMaxTemporaryLockouts
public int getMaxTemporaryLockouts()- Specified by:
getMaxTemporaryLockoutsin interfaceRealmModel
-
getBruteForceStrategy
- Specified by:
getBruteForceStrategyin interfaceRealmModel
-
setBruteForceStrategy
- Specified by:
setBruteForceStrategyin interfaceRealmModel
-
setMaxTemporaryLockouts
public void setMaxTemporaryLockouts(int val) - Specified by:
setMaxTemporaryLockoutsin interfaceRealmModel
-
getMaxFailureWaitSeconds
public int getMaxFailureWaitSeconds()- Specified by:
getMaxFailureWaitSecondsin interfaceRealmModel
-
setMaxFailureWaitSeconds
public void setMaxFailureWaitSeconds(int val) - Specified by:
setMaxFailureWaitSecondsin interfaceRealmModel
-
getWaitIncrementSeconds
public int getWaitIncrementSeconds()- Specified by:
getWaitIncrementSecondsin interfaceRealmModel
-
setWaitIncrementSeconds
public void setWaitIncrementSeconds(int val) - Specified by:
setWaitIncrementSecondsin interfaceRealmModel
-
getQuickLoginCheckMilliSeconds
public long getQuickLoginCheckMilliSeconds()- Specified by:
getQuickLoginCheckMilliSecondsin interfaceRealmModel
-
setQuickLoginCheckMilliSeconds
public void setQuickLoginCheckMilliSeconds(long val) - Specified by:
setQuickLoginCheckMilliSecondsin interfaceRealmModel
-
getMinimumQuickLoginWaitSeconds
public int getMinimumQuickLoginWaitSeconds()- Specified by:
getMinimumQuickLoginWaitSecondsin interfaceRealmModel
-
setMinimumQuickLoginWaitSeconds
public void setMinimumQuickLoginWaitSeconds(int val) - Specified by:
setMinimumQuickLoginWaitSecondsin interfaceRealmModel
-
getMaxDeltaTimeSeconds
public int getMaxDeltaTimeSeconds()- Specified by:
getMaxDeltaTimeSecondsin interfaceRealmModel
-
setMaxDeltaTimeSeconds
public void setMaxDeltaTimeSeconds(int val) - Specified by:
setMaxDeltaTimeSecondsin interfaceRealmModel
-
getFailureFactor
public int getFailureFactor()- Specified by:
getFailureFactorin interfaceRealmModel
-
setFailureFactor
public void setFailureFactor(int failureFactor) - Specified by:
setFailureFactorin interfaceRealmModel
-
isVerifyEmail
public boolean isVerifyEmail()- Specified by:
isVerifyEmailin interfaceRealmModel
-
setVerifyEmail
public void setVerifyEmail(boolean verifyEmail) - Specified by:
setVerifyEmailin interfaceRealmModel
-
isLoginWithEmailAllowed
public boolean isLoginWithEmailAllowed()- Specified by:
isLoginWithEmailAllowedin interfaceRealmModel
-
setLoginWithEmailAllowed
public void setLoginWithEmailAllowed(boolean loginWithEmailAllowed) - Specified by:
setLoginWithEmailAllowedin interfaceRealmModel
-
isDuplicateEmailsAllowed
public boolean isDuplicateEmailsAllowed()- Specified by:
isDuplicateEmailsAllowedin interfaceRealmModel
-
setDuplicateEmailsAllowed
public void setDuplicateEmailsAllowed(boolean duplicateEmailsAllowed) - Specified by:
setDuplicateEmailsAllowedin interfaceRealmModel
-
isResetPasswordAllowed
public boolean isResetPasswordAllowed()- Specified by:
isResetPasswordAllowedin interfaceRealmModel
-
setResetPasswordAllowed
public void setResetPasswordAllowed(boolean resetPasswordAllowed) - Specified by:
setResetPasswordAllowedin interfaceRealmModel
-
isEditUsernameAllowed
public boolean isEditUsernameAllowed()- Specified by:
isEditUsernameAllowedin interfaceRealmModel
-
setEditUsernameAllowed
public void setEditUsernameAllowed(boolean editUsernameAllowed) - Specified by:
setEditUsernameAllowedin interfaceRealmModel
-
getNotBefore
public int getNotBefore()Description copied from interface:RealmModelTime in seconds since epoc- Specified by:
getNotBeforein interfaceRealmModel- Returns:
-
setNotBefore
public void setNotBefore(int notBefore) - Specified by:
setNotBeforein interfaceRealmModel
-
isRevokeRefreshToken
public boolean isRevokeRefreshToken()- Specified by:
isRevokeRefreshTokenin interfaceRealmModel
-
setRevokeRefreshToken
public void setRevokeRefreshToken(boolean revokeRefreshToken) - Specified by:
setRevokeRefreshTokenin interfaceRealmModel
-
getRefreshTokenMaxReuse
public int getRefreshTokenMaxReuse()- Specified by:
getRefreshTokenMaxReusein interfaceRealmModel
-
setRefreshTokenMaxReuse
public void setRefreshTokenMaxReuse(int revokeRefreshTokenReuseCount) - Specified by:
setRefreshTokenMaxReusein interfaceRealmModel
-
getAccessTokenLifespan
public int getAccessTokenLifespan()- Specified by:
getAccessTokenLifespanin interfaceRealmModel
-
setAccessTokenLifespan
public void setAccessTokenLifespan(int tokenLifespan) - Specified by:
setAccessTokenLifespanin interfaceRealmModel
-
getAccessTokenLifespanForImplicitFlow
public int getAccessTokenLifespanForImplicitFlow()- Specified by:
getAccessTokenLifespanForImplicitFlowin interfaceRealmModel
-
setAccessTokenLifespanForImplicitFlow
public void setAccessTokenLifespanForImplicitFlow(int seconds) - Specified by:
setAccessTokenLifespanForImplicitFlowin interfaceRealmModel
-
getSsoSessionIdleTimeout
public int getSsoSessionIdleTimeout()- Specified by:
getSsoSessionIdleTimeoutin interfaceRealmModel
-
setSsoSessionIdleTimeout
public void setSsoSessionIdleTimeout(int seconds) - Specified by:
setSsoSessionIdleTimeoutin interfaceRealmModel
-
getSsoSessionMaxLifespan
public int getSsoSessionMaxLifespan()- Specified by:
getSsoSessionMaxLifespanin interfaceRealmModel
-
setSsoSessionMaxLifespan
public void setSsoSessionMaxLifespan(int seconds) - Specified by:
setSsoSessionMaxLifespanin interfaceRealmModel
-
getSsoSessionIdleTimeoutRememberMe
public int getSsoSessionIdleTimeoutRememberMe()- Specified by:
getSsoSessionIdleTimeoutRememberMein interfaceRealmModel
-
setSsoSessionIdleTimeoutRememberMe
public void setSsoSessionIdleTimeoutRememberMe(int seconds) - Specified by:
setSsoSessionIdleTimeoutRememberMein interfaceRealmModel
-
getSsoSessionMaxLifespanRememberMe
public int getSsoSessionMaxLifespanRememberMe()- Specified by:
getSsoSessionMaxLifespanRememberMein interfaceRealmModel
-
setSsoSessionMaxLifespanRememberMe
public void setSsoSessionMaxLifespanRememberMe(int seconds) - Specified by:
setSsoSessionMaxLifespanRememberMein interfaceRealmModel
-
getOfflineSessionIdleTimeout
public int getOfflineSessionIdleTimeout()- Specified by:
getOfflineSessionIdleTimeoutin interfaceRealmModel
-
setOfflineSessionIdleTimeout
public void setOfflineSessionIdleTimeout(int seconds) - Specified by:
setOfflineSessionIdleTimeoutin interfaceRealmModel
-
isOfflineSessionMaxLifespanEnabled
public boolean isOfflineSessionMaxLifespanEnabled()- Specified by:
isOfflineSessionMaxLifespanEnabledin interfaceRealmModel
-
setOfflineSessionMaxLifespanEnabled
public void setOfflineSessionMaxLifespanEnabled(boolean offlineSessionMaxLifespanEnabled) - Specified by:
setOfflineSessionMaxLifespanEnabledin interfaceRealmModel
-
getOfflineSessionMaxLifespan
public int getOfflineSessionMaxLifespan()- Specified by:
getOfflineSessionMaxLifespanin interfaceRealmModel
-
setOfflineSessionMaxLifespan
public void setOfflineSessionMaxLifespan(int seconds) - Specified by:
setOfflineSessionMaxLifespanin interfaceRealmModel
-
getClientSessionIdleTimeout
public int getClientSessionIdleTimeout()- Specified by:
getClientSessionIdleTimeoutin interfaceRealmModel
-
setClientSessionIdleTimeout
public void setClientSessionIdleTimeout(int seconds) - Specified by:
setClientSessionIdleTimeoutin interfaceRealmModel
-
getClientSessionMaxLifespan
public int getClientSessionMaxLifespan()- Specified by:
getClientSessionMaxLifespanin interfaceRealmModel
-
setClientSessionMaxLifespan
public void setClientSessionMaxLifespan(int seconds) - Specified by:
setClientSessionMaxLifespanin interfaceRealmModel
-
getClientOfflineSessionIdleTimeout
public int getClientOfflineSessionIdleTimeout()- Specified by:
getClientOfflineSessionIdleTimeoutin interfaceRealmModel
-
setClientOfflineSessionIdleTimeout
public void setClientOfflineSessionIdleTimeout(int seconds) - Specified by:
setClientOfflineSessionIdleTimeoutin interfaceRealmModel
-
getClientOfflineSessionMaxLifespan
public int getClientOfflineSessionMaxLifespan()- Specified by:
getClientOfflineSessionMaxLifespanin interfaceRealmModel
-
setClientOfflineSessionMaxLifespan
public void setClientOfflineSessionMaxLifespan(int seconds) - Specified by:
setClientOfflineSessionMaxLifespanin interfaceRealmModel
-
getAccessCodeLifespan
public int getAccessCodeLifespan()- Specified by:
getAccessCodeLifespanin interfaceRealmModel
-
setAccessCodeLifespan
public void setAccessCodeLifespan(int accessCodeLifespan) - Specified by:
setAccessCodeLifespanin interfaceRealmModel
-
getAccessCodeLifespanUserAction
public int getAccessCodeLifespanUserAction()- Specified by:
getAccessCodeLifespanUserActionin interfaceRealmModel
-
setAccessCodeLifespanUserAction
public void setAccessCodeLifespanUserAction(int accessCodeLifespanUserAction) - Specified by:
setAccessCodeLifespanUserActionin interfaceRealmModel
-
getOAuth2DeviceConfig
- Specified by:
getOAuth2DeviceConfigin interfaceRealmModel
-
getCibaPolicy
- Specified by:
getCibaPolicyin interfaceRealmModel
-
getParPolicy
- Specified by:
getParPolicyin interfaceRealmModel
-
getUserActionTokenLifespans
Description copied from interface:RealmModelThis method will return a map with all the lifespans available or an empty map, but never null.- Specified by:
getUserActionTokenLifespansin interfaceRealmModel- Returns:
- map with user action token lifespans
-
getAccessCodeLifespanLogin
public int getAccessCodeLifespanLogin()- Specified by:
getAccessCodeLifespanLoginin interfaceRealmModel
-
setAccessCodeLifespanLogin
public void setAccessCodeLifespanLogin(int accessCodeLifespanLogin) - Specified by:
setAccessCodeLifespanLoginin interfaceRealmModel
-
getActionTokenGeneratedByAdminLifespan
public int getActionTokenGeneratedByAdminLifespan()- Specified by:
getActionTokenGeneratedByAdminLifespanin interfaceRealmModel
-
setActionTokenGeneratedByAdminLifespan
public void setActionTokenGeneratedByAdminLifespan(int actionTokenGeneratedByAdminLifespan) - Specified by:
setActionTokenGeneratedByAdminLifespanin interfaceRealmModel
-
getActionTokenGeneratedByUserLifespan
public int getActionTokenGeneratedByUserLifespan()- Specified by:
getActionTokenGeneratedByUserLifespanin interfaceRealmModel
-
setActionTokenGeneratedByUserLifespan
public void setActionTokenGeneratedByUserLifespan(int actionTokenGeneratedByUserLifespan) - Specified by:
setActionTokenGeneratedByUserLifespanin interfaceRealmModel
-
getActionTokenGeneratedByUserLifespan
- Specified by:
getActionTokenGeneratedByUserLifespanin interfaceRealmModel
-
setActionTokenGeneratedByUserLifespan
public void setActionTokenGeneratedByUserLifespan(String actionTokenId, Integer actionTokenGeneratedByUserLifespan) - Specified by:
setActionTokenGeneratedByUserLifespanin interfaceRealmModel
-
initRequiredCredentialModel
-
addRequiredCredential
- Specified by:
addRequiredCredentialin interfaceRealmModel
-
addRequiredCredential
-
updateRequiredCredentials
- Specified by:
updateRequiredCredentialsin interfaceRealmModel
-
getRequiredCredentialsStream
Description copied from interface:RealmModelReturns required credentials as a stream.- Specified by:
getRequiredCredentialsStreamin interfaceRealmModel- Returns:
- Stream of
RequiredCredentialModel. Never returnsnull.
-
getDefaultGroupsStream
Description copied from interface:RealmModelReturns default groups as a stream.- Specified by:
getDefaultGroupsStreamin interfaceRealmModel- Returns:
- Stream of
GroupModel. Never returnsnull.
-
addDefaultGroup
- Specified by:
addDefaultGroupin interfaceRealmModel
-
removeDefaultGroup
- Specified by:
removeDefaultGroupin interfaceRealmModel
-
getClientsStream
Description copied from interface:RealmModelReturns clients as a stream.- Specified by:
getClientsStreamin interfaceRealmModel- Returns:
- Stream of
ClientModel. Never returnsnull.
-
getClientsStream
Description copied from interface:RealmModelReturns clients as a stream.- Specified by:
getClientsStreamin interfaceRealmModel- Parameters:
firstResult-IntegerIndex of the first desired client. Ignored if negative ornull.maxResults-IntegerMaximum number of returned clients. Ignored if negative ornull.- Returns:
- Stream of
ClientModel. Never returnsnull.
-
getAlwaysDisplayInConsoleClientsStream
Description copied from interface:RealmModelReturns clients which are always displayed in the admin console as a stream.- Specified by:
getAlwaysDisplayInConsoleClientsStreamin interfaceRealmModel- Returns:
- Stream of
ClientModel. Never returnsnull.
-
addClient
- Specified by:
addClientin interfaceRealmModel
-
addClient
- Specified by:
addClientin interfaceRealmModel
-
removeClient
- Specified by:
removeClientin interfaceRealmModel
-
getClientById
- Specified by:
getClientByIdin interfaceRealmModel
-
getClientByClientId
- Specified by:
getClientByClientIdin interfaceRealmModel
-
searchClientByClientIdStream
public Stream<ClientModel> searchClientByClientIdStream(String clientId, Integer firstResult, Integer maxResults) Description copied from interface:RealmModelSearch for clients by provided client's id.- Specified by:
searchClientByClientIdStreamin interfaceRealmModel- Parameters:
clientId-StringId 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:
searchClientByAttributesin interfaceRealmModel
-
searchClientByAuthenticationFlowBindingOverrides
public Stream<ClientModel> searchClientByAuthenticationFlowBindingOverrides(Map<String, String> overrides, Integer firstResult, Integer maxResults) - Specified by:
searchClientByAuthenticationFlowBindingOverridesin interfaceRealmModel
-
getBrowserSecurityHeaders
- Specified by:
getBrowserSecurityHeadersin interfaceRealmModel
-
setBrowserSecurityHeaders
- Specified by:
setBrowserSecurityHeadersin interfaceRealmModel
-
getSmtpConfig
- Specified by:
getSmtpConfigin interfaceRealmModel
-
setSmtpConfig
- Specified by:
setSmtpConfigin interfaceRealmModel
-
getRole
- Specified by:
getRolein interfaceRoleContainerModel
-
addRole
- Specified by:
addRolein interfaceRoleContainerModel
-
addRole
- Specified by:
addRolein interfaceRoleContainerModel
-
removeRole
- Specified by:
removeRolein interfaceRoleContainerModel
-
getRolesStream
Description copied from interface:RoleContainerModelReturns available roles as a stream.- Specified by:
getRolesStreamin interfaceRoleContainerModel- Returns:
- Stream of
RoleModel. Never returnsnull.
-
getRolesStream
Description copied from interface:RoleContainerModelReturns available roles as a stream.- Specified by:
getRolesStreamin interfaceRoleContainerModel- Parameters:
first-IntegerIndex of the first desired role. Ignored if negative ornull.max-IntegerMaximum number of returned roles. Ignored if negative ornull.- Returns:
- Stream of
RoleModel. Never returnsnull.
-
searchForRolesStream
Description copied from interface:RoleContainerModelSearches roles by the given name. Returns all roles that match the given filter.- Specified by:
searchForRolesStreamin interfaceRoleContainerModel- Parameters:
search-StringName of the role to be used as a filter.first-IntegerIndex of the first desired role. Ignored if negative ornull.max-IntegerMaximum number of returned roles. Ignored if negative ornull.- Returns:
- Stream of
RoleModel. Never returnsnull.
-
getRoleById
- Specified by:
getRoleByIdin interfaceRealmModel
-
getPasswordPolicy
- Specified by:
getPasswordPolicyin interfaceRealmModel
-
setPasswordPolicy
- Specified by:
setPasswordPolicyin interfaceRealmModel
-
getOTPPolicy
- Specified by:
getOTPPolicyin interfaceRealmModel
-
setOTPPolicy
- Specified by:
setOTPPolicyin interfaceRealmModel
-
getWebAuthnPolicy
- Specified by:
getWebAuthnPolicyin interfaceRealmModel- Returns:
- WebAuthn policy for 2-factor authentication
-
setWebAuthnPolicy
Description copied from interface:RealmModelSet WebAuthn policy for 2-factor authentication- Specified by:
setWebAuthnPolicyin interfaceRealmModel
-
getWebAuthnPolicyPasswordless
- Specified by:
getWebAuthnPolicyPasswordlessin interfaceRealmModel- Returns:
- WebAuthn passwordless policy below. This is temporary and will be removed later.
-
setWebAuthnPolicyPasswordless
Description copied from interface:RealmModelSet WebAuthn passwordless policy below. This is temporary and will be removed later.- Specified by:
setWebAuthnPolicyPasswordlessin interfaceRealmModel
-
equals
-
hashCode
public int hashCode() -
getLoginTheme
- Specified by:
getLoginThemein interfaceRealmModel
-
setLoginTheme
- Specified by:
setLoginThemein interfaceRealmModel
-
getAccountTheme
- Specified by:
getAccountThemein interfaceRealmModel
-
setAccountTheme
- Specified by:
setAccountThemein interfaceRealmModel
-
getAdminTheme
- Specified by:
getAdminThemein interfaceRealmModel
-
setAdminTheme
- Specified by:
setAdminThemein interfaceRealmModel
-
getEmailTheme
- Specified by:
getEmailThemein interfaceRealmModel
-
setEmailTheme
- Specified by:
setEmailThemein interfaceRealmModel
-
isEventsEnabled
public boolean isEventsEnabled()- Specified by:
isEventsEnabledin interfaceRealmModel
-
setEventsEnabled
public void setEventsEnabled(boolean enabled) - Specified by:
setEventsEnabledin interfaceRealmModel
-
getEventsExpiration
public long getEventsExpiration()- Specified by:
getEventsExpirationin interfaceRealmModel
-
setEventsExpiration
public void setEventsExpiration(long expiration) - Specified by:
setEventsExpirationin interfaceRealmModel
-
getEventsListenersStream
Description copied from interface:RealmModelReturns events listeners as a stream.- Specified by:
getEventsListenersStreamin interfaceRealmModel- Returns:
- Stream of
String. Never returnsnull.
-
setEventsListeners
- Specified by:
setEventsListenersin interfaceRealmModel
-
getEnabledEventTypesStream
Description copied from interface:RealmModelReturns enabled event types as a stream.- Specified by:
getEnabledEventTypesStreamin interfaceRealmModel- Returns:
- Stream of
String. Never returnsnull.
-
setEnabledEventTypes
- Specified by:
setEnabledEventTypesin interfaceRealmModel
-
isAdminEventsEnabled
public boolean isAdminEventsEnabled()- Specified by:
isAdminEventsEnabledin interfaceRealmModel
-
setAdminEventsEnabled
public void setAdminEventsEnabled(boolean enabled) - Specified by:
setAdminEventsEnabledin interfaceRealmModel
-
isAdminEventsDetailsEnabled
public boolean isAdminEventsDetailsEnabled()- Specified by:
isAdminEventsDetailsEnabledin interfaceRealmModel
-
setAdminEventsDetailsEnabled
public void setAdminEventsDetailsEnabled(boolean enabled) - Specified by:
setAdminEventsDetailsEnabledin interfaceRealmModel
-
isOrganizationsEnabled
public boolean isOrganizationsEnabled()- Specified by:
isOrganizationsEnabledin interfaceRealmModel
-
setOrganizationsEnabled
public void setOrganizationsEnabled(boolean organizationsEnabled) - Specified by:
setOrganizationsEnabledin interfaceRealmModel
-
isAdminPermissionsEnabled
public boolean isAdminPermissionsEnabled()- Specified by:
isAdminPermissionsEnabledin interfaceRealmModel
-
setAdminPermissionsEnabled
public void setAdminPermissionsEnabled(boolean adminPermissionsEnabled) - Specified by:
setAdminPermissionsEnabledin interfaceRealmModel
-
isVerifiableCredentialsEnabled
public boolean isVerifiableCredentialsEnabled()- Specified by:
isVerifiableCredentialsEnabledin interfaceRealmModel
-
setVerifiableCredentialsEnabled
public void setVerifiableCredentialsEnabled(boolean verifiableCredentialsEnabled) - Specified by:
setVerifiableCredentialsEnabledin interfaceRealmModel
-
getMasterAdminClient
- Specified by:
getMasterAdminClientin interfaceRealmModel
-
setMasterAdminClient
- Specified by:
setMasterAdminClientin interfaceRealmModel
-
setDefaultRole
Description copied from interface:RealmModelSets default role for this realm- Specified by:
setDefaultRolein interfaceRealmModel- Parameters:
role- to be set
-
getDefaultRole
Description copied from interface:RealmModelReturns default realm role. All both realm and client default roles are assigned as composite of this role.- Specified by:
getDefaultRolein interfaceRealmModel- Returns:
- Default role of this realm
-
setAdminPermissionsClient
- Specified by:
setAdminPermissionsClientin interfaceRealmModel
-
getAdminPermissionsClient
- Specified by:
getAdminPermissionsClientin interfaceRealmModel
-
getIdentityProvidersStream
Description copied from interface:RealmModelReturns identity providers as a stream.- Specified by:
getIdentityProvidersStreamin interfaceRealmModel- Returns:
- Stream of
IdentityProviderModel. Never returnsnull.
-
getIdentityProviderByAlias
- Specified by:
getIdentityProviderByAliasin interfaceRealmModel
-
addIdentityProvider
- Specified by:
addIdentityProviderin interfaceRealmModel
-
removeIdentityProviderByAlias
- Specified by:
removeIdentityProviderByAliasin interfaceRealmModel
-
updateIdentityProvider
- Specified by:
updateIdentityProviderin interfaceRealmModel
-
isIdentityFederationEnabled
public boolean isIdentityFederationEnabled()- Specified by:
isIdentityFederationEnabledin interfaceRealmModel
-
isInternationalizationEnabled
public boolean isInternationalizationEnabled()- Specified by:
isInternationalizationEnabledin interfaceRealmModel
-
setInternationalizationEnabled
public void setInternationalizationEnabled(boolean enabled) - Specified by:
setInternationalizationEnabledin interfaceRealmModel
-
getSupportedLocalesStream
Description copied from interface:RealmModelReturns supported locales as a stream.- Specified by:
getSupportedLocalesStreamin interfaceRealmModel- Returns:
- Stream of
String. Never returnsnull.
-
setSupportedLocales
- Specified by:
setSupportedLocalesin interfaceRealmModel
-
getDefaultLocale
- Specified by:
getDefaultLocalein interfaceRealmModel
-
setDefaultLocale
- Specified by:
setDefaultLocalein interfaceRealmModel
-
getIdentityProviderMappersStream
Description copied from interface:RealmModelReturns identity provider mappers as a stream.- Specified by:
getIdentityProviderMappersStreamin interfaceRealmModel- Returns:
- Stream of
IdentityProviderMapperModel. Never returnsnull.
-
getIdentityProviderMappersByAliasStream
public Stream<IdentityProviderMapperModel> getIdentityProviderMappersByAliasStream(String brokerAlias) Description copied from interface:RealmModelReturns identity provider mappers by the provided alias as a stream.- Specified by:
getIdentityProviderMappersByAliasStreamin interfaceRealmModel- Parameters:
brokerAlias-StringBroker's alias to filter results.- Returns:
- Stream of
IdentityProviderMapperModelNever returnsnull.
-
addIdentityProviderMapper
- Specified by:
addIdentityProviderMapperin interfaceRealmModel
-
removeIdentityProviderMapper
- Specified by:
removeIdentityProviderMapperin interfaceRealmModel
-
updateIdentityProviderMapper
- Specified by:
updateIdentityProviderMapperin interfaceRealmModel
-
getIdentityProviderMapperById
- Specified by:
getIdentityProviderMapperByIdin interfaceRealmModel
-
getIdentityProviderMapperByName
- Specified by:
getIdentityProviderMapperByNamein interfaceRealmModel
-
getBrowserFlow
- Specified by:
getBrowserFlowin interfaceRealmModel
-
setBrowserFlow
- Specified by:
setBrowserFlowin interfaceRealmModel
-
getRegistrationFlow
- Specified by:
getRegistrationFlowin interfaceRealmModel
-
setRegistrationFlow
- Specified by:
setRegistrationFlowin interfaceRealmModel
-
getDirectGrantFlow
- Specified by:
getDirectGrantFlowin interfaceRealmModel
-
setDirectGrantFlow
- Specified by:
setDirectGrantFlowin interfaceRealmModel
-
getResetCredentialsFlow
- Specified by:
getResetCredentialsFlowin interfaceRealmModel
-
setResetCredentialsFlow
- Specified by:
setResetCredentialsFlowin interfaceRealmModel
-
getClientAuthenticationFlow
- Specified by:
getClientAuthenticationFlowin interfaceRealmModel
-
setClientAuthenticationFlow
- Specified by:
setClientAuthenticationFlowin interfaceRealmModel
-
getDockerAuthenticationFlow
- Specified by:
getDockerAuthenticationFlowin interfaceRealmModel
-
setDockerAuthenticationFlow
- Specified by:
setDockerAuthenticationFlowin interfaceRealmModel
-
getFirstBrokerLoginFlow
- Specified by:
getFirstBrokerLoginFlowin interfaceRealmModel
-
setFirstBrokerLoginFlow
- Specified by:
setFirstBrokerLoginFlowin interfaceRealmModel
-
getAuthenticationFlowsStream
Description copied from interface:RealmModelReturns authentications flows as a stream.- Specified by:
getAuthenticationFlowsStreamin interfaceRealmModel- Returns:
- Stream of
AuthenticationFlowModel. Never returnsnull.
-
getFlowByAlias
- Specified by:
getFlowByAliasin interfaceRealmModel
-
getAuthenticatorConfigByAlias
- Specified by:
getAuthenticatorConfigByAliasin interfaceRealmModel
-
entityToModel
-
getAuthenticationFlowById
- Specified by:
getAuthenticationFlowByIdin interfaceRealmModel
-
removeAuthenticationFlow
- Specified by:
removeAuthenticationFlowin interfaceRealmModel
-
updateAuthenticationFlow
- Specified by:
updateAuthenticationFlowin interfaceRealmModel
-
addAuthenticationFlow
- Specified by:
addAuthenticationFlowin interfaceRealmModel
-
getAuthenticationExecutionsStream
Description copied from interface:RealmModelReturns sorted (according to priority)AuthenticationExecutionModelas a stream. It should be used with forEachOrdered if the ordering is required.- Specified by:
getAuthenticationExecutionsStreamin interfaceRealmModel- Parameters:
flowId-StringId of the flow.- Returns:
- Sorted stream of
AuthenticationExecutionModel. Never returnsnull.
-
entityToModel
-
getAuthenticationExecutionById
- Specified by:
getAuthenticationExecutionByIdin interfaceRealmModel
-
getAuthenticationExecutionByFlowId
- Specified by:
getAuthenticationExecutionByFlowIdin interfaceRealmModel
-
addAuthenticatorExecution
- Specified by:
addAuthenticatorExecutionin interfaceRealmModel
-
updateAuthenticatorExecution
- Specified by:
updateAuthenticatorExecutionin interfaceRealmModel
-
removeAuthenticatorExecution
- Specified by:
removeAuthenticatorExecutionin interfaceRealmModel
-
addAuthenticatorConfig
- Specified by:
addAuthenticatorConfigin interfaceRealmModel
-
removeAuthenticatorConfig
- Specified by:
removeAuthenticatorConfigin interfaceRealmModel
-
getAuthenticatorConfigById
- Specified by:
getAuthenticatorConfigByIdin interfaceRealmModel
-
entityToModel
-
updateAuthenticatorConfig
- Specified by:
updateAuthenticatorConfigin interfaceRealmModel
-
getAuthenticatorConfigsStream
Description copied from interface:RealmModelReturns authentication configs as a stream.- Specified by:
getAuthenticatorConfigsStreamin interfaceRealmModel- Returns:
- Stream of
AuthenticatorConfigModel. Never returnsnull.
-
getRequiredActionConfigsStream
- Specified by:
getRequiredActionConfigsStreamin interfaceRealmModel
-
getRequiredActionConfigById
- Specified by:
getRequiredActionConfigByIdin interfaceRealmModel
-
getRequiredActionConfigByAlias
- Specified by:
getRequiredActionConfigByAliasin interfaceRealmModel
-
removeRequiredActionProviderConfig
- Specified by:
removeRequiredActionProviderConfigin interfaceRealmModel
-
updateRequiredActionConfig
- Specified by:
updateRequiredActionConfigin interfaceRealmModel
-
addRequiredActionProvider
- Specified by:
addRequiredActionProviderin interfaceRealmModel
-
removeRequiredActionProvider
- Specified by:
removeRequiredActionProviderin interfaceRealmModel
-
getRequiredActionProviderById
- Specified by:
getRequiredActionProviderByIdin interfaceRealmModel
-
entityToModel
-
updateRequiredActionProvider
- Specified by:
updateRequiredActionProviderin interfaceRealmModel
-
getRequiredActionProvidersStream
Description copied from interface:RealmModelReturns sortedRequiredActionProviderModelas a stream. It should be used with forEachOrdered if the ordering is required.- Specified by:
getRequiredActionProvidersStreamin interfaceRealmModel- Returns:
- Sorted stream of
RequiredActionProviderModel. Never returnsnull.
-
getRequiredActionProviderByAlias
- Specified by:
getRequiredActionProviderByAliasin interfaceRealmModel
-
createGroup
- Specified by:
createGroupin interfaceRealmModel
-
moveGroup
- Specified by:
moveGroupin interfaceRealmModel
-
getGroupById
- Specified by:
getGroupByIdin interfaceRealmModel
-
getGroupsStream
Description copied from interface:RealmModelReturns groups as a stream.- Specified by:
getGroupsStreamin interfaceRealmModel- Returns:
- Stream of
GroupModel. Never returnsnull.
-
getGroupsCount
- Specified by:
getGroupsCountin interfaceRealmModel
-
getGroupsCountByNameContaining
- Specified by:
getGroupsCountByNameContainingin interfaceRealmModel
-
getTopLevelGroupsStream
- Specified by:
getTopLevelGroupsStreamin interfaceRealmModel
-
getTopLevelGroupsStream
- Specified by:
getTopLevelGroupsStreamin interfaceRealmModel
-
removeGroup
- Specified by:
removeGroupin interfaceRealmModel
-
getClientScopesStream
Description copied from interface:RealmModelReturns all client scopes of this realm as a stream.- Specified by:
getClientScopesStreamin interfaceRealmModel- Returns:
- Stream of
ClientScopeModel. Never returnsnull.
-
addClientScope
Description copied from interface:RealmModelCreates new client scope with the given name. Internal ID is created automatically. If given name contains spaces, those are replaced by underscores.- Specified by:
addClientScopein interfaceRealmModel- Parameters:
name-Stringname of the client scope.- Returns:
- Model of the created client scope.
-
addClientScope
Description copied from interface:RealmModelCreates new client scope with the given internal ID and name. If given name contains spaces, those are replaced by underscores.- Specified by:
addClientScopein interfaceRealmModel- Parameters:
id-Stringid of the client scope.name-Stringname of the client scope.- Returns:
- Model of the created client scope.
-
removeClientScope
Description copied from interface:RealmModelRemoves client scope with givenidfrom this realm.- Specified by:
removeClientScopein 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:
getClientScopeByIdin interfaceRealmModel- Parameters:
id- of the client scope- Returns:
- Client scope with the given
id, ornullwhen the scope does not exist.
-
addDefaultClientScope
Description copied from interface:RealmModelAdds given client scope among default/optional client scopes of this realm. The scope will be assigned to each new client.- Specified by:
addDefaultClientScopein interfaceRealmModel- Parameters:
clientScope- to be addeddefaultScope- iftruethe scope will be added among default client scopes, iffalseit will be added among optional client scopes
-
removeDefaultClientScope
Description copied from interface:RealmModelRemoves given client scope from default or optional client scopes of this realm.- Specified by:
removeDefaultClientScopein interfaceRealmModel- Parameters:
clientScope- to be removed
-
getDefaultClientScopesStream
Description copied from interface:RealmModelReturns default client scopes of this realm either default ones or optional ones.- Specified by:
getDefaultClientScopesStreamin interfaceRealmModel- Parameters:
defaultScope- iftruedefault client scopes are returned, iffalseoptional client scopes are returned.- Returns:
- Stream of
ClientScopeModel. Never returnsnull.
-
addComponentModel
Description copied from interface:RealmModelAdds component model. Will call onCreate() method of ComponentFactory- Specified by:
addComponentModelin interfaceRealmModel- Returns:
-
importComponentModel
Description copied from interface:RealmModelAdds component model. Will NOT call onCreate() method of ComponentFactory- Specified by:
importComponentModelin interfaceRealmModel- Returns:
-
setConfig
-
updateComponent
Description copied from interface:RealmModelUpdates component model. Will call onUpdate() method of ComponentFactory- Specified by:
updateComponentin interfaceRealmModel- Parameters:
component- to be updated
-
removeComponent
Description copied from interface:RealmModelRemoves given component. Will call preRemove() method of ComponentFactory. Also callsthis.removeComponents(component.getId()).- Specified by:
removeComponentin interfaceRealmModel- Parameters:
component- to be removed
-
removeComponents
Description copied from interface:RealmModelRemoves all components with givenparentId- Specified by:
removeComponentsin interfaceRealmModel- Parameters:
parentId-Stringid of parent
-
getComponentsStream
Description copied from interface:RealmModelReturns stream of ComponentModels for specific parentId and providerType.- Specified by:
getComponentsStreamin interfaceRealmModel- Parameters:
parentId-Stringid of parentproviderType-Stringtype of provider- Returns:
- Stream of
ComponentModel. Never returnsnull.
-
getComponentsStream
Description copied from interface:RealmModelReturns stream of ComponentModels for specific parentId.- Specified by:
getComponentsStreamin interfaceRealmModel- Parameters:
parentId-Stringid of parent- Returns:
- Stream of
ComponentModel. Never returnsnull.
-
entityToModel
-
getComponentsStream
Description copied from interface:RealmModelReturns stream of component models.- Specified by:
getComponentsStreamin interfaceRealmModel- Returns:
- Stream of
ComponentModel. Never returnsnull.
-
getComponent
- Specified by:
getComponentin interfaceRealmModel
-
createOrUpdateRealmLocalizationTexts
public void createOrUpdateRealmLocalizationTexts(String locale, Map<String, String> localizationTexts) Description copied from interface:RealmModelCreates 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:
createOrUpdateRealmLocalizationTextsin interfaceRealmModel
-
removeRealmLocalizationTexts
- Specified by:
removeRealmLocalizationTextsin interfaceRealmModel
-
getRealmLocalizationTexts
- Specified by:
getRealmLocalizationTextsin interfaceRealmModel
-
getRealmLocalizationTextsByLocale
- Specified by:
getRealmLocalizationTextsByLocalein interfaceRealmModel
-
createClientInitialAccessModel
- Specified by:
createClientInitialAccessModelin interfaceRealmModel
-
getClientInitialAccessModel
- Specified by:
getClientInitialAccessModelin interfaceRealmModel
-
removeClientInitialAccessModel
- Specified by:
removeClientInitialAccessModelin interfaceRealmModel
-
getClientInitialAccesses
- Specified by:
getClientInitialAccessesin interfaceRealmModel
-
decreaseRemainingCount
- Specified by:
decreaseRemainingCountin interfaceRealmModel
-
toString
-