Package org.keycloak.models.delegate
Class ClientModelLazyDelegate
- java.lang.Object
- 
- org.keycloak.models.delegate.ClientModelLazyDelegate
 
- 
- All Implemented Interfaces:
- ClientModel,- ClientScopeModel,- OrderedModel,- ProtocolMapperContainerModel,- RoleContainerModel,- ScopeContainerModel
 - Direct Known Subclasses:
- ClientModelLazyDelegate.WithId,- OIDCClientSecretConfigWrapper.ReadOnlyRotatedSecretClientModel
 
 public class ClientModelLazyDelegate extends Object implements ClientModel - Author:
- hmlnarik
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classClientModelLazyDelegate.WithId- 
Nested classes/interfaces inherited from interface org.keycloak.models.ClientModelClientModel.ClientCreationEvent, ClientModel.ClientIdChangeEvent, ClientModel.ClientProtocolUpdatedEvent, ClientModel.ClientRemovedEvent, ClientModel.ClientUpdatedEvent, ClientModel.SearchableFields
 - 
Nested classes/interfaces inherited from interface org.keycloak.models.ClientScopeModelClientScopeModel.ClientScopeRemovedEvent
 - 
Nested classes/interfaces inherited from interface org.keycloak.models.OrderedModelOrderedModel.OrderedModelComparator<OM extends OrderedModel>
 - 
Nested classes/interfaces inherited from interface org.keycloak.models.RoleContainerModelRoleContainerModel.RoleRemovedEvent
 
- 
 - 
Field Summary- 
Fields inherited from interface org.keycloak.models.ClientModelLOGO_URI, POLICY_URI, PRIVATE_KEY, PUBLIC_KEY, TOS_URI, X509CERTIFICATE
 - 
