Class RealmAdapter
- java.lang.Object
-
- org.keycloak.models.cache.infinispan.RealmAdapter
-
- All Implemented Interfaces:
CachedRealmModel,LegacyRealmModel,RealmModel,RoleContainerModel
public class RealmAdapter extends Object implements CachedRealmModel
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.cache.CachedRealmModel
CachedRealmModel.RealmCachedEvent
-
Nested classes/interfaces inherited from interface org.keycloak.models.RealmModel
RealmModel.IdentityProviderRemovedEvent, RealmModel.IdentityProviderUpdatedEvent, RealmModel.RealmCreationEvent, RealmModel.RealmPostCreateEvent, RealmModel.RealmRemovedEvent, RealmModel.SearchableFields
-
Nested classes/interfaces inherited from interface org.keycloak.models.RoleContainerModel
RoleContainerModel.RoleRemovedEvent
-
-
Field Summary
Fields Modifier and Type Field Description protected CachedRealmcachedprotected RealmCacheSessioncacheSessionprotected booleaninvalidatedprotected KeycloakSessionsessionprotected RealmModelupdated-
Fields inherited from interface org.keycloak.models.RealmModel
COMPARE_BY_NAME
-
-
Constructor Summary
Constructors Constructor Description RealmAdapter(KeycloakSession session, CachedRealm cached, RealmCacheSession cacheSession)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.LegacyRealmModel
getClientStorageProviders, getClientStorageProvidersStream, getRoleStorageProviders, getRoleStorageProvidersStream, getUserStorageProviders, getUserStorageProvidersStream
-
Methods inherited from interface org.keycloak.models.RealmModel
createGroup, createGroup, createGroup, getStorageProviders
-
Methods inherited from interface org.keycloak.models.RoleContainerModel
getDefaultRoles, updateDefaultRoles
-
-
-
-
Field Detail
-
cached
protected CachedRealm cached
-
cacheSession
protected RealmCacheSession cacheSession
-
updated
protected volatile RealmModel updated
-
session
protected KeycloakSession session
-
invalidated
protected volatile boolean invalidated
-
-
Constructor Detail
-
RealmAdapter
public RealmAdapter(KeycloakSession session, CachedRealm cached, RealmCacheSession cacheSession)
-
-
Method Detail
-
getDelegateForUpdate
public RealmModel getDelegateForUpdate()
Description copied from interface:CachedRealmModelInvalidates the cache for this model and returns a delegate that represents the actual data provider- Specified by:
getDelegateForUpdatein interfaceCachedRealmModel- Returns:
-
invalidateFlag
protected void invalidateFlag()
-
invalidate
public void invalidate()
Description copied from interface:CachedRealmModelInvalidate the cache for this model- Specified by:
invalidatein interfaceCachedRealmModel
-
getCacheTimestamp
public long getCacheTimestamp()
Description copied from interface:CachedRealmModelWhen was the model was loaded from database.- Specified by:
getCacheTimestampin interfaceCachedRealmModel- Returns:
-
getCachedWith
public ConcurrentHashMap getCachedWith()
Description copied from interface:CachedRealmModelReturns a map that contains custom things that are cached along with this model. You can write to this map.- Specified by:
getCachedWithin interfaceCachedRealmModel- Returns:
-
isUpdated
protected boolean isUpdated()
-
getId
public String getId()
- Specified by:
getIdin interfaceRealmModel- Specified by:
getIdin interfaceRoleContainerModel
-
getName
public String getName()
- Specified by:
getNamein interfaceRealmModel
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceRealmModel
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceRealmModel
-
setDisplayName
public void setDisplayName(String displayName)
- Specified by:
setDisplayNamein interfaceRealmModel
-
getDisplayNameHtml
public String getDisplayNameHtml()
- Specified by:
getDisplayNameHtmlin interfaceRealmModel
-
setDisplayNameHtml
public void setDisplayNameHtml(String displayNameHtml)
- Specified by:
setDisplayNameHtmlin interfaceRealmModel
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceRealmModel
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfaceRealmModel
-
isUserManagedAccessAllowed
public boolean isUserManagedAccessAllowed()
- Specified by:
isUserManagedAccessAllowedin interfaceRealmModel
-
setUserManagedAccessAllowed
public void setUserManagedAccessAllowed(boolean userManagedAccessAllowed)
- Specified by:
setUserManagedAccessAllowedin interfaceRealmModel
-
getSslRequired
public SslRequired getSslRequired()
- Specified by:
getSslRequiredin interfaceRealmModel
-
setSslRequired
public void setSslRequired(SslRequired sslRequired)
- Specified by:
setSslRequiredin interfaceRealmModel
-
isRegistrationAllowed
public boolean isRegistrationAllowed()
- Specified by:
isRegistrationAllowedin interfaceRealmModel
-
setRegistrationAllowed
public void setRegistrationAllowed(boolean registrationAllowed)
- Specified by:
setRegistrationAllowedin interfaceRealmModel
-
isRegistrationEmailAsUsername
public boolean isRegistrationEmailAsUsername()
- Specified by:
isRegistrationEmailAsUsernamein interfaceRealmModel
-
setRegistrationEmailAsUsername
public void setRegistrationEmailAsUsername(boolean registrationEmailAsUsername)
- Specified by:
setRegistrationEmailAsUsernamein interfaceRealmModel
-
isRememberMe
public boolean isRememberMe()
- Specified by:
isRememberMein interfaceRealmModel
-
setRememberMe
public void setRememberMe(boolean rememberMe)
- Specified by:
setRememberMein interfaceRealmModel
-
getDefaultSignatureAlgorithm
public String getDefaultSignatureAlgorithm()
- Specified by:
getDefaultSignatureAlgorithmin interfaceRealmModel
-
setDefaultSignatureAlgorithm
public void setDefaultSignatureAlgorithm(String defaultSignatureAlgorithm)
- Specified by:
setDefaultSignatureAlgorithmin interfaceRealmModel
-
isBruteForceProtected
public boolean isBruteForceProtected()
- Specified by:
isBruteForceProtectedin interfaceRealmModel
-
setBruteForceProtected
public void setBruteForceProtected(boolean value)
- Specified by:
setBruteForceProtectedin interfaceRealmModel
-
isPermanentLockout
public boolean isPermanentLockout()
- Specified by:
isPermanentLockoutin interfaceRealmModel
-
setPermanentLockout
public void setPermanentLockout(boolean val)
- Specified by:
setPermanentLockoutin interfaceRealmModel
-
getMaxFailureWaitSeconds
public int getMaxFailureWaitSeconds()
- Specified by:
getMaxFailureWaitSecondsin interfaceRealmModel
-
setMaxFailureWaitSeconds
public void setMaxFailureWaitSeconds(int val)
- Specified by:
setMaxFailureWaitSecondsin interfaceRealmModel
-
getWaitIncrementSeconds
public int getWaitIncrementSeconds()
- Specified by:
getWaitIncrementSecondsin interfaceRealmModel
-
setWaitIncrementSeconds
public void setWaitIncrementSeconds(int val)
- Specified by:
setWaitIncrementSecondsin interfaceRealmModel
-
getMinimumQuickLoginWaitSeconds
public int getMinimumQuickLoginWaitSeconds()
- Specified by:
getMinimumQuickLoginWaitSecondsin interfaceRealmModel
-
setMinimumQuickLoginWaitSeconds
public void setMinimumQuickLoginWaitSeconds(int val)
- Specified by:
setMinimumQuickLoginWaitSecondsin interfaceRealmModel
-
getQuickLoginCheckMilliSeconds
public long getQuickLoginCheckMilliSeconds()
- Specified by:
getQuickLoginCheckMilliSecondsin interfaceRealmModel
-
setQuickLoginCheckMilliSeconds
public void setQuickLoginCheckMilliSeconds(long val)
- Specified by:
setQuickLoginCheckMilliSecondsin interfaceRealmModel
-
getMaxDeltaTimeSeconds
public int getMaxDeltaTimeSeconds()
- Specified by:
getMaxDeltaTimeSecondsin interfaceRealmModel
-
setMaxDeltaTimeSeconds
public void setMaxDeltaTimeSeconds(int val)
- Specified by:
setMaxDeltaTimeSecondsin interfaceRealmModel
-
getFailureFactor
public int getFailureFactor()
- Specified by:
getFailureFactorin interfaceRealmModel
-
setFailureFactor
public void setFailureFactor(int failureFactor)
- Specified by:
setFailureFactorin interfaceRealmModel
-
isVerifyEmail
public boolean isVerifyEmail()
- Specified by:
isVerifyEmailin interfaceRealmModel
-
setVerifyEmail
public void setVerifyEmail(boolean verifyEmail)
- Specified by:
setVerifyEmailin interfaceRealmModel
-
isLoginWithEmailAllowed
public boolean isLoginWithEmailAllowed()
- Specified by:
isLoginWithEmailAllowedin interfaceRealmModel
-
setLoginWithEmailAllowed
public void setLoginWithEmailAllowed(boolean loginWithEmailAllowed)
- Specified by:
setLoginWithEmailAllowedin interfaceRealmModel
-
isDuplicateEmailsAllowed
public boolean isDuplicateEmailsAllowed()
- Specified by:
isDuplicateEmailsAllowedin interfaceRealmModel
-
setDuplicateEmailsAllowed
public void setDuplicateEmailsAllowed(boolean duplicateEmailsAllowed)
- Specified by:
setDuplicateEmailsAllowedin interfaceRealmModel
-
isResetPasswordAllowed
public boolean isResetPasswordAllowed()
- Specified by:
isResetPasswordAllowedin interfaceRealmModel
-
setResetPasswordAllowed
public void setResetPasswordAllowed(boolean resetPasswordAllowed)
- Specified by:
setResetPasswordAllowedin interfaceRealmModel
-
isEditUsernameAllowed
public boolean isEditUsernameAllowed()
- Specified by:
isEditUsernameAllowedin interfaceRealmModel
-
setEditUsernameAllowed
public void setEditUsernameAllowed(boolean editUsernameAllowed)
- Specified by:
setEditUsernameAllowedin interfaceRealmModel
-
isRevokeRefreshToken
public boolean isRevokeRefreshToken()
- Specified by:
isRevokeRefreshTokenin interfaceRealmModel
-
setRevokeRefreshToken
public void setRevokeRefreshToken(boolean revokeRefreshToken)
- Specified by:
setRevokeRefreshTokenin interfaceRealmModel
-
getRefreshTokenMaxReuse
public int getRefreshTokenMaxReuse()
- Specified by:
getRefreshTokenMaxReusein interfaceRealmModel
-
setRefreshTokenMaxReuse
public void setRefreshTokenMaxReuse(int refreshTokenMaxReuse)
- Specified by:
setRefreshTokenMaxReusein interfaceRealmModel
-
getSsoSessionIdleTimeout
public int getSsoSessionIdleTimeout()
- Specified by:
getSsoSessionIdleTimeoutin interfaceRealmModel
-
setSsoSessionIdleTimeout
public void setSsoSessionIdleTimeout(int seconds)
- Specified by:
setSsoSessionIdleTimeoutin interfaceRealmModel
-
getSsoSessionMaxLifespan
public int getSsoSessionMaxLifespan()
- Specified by:
getSsoSessionMaxLifespanin interfaceRealmModel
-
setSsoSessionMaxLifespan
public void setSsoSessionMaxLifespan(int seconds)
- Specified by:
setSsoSessionMaxLifespanin interfaceRealmModel
-
getSsoSessionIdleTimeoutRememberMe
public int getSsoSessionIdleTimeoutRememberMe()
- Specified by:
getSsoSessionIdleTimeoutRememberMein interfaceRealmModel
-
setSsoSessionIdleTimeoutRememberMe
public void setSsoSessionIdleTimeoutRememberMe(int seconds)
- Specified by:
setSsoSessionIdleTimeoutRememberMein interfaceRealmModel
-
getSsoSessionMaxLifespanRememberMe
public int getSsoSessionMaxLifespanRememberMe()
- Specified by:
getSsoSessionMaxLifespanRememberMein interfaceRealmModel
-
setSsoSessionMaxLifespanRememberMe
public void setSsoSessionMaxLifespanRememberMe(int seconds)
- Specified by:
setSsoSessionMaxLifespanRememberMein interfaceRealmModel
-
getOfflineSessionIdleTimeout
public int getOfflineSessionIdleTimeout()
- Specified by:
getOfflineSessionIdleTimeoutin interfaceRealmModel
-
setOfflineSessionIdleTimeout
public void setOfflineSessionIdleTimeout(int seconds)
- Specified by:
setOfflineSessionIdleTimeoutin interfaceRealmModel
-
isOfflineSessionMaxLifespanEnabled
public boolean isOfflineSessionMaxLifespanEnabled()
- Specified by:
isOfflineSessionMaxLifespanEnabledin interfaceRealmModel
-
setOfflineSessionMaxLifespanEnabled
public void setOfflineSessionMaxLifespanEnabled(boolean offlineSessionMaxLifespanEnabled)
- Specified by:
setOfflineSessionMaxLifespanEnabledin interfaceRealmModel
-
getOfflineSessionMaxLifespan
public int getOfflineSessionMaxLifespan()
- Specified by:
getOfflineSessionMaxLifespanin interfaceRealmModel
-
setOfflineSessionMaxLifespan
public void setOfflineSessionMaxLifespan(int seconds)
- Specified by:
setOfflineSessionMaxLifespanin interfaceRealmModel
-
getClientSessionIdleTimeout
public int getClientSessionIdleTimeout()
- Specified by:
getClientSessionIdleTimeoutin interfaceRealmModel
-
setClientSessionIdleTimeout
public void setClientSessionIdleTimeout(int seconds)
- Specified by:
setClientSessionIdleTimeoutin interfaceRealmModel
-
getClientSessionMaxLifespan
public int getClientSessionMaxLifespan()
- Specified by:
getClientSessionMaxLifespanin interfaceRealmModel
-
setClientSessionMaxLifespan
public void setClientSessionMaxLifespan(int seconds)
- Specified by:
setClientSessionMaxLifespanin interfaceRealmModel
-
getClientOfflineSessionIdleTimeout
public int getClientOfflineSessionIdleTimeout()
- Specified by:
getClientOfflineSessionIdleTimeoutin interfaceRealmModel
-
setClientOfflineSessionIdleTimeout
public void setClientOfflineSessionIdleTimeout(int seconds)
- Specified by:
setClientOfflineSessionIdleTimeoutin interfaceRealmModel
-
getClientOfflineSessionMaxLifespan
public int getClientOfflineSessionMaxLifespan()
- Specified by:
getClientOfflineSessionMaxLifespanin interfaceRealmModel
-
setClientOfflineSessionMaxLifespan
public void setClientOfflineSessionMaxLifespan(int seconds)
- Specified by:
setClientOfflineSessionMaxLifespanin interfaceRealmModel
-
getAccessTokenLifespan
public int getAccessTokenLifespan()
- Specified by:
getAccessTokenLifespanin interfaceRealmModel
-
setAccessTokenLifespan
public void setAccessTokenLifespan(int seconds)
- Specified by:
setAccessTokenLifespanin interfaceRealmModel
-
getAccessTokenLifespanForImplicitFlow
public int getAccessTokenLifespanForImplicitFlow()
- Specified by:
getAccessTokenLifespanForImplicitFlowin interfaceRealmModel
-
setAccessTokenLifespanForImplicitFlow
public void setAccessTokenLifespanForImplicitFlow(int seconds)
- Specified by:
setAccessTokenLifespanForImplicitFlowin interfaceRealmModel
-
getAccessCodeLifespan
public int getAccessCodeLifespan()
- Specified by:
getAccessCodeLifespanin interfaceRealmModel
-
setAccessCodeLifespan
public void setAccessCodeLifespan(int seconds)
- Specified by:
setAccessCodeLifespanin interfaceRealmModel
-
getAccessCodeLifespanUserAction
public int getAccessCodeLifespanUserAction()
- Specified by:
getAccessCodeLifespanUserActionin interfaceRealmModel
-
setAccessCodeLifespanUserAction
public void setAccessCodeLifespanUserAction(int seconds)
- Specified by:
setAccessCodeLifespanUserActionin interfaceRealmModel
-
getUserActionTokenLifespans
public Map<String,Integer> getUserActionTokenLifespans()
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 seconds)
- Specified by:
setAccessCodeLifespanLoginin interfaceRealmModel
-
getActionTokenGeneratedByAdminLifespan
public int getActionTokenGeneratedByAdminLifespan()
- Specified by:
getActionTokenGeneratedByAdminLifespanin interfaceRealmModel
-
setActionTokenGeneratedByAdminLifespan
public void setActionTokenGeneratedByAdminLifespan(int seconds)
- Specified by:
setActionTokenGeneratedByAdminLifespanin interfaceRealmModel
-
getActionTokenGeneratedByUserLifespan
public int getActionTokenGeneratedByUserLifespan()
- Specified by:
getActionTokenGeneratedByUserLifespanin interfaceRealmModel
-
setActionTokenGeneratedByUserLifespan
public void setActionTokenGeneratedByUserLifespan(int seconds)
- Specified by:
setActionTokenGeneratedByUserLifespanin interfaceRealmModel
-
getActionTokenGeneratedByUserLifespan
public int getActionTokenGeneratedByUserLifespan(String actionTokenId)
- Specified by:
getActionTokenGeneratedByUserLifespanin interfaceRealmModel
-
setActionTokenGeneratedByUserLifespan
public void setActionTokenGeneratedByUserLifespan(String actionTokenId, Integer seconds)
- Specified by:
setActionTokenGeneratedByUserLifespanin interfaceRealmModel
-
getRequiredCredentialsStream
public Stream<RequiredCredentialModel> getRequiredCredentialsStream()
Description copied from interface:RealmModelReturns required credentials as a stream.- Specified by:
getRequiredCredentialsStreamin interfaceRealmModel- Returns:
- Stream of
RequiredCredentialModel. Never returnsnull.
-
getOAuth2DeviceConfig
public OAuth2DeviceConfig getOAuth2DeviceConfig()
- Specified by:
getOAuth2DeviceConfigin interfaceRealmModel
-
getCibaPolicy
public CibaConfig getCibaPolicy()
- Specified by:
getCibaPolicyin interfaceRealmModel
-
getParPolicy
public ParConfig getParPolicy()
- Specified by:
getParPolicyin interfaceRealmModel
-
addRequiredCredential
public void addRequiredCredential(String cred)
- Specified by:
addRequiredCredentialin interfaceRealmModel
-
getPasswordPolicy
public PasswordPolicy getPasswordPolicy()
- Specified by:
getPasswordPolicyin interfaceRealmModel
-
setPasswordPolicy
public void setPasswordPolicy(PasswordPolicy policy)
- Specified by:
setPasswordPolicyin interfaceRealmModel
-
getOTPPolicy
public OTPPolicy getOTPPolicy()
- Specified by:
getOTPPolicyin interfaceRealmModel
-
setOTPPolicy
public void setOTPPolicy(OTPPolicy policy)
- Specified by:
setOTPPolicyin interfaceRealmModel
-
getWebAuthnPolicy
public WebAuthnPolicy getWebAuthnPolicy()
- Specified by:
getWebAuthnPolicyin interfaceRealmModel- Returns:
- WebAuthn policy for 2-factor authentication
-
setWebAuthnPolicy
public void setWebAuthnPolicy(WebAuthnPolicy policy)
Description copied from interface:RealmModelSet WebAuthn policy for 2-factor authentication- Specified by:
setWebAuthnPolicyin interfaceRealmModel
-
getWebAuthnPolicyPasswordless
public WebAuthnPolicy getWebAuthnPolicyPasswordless()
- Specified by:
getWebAuthnPolicyPasswordlessin interfaceRealmModel- Returns:
- WebAuthn passwordless policy below. This is temporary and will be removed later.
-
setWebAuthnPolicyPasswordless
public void setWebAuthnPolicyPasswordless(WebAuthnPolicy policy)
Description copied from interface:RealmModelSet WebAuthn passwordless policy below. This is temporary and will be removed later.- Specified by:
setWebAuthnPolicyPasswordlessin interfaceRealmModel
-
getRoleById
public RoleModel getRoleById(String id)
- Specified by:
getRoleByIdin interfaceRealmModel
-
getDefaultGroupsStream
public Stream<GroupModel> getDefaultGroupsStream()
Description copied from interface:RealmModelReturns default groups as a stream.- Specified by:
getDefaultGroupsStreamin interfaceRealmModel- Returns:
- Stream of
GroupModel. Never returnsnull.
-
addDefaultGroup
public void addDefaultGroup(GroupModel group)
- Specified by:
addDefaultGroupin interfaceRealmModel
-
removeDefaultGroup
public void removeDefaultGroup(GroupModel group)
- Specified by:
removeDefaultGroupin interfaceRealmModel
-
getDefaultRolesStream
@Deprecated public Stream<String> getDefaultRolesStream()
Deprecated.- Specified by:
getDefaultRolesStreamin interfaceRoleContainerModel- Returns:
- Stream of default roles names or empty stream if there are none. Never returns
null.
-
addDefaultRole
@Deprecated public void addDefaultRole(String name)
Deprecated.- Specified by:
addDefaultRolein interfaceRoleContainerModel
-
removeDefaultRoles
@Deprecated public void removeDefaultRoles(String... defaultRoles)
Deprecated.- Specified by:
removeDefaultRolesin interfaceRoleContainerModel
-
addToDefaultRoles
public void addToDefaultRoles(RoleModel role)
Description copied from interface:RealmModelAdds a role as a composite to default role of this realm.- Specified by:
addToDefaultRolesin interfaceRealmModel- Parameters:
role- to be added
-
getClientsStream
public Stream<ClientModel> getClientsStream()
Description copied from interface:RealmModelReturns clients as a stream.- Specified by:
getClientsStreamin interfaceRealmModel- Returns:
- Stream of
ClientModel. Never returnsnull.
-
getAlwaysDisplayInConsoleClientsStream
public Stream<ClientModel> 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
public ClientModel addClient(String name)
- Specified by:
addClientin interfaceRealmModel
-
addClient
public ClientModel addClient(String id, String clientId)
- Specified by:
addClientin interfaceRealmModel
-
removeClient
public boolean removeClient(String id)
- Specified by:
removeClientin interfaceRealmModel
-
getClientById
public ClientModel getClientById(String id)
- Specified by:
getClientByIdin interfaceRealmModel
-
getClientByClientId
public ClientModel getClientByClientId(String clientId)
- Specified by:
getClientByClientIdin interfaceRealmModel
-
searchClientByClientIdStream
public Stream<ClientModel> searchClientByClientIdStream(String clientId, Integer firstResult, Integer maxResults)
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
-
getClientsStream
public Stream<ClientModel> getClientsStream(Integer firstResult, Integer maxResults)
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.
-
getClientsCount
public Long getClientsCount()
- Specified by:
getClientsCountin interfaceRealmModel
-
updateRequiredCredentials
public void updateRequiredCredentials(Set<String> creds)
- Specified by:
updateRequiredCredentialsin interfaceRealmModel
-
getBrowserSecurityHeaders
public Map<String,String> getBrowserSecurityHeaders()
- Specified by:
getBrowserSecurityHeadersin interfaceRealmModel
-
setBrowserSecurityHeaders
public void setBrowserSecurityHeaders(Map<String,String> headers)
- Specified by:
setBrowserSecurityHeadersin interfaceRealmModel
-
getSmtpConfig
public Map<String,String> getSmtpConfig()
- Specified by:
getSmtpConfigin interfaceRealmModel
-
setSmtpConfig
public void setSmtpConfig(Map<String,String> smtpConfig)
- Specified by:
setSmtpConfigin interfaceRealmModel
-
getIdentityProvidersStream
public Stream<IdentityProviderModel> getIdentityProvidersStream()
Description copied from interface:RealmModelReturns identity providers as a stream.- Specified by:
getIdentityProvidersStreamin interfaceRealmModel- Returns:
- Stream of
IdentityProviderModel. Never returnsnull.
-
getIdentityProviderByAlias
public IdentityProviderModel getIdentityProviderByAlias(String alias)
- Specified by:
getIdentityProviderByAliasin interfaceRealmModel
-
addIdentityProvider
public void addIdentityProvider(IdentityProviderModel identityProvider)
- Specified by:
addIdentityProviderin interfaceRealmModel
-
updateIdentityProvider
public void updateIdentityProvider(IdentityProviderModel identityProvider)
- Specified by:
updateIdentityProviderin interfaceRealmModel
-
removeIdentityProviderByAlias
public void removeIdentityProviderByAlias(String alias)
- Specified by:
removeIdentityProviderByAliasin interfaceRealmModel
-
getLoginTheme
public String getLoginTheme()
- Specified by:
getLoginThemein interfaceRealmModel
-
setLoginTheme
public void setLoginTheme(String name)
- Specified by:
setLoginThemein interfaceRealmModel
-
getAccountTheme
public String getAccountTheme()
- Specified by:
getAccountThemein interfaceRealmModel
-
setAccountTheme
public void setAccountTheme(String name)
- Specified by:
setAccountThemein interfaceRealmModel
-
getAdminTheme
public String getAdminTheme()
- Specified by:
getAdminThemein interfaceRealmModel
-
setAdminTheme
public void setAdminTheme(String name)
- Specified by:
setAdminThemein interfaceRealmModel
-
getEmailTheme
public String getEmailTheme()
- Specified by:
getEmailThemein interfaceRealmModel
-
setEmailTheme
public void setEmailTheme(String name)
- Specified by:
setEmailThemein interfaceRealmModel
-
getNotBefore
public int getNotBefore()
Description copied from interface:RealmModelTime in seconds since epoc- Specified by:
getNotBeforein interfaceRealmModel- Returns:
-
setNotBefore
public void setNotBefore(int notBefore)
- Specified by:
setNotBeforein interfaceRealmModel
-
isEventsEnabled
public boolean isEventsEnabled()
- Specified by:
isEventsEnabledin interfaceRealmModel
-
setEventsEnabled
public void setEventsEnabled(boolean enabled)
- Specified by:
setEventsEnabledin interfaceRealmModel
-
getEventsExpiration
public long getEventsExpiration()
- Specified by:
getEventsExpirationin interfaceRealmModel
-
setEventsExpiration
public void setEventsExpiration(long expiration)
- Specified by:
setEventsExpirationin interfaceRealmModel
-
getEventsListenersStream
public Stream<String> getEventsListenersStream()
Description copied from interface:RealmModelReturns events listeners as a stream.- Specified by:
getEventsListenersStreamin interfaceRealmModel- Returns:
- Stream of
String. Never returnsnull.
-
setEventsListeners
public void setEventsListeners(Set<String> listeners)
- Specified by:
setEventsListenersin interfaceRealmModel
-
getEnabledEventTypesStream
public Stream<String> getEnabledEventTypesStream()
Description copied from interface:RealmModelReturns enabled event types as a stream.- Specified by:
getEnabledEventTypesStreamin interfaceRealmModel- Returns:
- Stream of
String. Never returnsnull.
-
setEnabledEventTypes
public void setEnabledEventTypes(Set<String> enabledEventTypes)
- Specified by:
setEnabledEventTypesin interfaceRealmModel
-
isAdminEventsEnabled
public boolean isAdminEventsEnabled()
- Specified by:
isAdminEventsEnabledin interfaceRealmModel
-
setAdminEventsEnabled
public void setAdminEventsEnabled(boolean enabled)
- Specified by:
setAdminEventsEnabledin interfaceRealmModel
-
isAdminEventsDetailsEnabled
public boolean isAdminEventsDetailsEnabled()
- Specified by:
isAdminEventsDetailsEnabledin interfaceRealmModel
-
setAdminEventsDetailsEnabled
public void setAdminEventsDetailsEnabled(boolean enabled)
- Specified by:
setAdminEventsDetailsEnabledin interfaceRealmModel
-
getMasterAdminClient
public ClientModel getMasterAdminClient()
- Specified by:
getMasterAdminClientin interfaceRealmModel
-
setMasterAdminClient
public void setMasterAdminClient(ClientModel client)
- Specified by:
setMasterAdminClientin interfaceRealmModel
-
setDefaultRole
public void setDefaultRole(RoleModel role)
Description copied from interface:RealmModelSets default role for this realm- Specified by:
setDefaultRolein interfaceRealmModel- Parameters:
role- to be set
-
getDefaultRole
public RoleModel 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
-
getRole
public RoleModel getRole(String name)
- Specified by:
getRolein interfaceRoleContainerModel
-
getRolesStream
public Stream<RoleModel> getRolesStream()
Description copied from interface:RoleContainerModelReturns available roles as a stream.- Specified by:
getRolesStreamin interfaceRoleContainerModel- Returns:
- Stream of
RoleModel. Never returnsnull.
-
getRolesStream
public Stream<RoleModel> getRolesStream(Integer first, Integer max)
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
public Stream<RoleModel> searchForRolesStream(String search, Integer first, Integer max)
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.
-
addRole
public RoleModel addRole(String name)
- Specified by:
addRolein interfaceRoleContainerModel
-
addRole
public RoleModel addRole(String id, String name)
- Specified by:
addRolein interfaceRoleContainerModel
-
removeRole
public boolean removeRole(RoleModel role)
- Specified by:
removeRolein interfaceRoleContainerModel
-
isIdentityFederationEnabled
public boolean isIdentityFederationEnabled()
- Specified by:
isIdentityFederationEnabledin interfaceRealmModel
-
isInternationalizationEnabled
public boolean isInternationalizationEnabled()
- Specified by:
isInternationalizationEnabledin interfaceRealmModel
-
setInternationalizationEnabled
public void setInternationalizationEnabled(boolean enabled)
- Specified by:
setInternationalizationEnabledin interfaceRealmModel
-
getSupportedLocalesStream
public Stream<String> getSupportedLocalesStream()
Description copied from interface:RealmModelReturns supported locales as a stream.- Specified by:
getSupportedLocalesStreamin interfaceRealmModel- Returns:
- Stream of
String. Never returnsnull.
-
setSupportedLocales
public void setSupportedLocales(Set<String> locales)
- Specified by:
setSupportedLocalesin interfaceRealmModel
-
getDefaultLocale
public String getDefaultLocale()
- Specified by:
getDefaultLocalein interfaceRealmModel
-
setDefaultLocale
public void setDefaultLocale(String locale)
- Specified by:
setDefaultLocalein interfaceRealmModel
-
getIdentityProviderMappersStream
public Stream<IdentityProviderMapperModel> getIdentityProviderMappersStream()
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
public IdentityProviderMapperModel addIdentityProviderMapper(IdentityProviderMapperModel model)
- Specified by:
addIdentityProviderMapperin interfaceRealmModel
-
removeIdentityProviderMapper
public void removeIdentityProviderMapper(IdentityProviderMapperModel mapping)
- Specified by:
removeIdentityProviderMapperin interfaceRealmModel
-
updateIdentityProviderMapper
public void updateIdentityProviderMapper(IdentityProviderMapperModel mapping)
- Specified by:
updateIdentityProviderMapperin interfaceRealmModel
-
getIdentityProviderMapperById
public IdentityProviderMapperModel getIdentityProviderMapperById(String id)
- Specified by:
getIdentityProviderMapperByIdin interfaceRealmModel
-
getIdentityProviderMapperByName
public IdentityProviderMapperModel getIdentityProviderMapperByName(String alias, String name)
- Specified by:
getIdentityProviderMapperByNamein interfaceRealmModel
-
getBrowserFlow
public AuthenticationFlowModel getBrowserFlow()
- Specified by:
getBrowserFlowin interfaceRealmModel
-
setBrowserFlow
public void setBrowserFlow(AuthenticationFlowModel flow)
- Specified by:
setBrowserFlowin interfaceRealmModel
-
getRegistrationFlow
public AuthenticationFlowModel getRegistrationFlow()
- Specified by:
getRegistrationFlowin interfaceRealmModel
-
setRegistrationFlow
public void setRegistrationFlow(AuthenticationFlowModel flow)
- Specified by:
setRegistrationFlowin interfaceRealmModel
-
getDirectGrantFlow
public AuthenticationFlowModel getDirectGrantFlow()
- Specified by:
getDirectGrantFlowin interfaceRealmModel
-
setDirectGrantFlow
public void setDirectGrantFlow(AuthenticationFlowModel flow)
- Specified by:
setDirectGrantFlowin interfaceRealmModel
-
getResetCredentialsFlow
public AuthenticationFlowModel getResetCredentialsFlow()
- Specified by:
getResetCredentialsFlowin interfaceRealmModel
-
setResetCredentialsFlow
public void setResetCredentialsFlow(AuthenticationFlowModel flow)
- Specified by:
setResetCredentialsFlowin interfaceRealmModel
-
getClientAuthenticationFlow
public AuthenticationFlowModel getClientAuthenticationFlow()
- Specified by:
getClientAuthenticationFlowin interfaceRealmModel
-
setClientAuthenticationFlow
public void setClientAuthenticationFlow(AuthenticationFlowModel flow)
- Specified by:
setClientAuthenticationFlowin interfaceRealmModel
-
getDockerAuthenticationFlow
public AuthenticationFlowModel getDockerAuthenticationFlow()
- Specified by:
getDockerAuthenticationFlowin interfaceRealmModel
-
setDockerAuthenticationFlow
public void setDockerAuthenticationFlow(AuthenticationFlowModel flow)
- Specified by:
setDockerAuthenticationFlowin interfaceRealmModel
-
getAuthenticationFlowsStream
public Stream<AuthenticationFlowModel> getAuthenticationFlowsStream()
Description copied from interface:RealmModelReturns authentications flows as a stream.- Specified by:
getAuthenticationFlowsStreamin interfaceRealmModel- Returns:
- Stream of
AuthenticationFlowModel. Never returnsnull.
-
getFlowByAlias
public AuthenticationFlowModel getFlowByAlias(String alias)
- Specified by:
getFlowByAliasin interfaceRealmModel
-
getAuthenticatorConfigByAlias
public AuthenticatorConfigModel getAuthenticatorConfigByAlias(String alias)
- Specified by:
getAuthenticatorConfigByAliasin interfaceRealmModel
-
addAuthenticationFlow
public AuthenticationFlowModel addAuthenticationFlow(AuthenticationFlowModel model)
- Specified by:
addAuthenticationFlowin interfaceRealmModel
-
getAuthenticationFlowById
public AuthenticationFlowModel getAuthenticationFlowById(String id)
- Specified by:
getAuthenticationFlowByIdin interfaceRealmModel
-
removeAuthenticationFlow
public void removeAuthenticationFlow(AuthenticationFlowModel model)
- Specified by:
removeAuthenticationFlowin interfaceRealmModel
-
updateAuthenticationFlow
public void updateAuthenticationFlow(AuthenticationFlowModel model)
- Specified by:
updateAuthenticationFlowin interfaceRealmModel
-
getAuthenticationExecutionsStream
public Stream<AuthenticationExecutionModel> getAuthenticationExecutionsStream(String flowId)
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.
-
getAuthenticationExecutionById
public AuthenticationExecutionModel getAuthenticationExecutionById(String id)
- Specified by:
getAuthenticationExecutionByIdin interfaceRealmModel
-
getAuthenticationExecutionByFlowId
public AuthenticationExecutionModel getAuthenticationExecutionByFlowId(String flowId)
- Specified by:
getAuthenticationExecutionByFlowIdin interfaceRealmModel
-
addAuthenticatorExecution
public AuthenticationExecutionModel addAuthenticatorExecution(AuthenticationExecutionModel model)
- Specified by:
addAuthenticatorExecutionin interfaceRealmModel
-
updateAuthenticatorExecution
public void updateAuthenticatorExecution(AuthenticationExecutionModel model)
- Specified by:
updateAuthenticatorExecutionin interfaceRealmModel
-
removeAuthenticatorExecution
public void removeAuthenticatorExecution(AuthenticationExecutionModel model)
- Specified by:
removeAuthenticatorExecutionin interfaceRealmModel
-
getAuthenticatorConfigsStream
public Stream<AuthenticatorConfigModel> getAuthenticatorConfigsStream()
Description copied from interface:RealmModelReturns authentication configs as a stream.- Specified by:
getAuthenticatorConfigsStreamin interfaceRealmModel- Returns:
- Stream of
AuthenticatorConfigModel. Never returnsnull.
-
addAuthenticatorConfig
public AuthenticatorConfigModel addAuthenticatorConfig(AuthenticatorConfigModel model)
- Specified by:
addAuthenticatorConfigin interfaceRealmModel
-
updateAuthenticatorConfig
public void updateAuthenticatorConfig(AuthenticatorConfigModel model)
- Specified by:
updateAuthenticatorConfigin interfaceRealmModel
-
removeAuthenticatorConfig
public void removeAuthenticatorConfig(AuthenticatorConfigModel model)
- Specified by:
removeAuthenticatorConfigin interfaceRealmModel
-
getAuthenticatorConfigById
public AuthenticatorConfigModel getAuthenticatorConfigById(String id)
- Specified by:
getAuthenticatorConfigByIdin interfaceRealmModel
-
getRequiredActionProvidersStream
public Stream<RequiredActionProviderModel> getRequiredActionProvidersStream()
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.
-
addRequiredActionProvider
public RequiredActionProviderModel addRequiredActionProvider(RequiredActionProviderModel model)
- Specified by:
addRequiredActionProviderin interfaceRealmModel
-
updateRequiredActionProvider
public void updateRequiredActionProvider(RequiredActionProviderModel model)
- Specified by:
updateRequiredActionProviderin interfaceRealmModel
-
removeRequiredActionProvider
public void removeRequiredActionProvider(RequiredActionProviderModel model)
- Specified by:
removeRequiredActionProviderin interfaceRealmModel
-
getRequiredActionProviderById
public RequiredActionProviderModel getRequiredActionProviderById(String id)
- Specified by:
getRequiredActionProviderByIdin interfaceRealmModel
-
getRequiredActionProviderByAlias
public RequiredActionProviderModel getRequiredActionProviderByAlias(String alias)
- Specified by:
getRequiredActionProviderByAliasin interfaceRealmModel
-
createGroup
public GroupModel createGroup(String id, String name, GroupModel toParent)
- Specified by:
createGroupin interfaceRealmModel
-
moveGroup
public void moveGroup(GroupModel group, GroupModel toParent)
- Specified by:
moveGroupin interfaceRealmModel
-
getGroupById
public GroupModel getGroupById(String id)
- Specified by:
getGroupByIdin interfaceRealmModel
-
getGroupsStream
public Stream<GroupModel> getGroupsStream()
Description copied from interface:RealmModelReturns groups as a stream.- Specified by:
getGroupsStreamin interfaceRealmModel- Returns:
- Stream of
GroupModel. Never returnsnull.
-
getGroupsCount
public Long getGroupsCount(Boolean onlyTopGroups)
- Specified by:
getGroupsCountin interfaceRealmModel
-
getGroupsCountByNameContaining
public Long getGroupsCountByNameContaining(String search)
- Specified by:
getGroupsCountByNameContainingin interfaceRealmModel
-
getTopLevelGroupsStream
public Stream<GroupModel> getTopLevelGroupsStream()
Description copied from interface:RealmModelReturns top level groups as a stream.- Specified by:
getTopLevelGroupsStreamin interfaceRealmModel- Returns:
- Stream of
GroupModel. Never returnsnull.
-
getTopLevelGroupsStream
public Stream<GroupModel> getTopLevelGroupsStream(Integer first, Integer max)
Description copied from interface:RealmModelReturns top level groups as a stream.- Specified by:
getTopLevelGroupsStreamin interfaceRealmModel- Parameters:
first-IntegerIndex of the first desired group. Ignored if negative ornull.max-IntegerMaximum number of returned groups. Ignored if negative ornull.- Returns:
- Stream of
GroupModel. Never returnsnull.
-
searchForGroupByNameStream
@Deprecated public Stream<GroupModel> searchForGroupByNameStream(String search, Integer first, Integer max)
Deprecated.Description copied from interface:RealmModelSearches for groups by provided name. Results that match the given filter are returned as a stream.- Specified by:
searchForGroupByNameStreamin interfaceRealmModel- Parameters:
search-StringName of a group to be used as a filter.first-IntegerIndex of the first desired group. Ignored if negative ornull.max-IntegerMaximum number of returned groups. Ignored if negative ornull.- Returns:
- Stream of
GroupModel. Never returnsnull.
-
removeGroup
public boolean removeGroup(GroupModel group)
- Specified by:
removeGroupin interfaceRealmModel
-
getClientScopesStream
public Stream<ClientScopeModel> 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
public ClientScopeModel addClientScope(String name)
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
public ClientScopeModel addClientScope(String id, String name)
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
public boolean removeClientScope(String id)
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
public ClientScopeModel getClientScopeById(String id)
- Specified by:
getClientScopeByIdin interfaceRealmModel- Parameters:
id- of the client scope- Returns:
- Client scope with the given
id, ornullwhen the scope does not exist.
-
addDefaultClientScope
public void addDefaultClientScope(ClientScopeModel clientScope, boolean defaultScope)
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
public void removeDefaultClientScope(ClientScopeModel clientScope)
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
public Stream<ClientScopeModel> getDefaultClientScopesStream(boolean defaultScope)
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
public ComponentModel addComponentModel(ComponentModel model)
Description copied from interface:RealmModelAdds component model. Will call onCreate() method of ComponentFactory- Specified by:
addComponentModelin interfaceRealmModel- Returns:
-
importComponentModel
public ComponentModel importComponentModel(ComponentModel model)
Description copied from interface:RealmModelAdds component model. Will NOT call onCreate() method of ComponentFactory- Specified by:
importComponentModelin interfaceRealmModel- Returns:
-
executeEvictions
public void executeEvictions(ComponentModel model)
-
updateComponent
public void updateComponent(ComponentModel component)
Description copied from interface:RealmModelUpdates component model. Will call onUpdate() method of ComponentFactory- Specified by:
updateComponentin interfaceRealmModel- Parameters:
component- to be updated
-
removeComponent
public void removeComponent(ComponentModel component)
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
public void removeComponents(String parentId)
Description copied from interface:RealmModelRemoves all components with givenparentId- Specified by:
removeComponentsin interfaceRealmModel- Parameters:
parentId-Stringid of parent
-
getComponentsStream
public Stream<ComponentModel> getComponentsStream(String parentId, String providerType)
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
public Stream<ComponentModel> getComponentsStream(String parentId)
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.
-
getComponentsStream
public Stream<ComponentModel> getComponentsStream()
Description copied from interface:RealmModelReturns stream of component models.- Specified by:
getComponentsStreamin interfaceRealmModel- Returns:
- Stream of
ComponentModel. Never returnsnull.
-
getComponent
public ComponentModel getComponent(String id)
- Specified by:
getComponentin interfaceRealmModel
-
setAttribute
public void setAttribute(String name, String value)
- Specified by:
setAttributein interfaceRealmModel
-
setAttribute
public void setAttribute(String name, Boolean value)
- Specified by:
setAttributein interfaceRealmModel
-
setAttribute
public void setAttribute(String name, Integer value)
- Specified by:
setAttributein interfaceRealmModel
-
setAttribute
public void setAttribute(String name, Long value)
- Specified by:
setAttributein interfaceRealmModel
-
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttributein interfaceRealmModel
-
getAttribute
public String getAttribute(String name)
- Specified by:
getAttributein interfaceRealmModel
-
getAttribute
public Integer getAttribute(String name, Integer defaultValue)
- Specified by:
getAttributein interfaceRealmModel
-
getAttribute
public Long getAttribute(String name, Long defaultValue)
- Specified by:
getAttributein interfaceRealmModel
-
getAttribute
public Boolean getAttribute(String name, Boolean defaultValue)
- Specified by:
getAttributein interfaceRealmModel
-
getAttributes
public Map<String,String> getAttributes()
- Specified by:
getAttributesin interfaceRealmModel
-
createOrUpdateRealmLocalizationTexts
public void createOrUpdateRealmLocalizationTexts(String locale, Map<String,String> localizationTexts)
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
public boolean removeRealmLocalizationTexts(String locale)
- Specified by:
removeRealmLocalizationTextsin interfaceRealmModel
-
getRealmLocalizationTexts
public Map<String,Map<String,String>> getRealmLocalizationTexts()
- Specified by:
getRealmLocalizationTextsin interfaceRealmModel
-
getRealmLocalizationTextsByLocale
public Map<String,String> getRealmLocalizationTextsByLocale(String locale)
- Specified by:
getRealmLocalizationTextsByLocalein interfaceRealmModel
-
createClientInitialAccessModel
public ClientInitialAccessModel createClientInitialAccessModel(int expiration, int count)
- Specified by:
createClientInitialAccessModelin interfaceRealmModel
-
getClientInitialAccessModel
public ClientInitialAccessModel getClientInitialAccessModel(String id)
- Specified by:
getClientInitialAccessModelin interfaceRealmModel
-
removeClientInitialAccessModel
public void removeClientInitialAccessModel(String id)
- Specified by:
removeClientInitialAccessModelin interfaceRealmModel
-
getClientInitialAccesses
public Stream<ClientInitialAccessModel> getClientInitialAccesses()
- Specified by:
getClientInitialAccessesin interfaceRealmModel
-
decreaseRemainingCount
public void decreaseRemainingCount(ClientInitialAccessModel clientInitialAccess)
- Specified by:
decreaseRemainingCountin interfaceRealmModel
-
-