Package org.keycloak.models
Class ClientScopeDecorator
java.lang.Object
org.keycloak.models.ClientScopeDecorator
- All Implemented Interfaces:
 ClientScopeModel,OrderedModel,ProtocolMapperContainerModel,ScopeContainerModel
- 
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.ClientScopeModel
ClientScopeModel.ClientScopeCreatedEvent, ClientScopeModel.ClientScopeRemovedEventNested classes/interfaces inherited from interface org.keycloak.models.OrderedModel
OrderedModel.OrderedModelComparator<OM extends OrderedModel> - 
Field Summary
Fields inherited from interface org.keycloak.models.ClientScopeModel
CONSENT_SCREEN_TEXT, DISPLAY_ON_CONSENT_SCREEN, DYNAMIC_SCOPE_REGEXP, GUI_ORDER, INCLUDE_IN_TOKEN_SCOPE, IS_DYNAMIC_SCOPE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddScopeMapping(RoleModel role) voiddeleteScopeMapping(RoleModel role) getAttribute(String name) getId()getName()getProtocolMapperByName(String protocol, String name) Returns protocol mappers as a stream.getRealm()From the scope mappings returned byScopeContainerModel.getScopeMappingsStream()returns only those that belong to the realm that owns this scope container.Returns scope mappings for this scope container as a stream.booleanhasDirectScope(RoleModel role) Returnstrue, if this object has the given role directly in its scope.booleanReturnstrue, if this object has the given role directly or indirectly in its scope,falseotherwise.booleanbooleanbooleanvoidremoveAttribute(String name) voidremoveProtocolMapper(ProtocolMapperModel mapping) voidsetAttribute(String name, String value) voidsetConsentScreenText(String consentScreenText) voidsetDescription(String description) voidsetDisplayOnConsentScreen(boolean displayOnConsentScreen) voidsetGuiOrder(String guiOrder) voidsetIncludeInTokenScope(boolean includeInTokenScope) voidsetIsDynamicScope(boolean isDynamicScope) voidvoidsetProtocol(String protocol) voidupdateProtocolMapper(ProtocolMapperModel mapping)  
- 
Constructor Details
- 
ClientScopeDecorator
 
 - 
 - 
Method Details
- 
getId
- Specified by:
 getIdin interfaceClientScopeModel
 - 
getName
- Specified by:
 getNamein interfaceClientScopeModel
 - 
getRealm
- Specified by:
 getRealmin interfaceClientScopeModel
 - 
setName
- Specified by:
 setNamein interfaceClientScopeModel
 - 
getDescription
- Specified by:
 getDescriptionin interfaceClientScopeModel
 - 
setDescription
- Specified by:
 setDescriptionin interfaceClientScopeModel
 - 
getProtocol
- Specified by:
 getProtocolin interfaceClientScopeModel
 - 
setProtocol
- Specified by:
 setProtocolin interfaceClientScopeModel
 - 
setAttribute
- Specified by:
 setAttributein interfaceClientScopeModel
 - 
removeAttribute
- Specified by:
 removeAttributein interfaceClientScopeModel
 - 
getAttribute
- Specified by:
 getAttributein interfaceClientScopeModel
 - 
getAttributes
- Specified by:
 getAttributesin interfaceClientScopeModel
 - 
isDisplayOnConsentScreen
public boolean isDisplayOnConsentScreen()- Specified by:
 isDisplayOnConsentScreenin interfaceClientScopeModel
 - 
setDisplayOnConsentScreen
public void setDisplayOnConsentScreen(boolean displayOnConsentScreen) - Specified by:
 setDisplayOnConsentScreenin interfaceClientScopeModel
 - 
getConsentScreenText
- Specified by:
 getConsentScreenTextin interfaceClientScopeModel
 - 
setConsentScreenText
- Specified by:
 setConsentScreenTextin interfaceClientScopeModel
 - 
getGuiOrder
- Specified by:
 getGuiOrderin interfaceClientScopeModel- Specified by:
 getGuiOrderin interfaceOrderedModel
 - 
setGuiOrder
- Specified by:
 setGuiOrderin interfaceClientScopeModel
 - 
isIncludeInTokenScope
public boolean isIncludeInTokenScope()- Specified by:
 isIncludeInTokenScopein interfaceClientScopeModel
 - 
setIncludeInTokenScope
public void setIncludeInTokenScope(boolean includeInTokenScope) - Specified by:
 setIncludeInTokenScopein interfaceClientScopeModel
 - 
isDynamicScope
public boolean isDynamicScope()- Specified by:
 isDynamicScopein interfaceClientScopeModel
 - 
setIsDynamicScope
public void setIsDynamicScope(boolean isDynamicScope) - Specified by:
 setIsDynamicScopein interfaceClientScopeModel
 - 
getDynamicScopeRegexp
- Specified by:
 getDynamicScopeRegexpin interfaceClientScopeModel
 - 
getProtocolMappersStream
Description copied from interface:ProtocolMapperContainerModelReturns protocol mappers as a stream.- Specified by:
 getProtocolMappersStreamin interfaceProtocolMapperContainerModel- Returns:
 - Stream of protocol mapper. Never returns 
null. 
 - 
addProtocolMapper
- Specified by:
 addProtocolMapperin interfaceProtocolMapperContainerModel
 - 
removeProtocolMapper
- Specified by:
 removeProtocolMapperin interfaceProtocolMapperContainerModel
 - 
updateProtocolMapper
- Specified by:
 updateProtocolMapperin interfaceProtocolMapperContainerModel
 - 
getProtocolMapperById
- Specified by:
 getProtocolMapperByIdin interfaceProtocolMapperContainerModel
 - 
getProtocolMapperByName
- Specified by:
 getProtocolMapperByNamein interfaceProtocolMapperContainerModel
 - 
getScopeMappingsStream
Description copied from interface:ScopeContainerModelReturns scope mappings for this scope container as a stream.- Specified by:
 getScopeMappingsStreamin interfaceScopeContainerModel- Returns:
 - Stream of 
RoleModel. Never returnsnull. 
 - 
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 interfaceScopeContainerModel- Returns:
 - stream of 
RoleModel. Never returnsnull. 
 - 
addScopeMapping
- Specified by:
 addScopeMappingin interfaceScopeContainerModel
 - 
deleteScopeMapping
- Specified by:
 deleteScopeMappingin interfaceScopeContainerModel
 - 
hasDirectScope
Description copied from interface:ScopeContainerModelReturnstrue, if this object has the given role directly in its scope.- Specified by:
 hasDirectScopein interfaceScopeContainerModel- Parameters:
 role- the role- Returns:
 - see description
 - See Also:
 
 - 
hasScope
Description copied from interface:ScopeContainerModelReturnstrue, if this object has the given role directly or indirectly in its scope,falseotherwise.- Specified by:
 hasScopein interfaceScopeContainerModel- Parameters:
 role- the role- Returns:
 - see description
 - See Also:
 
 
 -