Fields inherited from interface org.keycloak.models.ClientScopeModelCONSENT_SCREEN_TEXT, DISPLAY_ON_CONSENT_SCREEN, DYNAMIC_SCOPE_REGEXP, GUI_ORDER, INCLUDE_IN_TOKEN_SCOPE, IS_DYNAMIC_SCOPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description ClientModelLazyDelegate(Supplier<ClientModel> delegateSupplier)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClientScope(ClientScopeModel clientScope, boolean defaultScope)Add clientScope with this client.voidaddClientScopes(Set<ClientScopeModel> clientScopes, boolean defaultScope)Add clientScopes with this client.voidaddDefaultRole(String name)ProtocolMapperModeladdProtocolMapper(ProtocolMapperModel model)voidaddRedirectUri(String redirectUri)RoleModeladdRole(String name)RoleModeladdRole(String id, String name)voidaddScopeMapping(RoleModel role)voidaddWebOrigin(String webOrigin)voiddeleteScopeMapping(RoleModel role)StringgetAttribute(String name)Map<String,String>getAttributes()StringgetAuthenticationFlowBindingOverride(String binding)Get authentication flow binding override for this client.Map<String,String>getAuthenticationFlowBindingOverrides()StringgetBaseUrl()StringgetClientAuthenticatorType()StringgetClientId()Returns client ID as defined by the user.Map<String,ClientScopeModel>getClientScopes(boolean defaultScope)Return all default scopes (if 'defaultScope' is true) or all optional scopes (if 'defaultScope' is false) linked with this clientStringgetConsentScreenText()Stream<String>getDefaultRolesStream()StringgetDescription()ClientScopeModelgetDynamicClientScope(String scope)Returns aClientScopeModelassociated with this client.StringgetDynamicScopeRegexp()StringgetGuiOrder()StringgetId()Returns client internal ID (UUID).StringgetManagementUrl()StringgetName()intgetNodeReRegistrationTimeout()intgetNotBefore()Time in seconds since epocStringgetProtocol()ProtocolMapperModelgetProtocolMapperById(String id)ProtocolMapperModelgetProtocolMapperByName(String protocol, String name)Stream<ProtocolMapperModel>getProtocolMappersStream()Returns protocol mappers as a stream.RealmModelgetRealm()Stream<RoleModel>getRealmScopeMappingsStream()From the scope mappings returned byScopeContainerModel.getScopeMappingsStream()returns only those that belong to the realm that owns this scope container.Set<String>getRedirectUris()Map<String,Integer>getRegisteredNodes()StringgetRegistrationToken()RoleModelgetRole(String name)Stream<RoleModel>getRolesStream()Returns available roles as a stream.Stream<RoleModel>getRolesStream(Integer firstResult, Integer maxResults)Returns available roles as a stream.StringgetRootUrl()Stream<RoleModel>getScopeMappingsStream()Returns scope mappings for this scope container as a stream.StringgetSecret()Set<String>getWebOrigins()booleanhasDirectScope(RoleModel role)Returnstrue, if this object has the given role directly in its scope.booleanhasScope(RoleModel role)Returnstrue, if this object has the given role directly or indirectly in its scope,falseotherwise.booleanisAlwaysDisplayInConsole()booleanisBearerOnly()booleanisConsentRequired()booleanisDirectAccessGrantsEnabled()booleanisDisplayOnConsentScreen()booleanisDynamicScope()booleanisEnabled()booleanisFrontchannelLogout()booleanisFullScopeAllowed()booleanisImplicitFlowEnabled()booleanisIncludeInTokenScope()booleanisPublicClient()booleanisServiceAccountsEnabled()booleanisStandardFlowEnabled()booleanisSurrogateAuthRequired()voidregisterNode(String nodeHost, int registrationTime)Register node or just update the 'lastReRegistration' time if this node is already registeredvoidremoveAttribute(String name)voidremoveAuthenticationFlowBindingOverride(String binding)voidremoveClientScope(ClientScopeModel clientScope)voidremoveDefaultRoles(String... defaultRoles)voidremoveProtocolMapper(ProtocolMapperModel mapping)voidremoveRedirectUri(String redirectUri)booleanremoveRole(RoleModel role)voidremoveWebOrigin(String webOrigin)Stream<RoleModel>searchForRolesStream(String search, Integer first, Integer max)Searches roles by the given name.voidsetAlwaysDisplayInConsole(boolean alwaysDisplayInConsole)voidsetAttribute(String name, String value)voidsetAuthenticationFlowBindingOverride(String binding, String flowId)voidsetBaseUrl(String url)voidsetBearerOnly(boolean only)voidsetClientAuthenticatorType(String clientAuthenticatorType)voidsetClientId(String clientId)voidsetConsentRequired(boolean consentRequired)voidsetConsentScreenText(String consentScreenText)voidsetDescription(String description)voidsetDirectAccessGrantsEnabled(boolean directAccessGrantsEnabled)voidsetDisplayOnConsentScreen(boolean displayOnConsentScreen)voidsetEnabled(boolean enabled)voidsetFrontchannelLogout(boolean flag)voidsetFullScopeAllowed(boolean value)voidsetGuiOrder(String guiOrder)voidsetImplicitFlowEnabled(boolean implicitFlowEnabled)voidsetIncludeInTokenScope(boolean includeInTokenScope)voidsetIsDynamicScope(boolean isDynamicScope)voidsetManagementUrl(String url)voidsetName(String name)voidsetNodeReRegistrationTimeout(int timeout)voidsetNotBefore(int notBefore)voidsetProtocol(String protocol)voidsetPublicClient(boolean flag)voidsetRedirectUris(Set<String> redirectUris)voidsetRegistrationToken(String registrationToken)voidsetRootUrl(String url)voidsetSecret(String secret)voidsetServiceAccountsEnabled(boolean serviceAccountsEnabled)voidsetStandardFlowEnabled(boolean standardFlowEnabled)voidsetSurrogateAuthRequired(boolean surrogateAuthRequired)voidsetWebOrigins(Set<String> webOrigins)voidunregisterNode(String nodeHost)voidupdateClient()Notifies other providers that this client has been updated.voidupdateDefaultRoles(String... defaultRoles)voidupdateProtocolMapper(ProtocolMapperModel mapping)booleanvalidateSecret(String secret)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.RoleContainerModelgetDefaultRoles
 
- 
 
- 
- 
- 
Constructor Detail- 
ClientModelLazyDelegatepublic ClientModelLazyDelegate(Supplier<ClientModel> delegateSupplier) 
 
- 
 - 
Method Detail- 
updateClientpublic void updateClient() Description copied from interface:ClientModelNotifies other providers that this client has been updated.After a client is updated, providers can register for ClientModel.ClientUpdatedEvent. The setters in this model do not send an update for individual updates of the model. This method is here to allow for sending this event for this client, allowsing for to group multiple changes of a client and signal that all the changes in this client have been performed.- Specified by:
- updateClientin interface- ClientModel
- See Also:
- ProviderEvent,- ProviderEventManager,- ClientModel.ClientUpdatedEvent
 
 - 
getIdpublic String getId() Description copied from interface:ClientModelReturns client internal ID (UUID).- Specified by:
- getIdin interface- ClientModel
- Specified by:
- getIdin interface- ClientScopeModel
- Specified by:
- getIdin interface- RoleContainerModel
 
 - 
getClientIdpublic String getClientId() Description copied from interface:ClientModelReturns client ID as defined by the user.- Specified by:
- getClientIdin interface- ClientModel
- Returns:
 
 - 
setClientIdpublic void setClientId(String clientId) - Specified by:
- setClientIdin interface- ClientModel
 
 - 
getNamepublic String getName() - Specified by:
- getNamein interface- ClientModel
- Specified by:
- getNamein interface- ClientScopeModel
 
 - 
setNamepublic void setName(String name) - Specified by:
- setNamein interface- ClientModel
- Specified by:
- setNamein interface- ClientScopeModel
 
 - 
getDescriptionpublic String getDescription() - Specified by:
- getDescriptionin interface- ClientModel
- Specified by:
- getDescriptionin interface- ClientScopeModel
 
 - 
setDescriptionpublic void setDescription(String description) - Specified by:
- setDescriptionin interface- ClientModel
- Specified by:
- setDescriptionin interface- ClientScopeModel
 
 - 
isEnabledpublic boolean isEnabled() - Specified by:
- isEnabledin interface- ClientModel
 
 - 
setEnabledpublic void setEnabled(boolean enabled) - Specified by:
- setEnabledin interface- ClientModel
 
 - 
isAlwaysDisplayInConsolepublic boolean isAlwaysDisplayInConsole() - Specified by:
- isAlwaysDisplayInConsolein interface- ClientModel
 
 - 
setAlwaysDisplayInConsolepublic void setAlwaysDisplayInConsole(boolean alwaysDisplayInConsole) - Specified by:
- setAlwaysDisplayInConsolein interface- ClientModel
 
 - 
isSurrogateAuthRequiredpublic boolean isSurrogateAuthRequired() - Specified by:
- isSurrogateAuthRequiredin interface- ClientModel
 
 - 
setSurrogateAuthRequiredpublic void setSurrogateAuthRequired(boolean surrogateAuthRequired) - Specified by:
- setSurrogateAuthRequiredin interface- ClientModel
 
 - 
getWebOriginspublic Set<String> getWebOrigins() - Specified by:
- getWebOriginsin interface- ClientModel
 
 - 
setWebOriginspublic void setWebOrigins(Set<String> webOrigins) - Specified by:
- setWebOriginsin interface- ClientModel
 
 - 
addWebOriginpublic void addWebOrigin(String webOrigin) - Specified by:
- addWebOriginin interface- ClientModel
 
 - 
removeWebOriginpublic void removeWebOrigin(String webOrigin) - Specified by:
- removeWebOriginin interface- ClientModel
 
 - 
getRedirectUrispublic Set<String> getRedirectUris() - Specified by:
- getRedirectUrisin interface- ClientModel
 
 - 
setRedirectUrispublic void setRedirectUris(Set<String> redirectUris) - Specified by:
- setRedirectUrisin interface- ClientModel
 
 - 
addRedirectUripublic void addRedirectUri(String redirectUri) - Specified by:
- addRedirectUriin interface- ClientModel
 
 - 
removeRedirectUripublic void removeRedirectUri(String redirectUri) - Specified by:
- removeRedirectUriin interface- ClientModel
 
 - 
getManagementUrlpublic String getManagementUrl() - Specified by:
- getManagementUrlin interface- ClientModel
 
 - 
setManagementUrlpublic void setManagementUrl(String url) - Specified by:
- setManagementUrlin interface- ClientModel
 
 - 
getRootUrlpublic String getRootUrl() - Specified by:
- getRootUrlin interface- ClientModel
 
 - 
setRootUrlpublic void setRootUrl(String url) - Specified by:
- setRootUrlin interface- ClientModel
 
 - 
getBaseUrlpublic String getBaseUrl() - Specified by:
- getBaseUrlin interface- ClientModel
 
 - 
setBaseUrlpublic void setBaseUrl(String url) - Specified by:
- setBaseUrlin interface- ClientModel
 
 - 
isBearerOnlypublic boolean isBearerOnly() - Specified by:
- isBearerOnlyin interface- ClientModel
 
 - 
setBearerOnlypublic void setBearerOnly(boolean only) - Specified by:
- setBearerOnlyin interface- ClientModel
 
 - 
getNodeReRegistrationTimeoutpublic int getNodeReRegistrationTimeout() - Specified by:
- getNodeReRegistrationTimeoutin interface- ClientModel
 
 - 
setNodeReRegistrationTimeoutpublic void setNodeReRegistrationTimeout(int timeout) - Specified by:
- setNodeReRegistrationTimeoutin interface- ClientModel
 
 - 
getClientAuthenticatorTypepublic String getClientAuthenticatorType() - Specified by:
- getClientAuthenticatorTypein interface- ClientModel
 
 - 
setClientAuthenticatorTypepublic void setClientAuthenticatorType(String clientAuthenticatorType) - Specified by:
- setClientAuthenticatorTypein interface- ClientModel
 
 - 
validateSecretpublic boolean validateSecret(String secret) - Specified by:
- validateSecretin interface- ClientModel
 
 - 
getSecretpublic String getSecret() - Specified by:
- getSecretin interface- ClientModel
 
 - 
setSecretpublic void setSecret(String secret) - Specified by:
- setSecretin interface- ClientModel
 
 - 
getRegistrationTokenpublic String getRegistrationToken() - Specified by:
- getRegistrationTokenin interface- ClientModel
 
 - 
setRegistrationTokenpublic void setRegistrationToken(String registrationToken) - Specified by:
- setRegistrationTokenin interface- ClientModel
 
 - 
getProtocolpublic String getProtocol() - Specified by:
- getProtocolin interface- ClientModel
- Specified by:
- getProtocolin interface- ClientScopeModel
 
 - 
setProtocolpublic void setProtocol(String protocol) - Specified by:
- setProtocolin interface- ClientModel
- Specified by:
- setProtocolin interface- ClientScopeModel
 
 - 
setAttributepublic void setAttribute(String name, String value) - Specified by:
- setAttributein interface- ClientModel
- Specified by:
- setAttributein interface- ClientScopeModel
 
 - 
removeAttributepublic void removeAttribute(String name) - Specified by:
- removeAttributein interface- ClientModel
- Specified by:
- removeAttributein interface- ClientScopeModel
 
 - 
getAttributepublic String getAttribute(String name) - Specified by:
- getAttributein interface- ClientModel
- Specified by:
- getAttributein interface- ClientScopeModel
 
 - 
getAttributespublic Map<String,String> getAttributes() - Specified by:
- getAttributesin interface- ClientModel
- Specified by:
- getAttributesin interface- ClientScopeModel
 
 - 
getAuthenticationFlowBindingOverridepublic String getAuthenticationFlowBindingOverride(String binding) Description copied from interface:ClientModelGet authentication flow binding override for this client. Allows client to override an authentication flow binding.- Specified by:
- getAuthenticationFlowBindingOverridein interface- ClientModel
- Parameters:
- binding- examples are "browser", "direct_grant"
- Returns:
 
 - 
getAuthenticationFlowBindingOverridespublic Map<String,String> getAuthenticationFlowBindingOverrides() - Specified by:
- getAuthenticationFlowBindingOverridesin interface- ClientModel
 
 - 
removeAuthenticationFlowBindingOverridepublic void removeAuthenticationFlowBindingOverride(String binding) - Specified by:
- removeAuthenticationFlowBindingOverridein interface- ClientModel
 
 - 
setAuthenticationFlowBindingOverridepublic void setAuthenticationFlowBindingOverride(String binding, String flowId) - Specified by:
- setAuthenticationFlowBindingOverridein interface- ClientModel
 
 - 
isFrontchannelLogoutpublic boolean isFrontchannelLogout() - Specified by:
- isFrontchannelLogoutin interface- ClientModel
 
 - 
setFrontchannelLogoutpublic void setFrontchannelLogout(boolean flag) - Specified by:
- setFrontchannelLogoutin interface- ClientModel
 
 - 
isFullScopeAllowedpublic boolean isFullScopeAllowed() - Specified by:
- isFullScopeAllowedin interface- ClientModel
 
 - 
setFullScopeAllowedpublic void setFullScopeAllowed(boolean value) - Specified by:
- setFullScopeAllowedin interface- ClientModel
 
 - 
isPublicClientpublic boolean isPublicClient() - Specified by:
- isPublicClientin interface- ClientModel
 
 - 
setPublicClientpublic void setPublicClient(boolean flag) - Specified by:
- setPublicClientin interface- ClientModel
 
 - 
isConsentRequiredpublic boolean isConsentRequired() - Specified by:
- isConsentRequiredin interface- ClientModel
 
 - 
setConsentRequiredpublic void setConsentRequired(boolean consentRequired) - Specified by:
- setConsentRequiredin interface- ClientModel
 
 - 
isStandardFlowEnabledpublic boolean isStandardFlowEnabled() - Specified by:
- isStandardFlowEnabledin interface- ClientModel
 
 - 
setStandardFlowEnabledpublic void setStandardFlowEnabled(boolean standardFlowEnabled) - Specified by:
- setStandardFlowEnabledin interface- ClientModel
 
 - 
isImplicitFlowEnabledpublic boolean isImplicitFlowEnabled() - Specified by:
- isImplicitFlowEnabledin interface- ClientModel
 
 - 
setImplicitFlowEnabledpublic void setImplicitFlowEnabled(boolean implicitFlowEnabled) - Specified by:
- setImplicitFlowEnabledin interface- ClientModel
 
 - 
isDirectAccessGrantsEnabledpublic boolean isDirectAccessGrantsEnabled() - Specified by:
- isDirectAccessGrantsEnabledin interface- ClientModel
 
 - 
setDirectAccessGrantsEnabledpublic void setDirectAccessGrantsEnabled(boolean directAccessGrantsEnabled) - Specified by:
- setDirectAccessGrantsEnabledin interface- ClientModel
 
 - 
isServiceAccountsEnabledpublic boolean isServiceAccountsEnabled() - Specified by:
- isServiceAccountsEnabledin interface- ClientModel
 
 - 
setServiceAccountsEnabledpublic void setServiceAccountsEnabled(boolean serviceAccountsEnabled) - Specified by:
- setServiceAccountsEnabledin interface- ClientModel
 
 - 
getRealmpublic RealmModel getRealm() - Specified by:
- getRealmin interface- ClientModel
- Specified by:
- getRealmin interface- ClientScopeModel
 
 - 
addClientScopepublic void addClientScope(ClientScopeModel clientScope, boolean defaultScope) Description copied from interface:ClientModelAdd clientScope with this client. Add it as default scope (if parameter 'defaultScope' is true) or optional scope (if parameter 'defaultScope' is false)- Specified by:
- addClientScopein interface- ClientModel
 
 - 
addClientScopespublic void addClientScopes(Set<ClientScopeModel> clientScopes, boolean defaultScope) Description copied from interface:ClientModelAdd clientScopes with this client. Add as default scopes (if parameter 'defaultScope' is true) or optional scopes (if parameter 'defaultScope' is false)- Specified by:
- addClientScopesin interface- ClientModel
 
 - 
removeClientScopepublic void removeClientScope(ClientScopeModel clientScope) - Specified by:
- removeClientScopein interface- ClientModel
 
 - 
getClientScopespublic Map<String,ClientScopeModel> getClientScopes(boolean defaultScope) Description copied from interface:ClientModelReturn all default scopes (if 'defaultScope' is true) or all optional scopes (if 'defaultScope' is false) linked with this client- Specified by:
- getClientScopesin interface- ClientModel
- Returns:
- map where key is the name of the clientScope, value is particular clientScope. Returns empty map if no scopes linked (never returns null).
 
 - 
getDynamicClientScopepublic ClientScopeModel getDynamicClientScope(String scope) Description copied from interface:ClientModelReturns a ClientScopeModelassociated with this client.This method is used as a fallback in order to let clients to resolve a scopedynamically which is not listed as default or optional scope when calling#getClientScopes(boolean, boolean).- Specified by:
- getDynamicClientScopein interface- ClientModel
- Parameters:
- scope- the scope name
- Returns:
- the client scope
 
 - 
getNotBeforepublic int getNotBefore() Description copied from interface:ClientModelTime in seconds since epoc- Specified by:
- getNotBeforein interface- ClientModel
- Returns:
 
 - 
setNotBeforepublic void setNotBefore(int notBefore) - Specified by:
- setNotBeforein interface- ClientModel
 
 - 
getRegisteredNodespublic Map<String,Integer> getRegisteredNodes() - Specified by:
- getRegisteredNodesin interface- ClientModel
 
 - 
registerNodepublic void registerNode(String nodeHost, int registrationTime) Description copied from interface:ClientModelRegister node or just update the 'lastReRegistration' time if this node is already registered- Specified by:
- registerNodein interface- ClientModel
 
 - 
unregisterNodepublic void unregisterNode(String nodeHost) - Specified by:
- unregisterNodein interface- ClientModel
 
 - 
isDisplayOnConsentScreenpublic boolean isDisplayOnConsentScreen() - Specified by:
- isDisplayOnConsentScreenin interface- ClientModel
- Specified by:
- isDisplayOnConsentScreenin interface- ClientScopeModel
 
 - 
getConsentScreenTextpublic String getConsentScreenText() - Specified by:
- getConsentScreenTextin interface- ClientModel
- Specified by:
- getConsentScreenTextin interface- ClientScopeModel
 
 - 
setDisplayOnConsentScreenpublic void setDisplayOnConsentScreen(boolean displayOnConsentScreen) - Specified by:
- setDisplayOnConsentScreenin interface- ClientScopeModel
 
 - 
setConsentScreenTextpublic void setConsentScreenText(String consentScreenText) - Specified by:
- setConsentScreenTextin interface- ClientScopeModel
 
 - 
getGuiOrderpublic String getGuiOrder() - Specified by:
- getGuiOrderin interface- ClientScopeModel
- Specified by:
- getGuiOrderin interface- OrderedModel
 
 - 
setGuiOrderpublic void setGuiOrder(String guiOrder) - Specified by:
- setGuiOrderin interface- ClientScopeModel
 
 - 
isIncludeInTokenScopepublic boolean isIncludeInTokenScope() - Specified by:
- isIncludeInTokenScopein interface- ClientScopeModel
 
 - 
setIncludeInTokenScopepublic void setIncludeInTokenScope(boolean includeInTokenScope) - Specified by:
- setIncludeInTokenScopein interface- ClientScopeModel
 
 - 
isDynamicScopepublic boolean isDynamicScope() - Specified by:
- isDynamicScopein interface- ClientScopeModel
 
 - 
setIsDynamicScopepublic void setIsDynamicScope(boolean isDynamicScope) - Specified by:
- setIsDynamicScopein interface- ClientScopeModel
 
 - 
getDynamicScopeRegexppublic String getDynamicScopeRegexp() - Specified by:
- getDynamicScopeRegexpin interface- ClientScopeModel
 
 - 
getScopeMappingsStreampublic Stream<RoleModel> getScopeMappingsStream() Description copied from interface:ScopeContainerModelReturns scope mappings for this scope container as a stream.- Specified by:
- getScopeMappingsStreamin interface- ScopeContainerModel
- Returns:
- Stream of RoleModel. Never returnsnull.
 
 - 
getRealmScopeMappingsStreampublic Stream<RoleModel> getRealmScopeMappingsStream() Description copied from interface:ScopeContainerModelFrom the scope mappings returned byScopeContainerModel.getScopeMappingsStream()returns only those that belong to the realm that owns this scope container.- Specified by:
- getRealmScopeMappingsStreamin interface- ScopeContainerModel
- Returns:
- stream of RoleModel. Never returnsnull.
 
 - 
addScopeMappingpublic void addScopeMapping(RoleModel role) - Specified by:
- addScopeMappingin interface- ScopeContainerModel
 
 - 
deleteScopeMappingpublic void deleteScopeMapping(RoleModel role) - Specified by:
- deleteScopeMappingin interface- ScopeContainerModel
 
 - 
hasDirectScopepublic boolean hasDirectScope(RoleModel role) Description copied from interface:ScopeContainerModelReturnstrue, if this object has the given role directly in its scope.- Specified by:
- hasDirectScopein interface- ClientModel
- Specified by:
- hasDirectScopein interface- ScopeContainerModel
- Parameters:
- role- the role
- Returns:
- see description
- See Also:
- if you want to check whether this object has the given role directly or indirectly in its scope
 
 - 
hasScopepublic boolean hasScope(RoleModel role) Description copied from interface:ScopeContainerModelReturnstrue, if this object has the given role directly or indirectly in its scope,falseotherwise.- Specified by:
- hasScopein interface- ScopeContainerModel
- Parameters:
- role- the role
- Returns:
- see description
- See Also:
- if you want to check if this object has the given role directly in its scope
 
 - 
getRolepublic RoleModel getRole(String name) - Specified by:
- getRolein interface- RoleContainerModel
 
 - 
addRolepublic RoleModel addRole(String name) - Specified by:
- addRolein interface- RoleContainerModel
 
 - 
addRolepublic RoleModel addRole(String id, String name) - Specified by:
- addRolein interface- RoleContainerModel
 
 - 
removeRolepublic boolean removeRole(RoleModel role) - Specified by:
- removeRolein interface- RoleContainerModel
 
 - 
getRolesStreampublic Stream<RoleModel> getRolesStream() Description copied from interface:RoleContainerModelReturns available roles as a stream.- Specified by:
- getRolesStreamin interface- RoleContainerModel
- Returns:
- Stream of RoleModel. Never returnsnull.
 
 - 
getRolesStreampublic Stream<RoleModel> getRolesStream(Integer firstResult, Integer maxResults) Description copied from interface:RoleContainerModelReturns available roles as a stream.- Specified by:
- getRolesStreamin interface- RoleContainerModel
- Parameters:
- firstResult-- IntegerIndex of the first desired role. Ignored if negative or- null.
- maxResults-- IntegerMaximum number of returned roles. Ignored if negative or- null.
- Returns:
- Stream of RoleModel. Never returnsnull.
 
 - 
searchForRolesStreampublic 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 interface- RoleContainerModel
- Parameters:
- search-- StringName of the role to be used as a filter.
- first-- IntegerIndex of the first desired role. Ignored if negative or- null.
- max-- IntegerMaximum number of returned roles. Ignored if negative or- null.
- Returns:
- Stream of RoleModel. Never returnsnull.
 
 - 
getDefaultRolesStreampublic Stream<String> getDefaultRolesStream() - Specified by:
- getDefaultRolesStreamin interface- RoleContainerModel
- Returns:
- Stream of default roles names or empty stream if there are none. Never returns null.
 
 - 
addDefaultRolepublic void addDefaultRole(String name) - Specified by:
- addDefaultRolein interface- RoleContainerModel
 
 - 
updateDefaultRolespublic void updateDefaultRoles(String... defaultRoles) - Specified by:
- updateDefaultRolesin interface- RoleContainerModel
 
 - 
removeDefaultRolespublic void removeDefaultRoles(String... defaultRoles) - Specified by:
- removeDefaultRolesin interface- RoleContainerModel
 
 - 
getProtocolMappersStreampublic Stream<ProtocolMapperModel> getProtocolMappersStream() Description copied from interface:ProtocolMapperContainerModelReturns protocol mappers as a stream.- Specified by:
- getProtocolMappersStreamin interface- ProtocolMapperContainerModel
- Returns:
- Stream of protocol mapper. Never returns null.
 
 - 
addProtocolMapperpublic ProtocolMapperModel addProtocolMapper(ProtocolMapperModel model) - Specified by:
- addProtocolMapperin interface- ProtocolMapperContainerModel
 
 - 
removeProtocolMapperpublic void removeProtocolMapper(ProtocolMapperModel mapping) - Specified by:
- removeProtocolMapperin interface- ProtocolMapperContainerModel
 
 - 
updateProtocolMapperpublic void updateProtocolMapper(ProtocolMapperModel mapping) - Specified by:
- updateProtocolMapperin interface- ProtocolMapperContainerModel
 
 - 
getProtocolMapperByIdpublic ProtocolMapperModel getProtocolMapperById(String id) - Specified by:
- getProtocolMapperByIdin interface- ProtocolMapperContainerModel
 
 - 
getProtocolMapperByNamepublic ProtocolMapperModel getProtocolMapperByName(String protocol, String name) - Specified by:
- getProtocolMapperByNamein interface- ProtocolMapperContainerModel
 
 
- 
 
-