Class ClientScopeAdapter
- java.lang.Object
- 
- org.keycloak.models.cache.infinispan.ClientScopeAdapter
 
- 
- All Implemented Interfaces:
- ClientScopeModel,- OrderedModel,- ProtocolMapperContainerModel,- ScopeContainerModel
 
 public class ClientScopeAdapter extends Object implements ClientScopeModel - Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.keycloak.models.ClientScopeModelClientScopeModel.ClientScopeRemovedEvent, ClientScopeModel.SearchableFields
 - 
Nested classes/interfaces inherited from interface org.keycloak.models.OrderedModelOrderedModel.OrderedModelComparator<OM extends OrderedModel>
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected CachedClientScopecachedprotected RealmModelcachedRealmprotected RealmCacheSessioncacheSessionprotected booleaninvalidatedprotected ClientScopeModelupdated- 
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 ClientScopeAdapter(RealmModel cachedRealm, CachedClientScope cached, RealmCacheSession cacheSession)
 - 
Method Summary- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.ClientScopeModelgetConsentScreenText, getDynamicScopeRegexp, getGuiOrder, isDisplayOnConsentScreen, isDynamicScope, isIncludeInTokenScope, setConsentScreenText, setDisplayOnConsentScreen, setGuiOrder, setIncludeInTokenScope, setIsDynamicScope
 
- 
 
- 
- 
- 
Field Detail- 
cacheSessionprotected RealmCacheSession cacheSession 
 - 
cachedRealmprotected RealmModel cachedRealm 
 - 
updatedprotected ClientScopeModel updated 
 - 
cachedprotected CachedClientScope cached 
 - 
invalidatedprotected boolean invalidated 
 
- 
 - 
Constructor Detail- 
ClientScopeAdapterpublic ClientScopeAdapter(RealmModel cachedRealm, CachedClientScope cached, RealmCacheSession cacheSession) 
 
- 
 - 
Method Detail- 
invalidatepublic void invalidate() 
 - 
isUpdatedprotected boolean isUpdated() 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- ClientScopeModel
 
 - 
getRealmpublic RealmModel getRealm() - Specified by:
- getRealmin interface- ClientScopeModel
 
 - 
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
 
 - 
getNamepublic String getName() - Specified by:
- getNamein interface- ClientScopeModel
 
 - 
setNamepublic void setName(String name) - Specified by:
- setNamein interface- ClientScopeModel
 
 - 
getDescriptionpublic String getDescription() - Specified by:
- getDescriptionin interface- ClientScopeModel
 
 - 
setDescriptionpublic void setDescription(String description) - Specified by:
- setDescriptionin interface- ClientScopeModel
 
 - 
getProtocolpublic String getProtocol() - Specified by:
- getProtocolin interface- ClientScopeModel
 
 - 
setProtocolpublic void setProtocol(String protocol) - Specified by:
- setProtocolin 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.
 
 - 
addScopeMappingpublic void addScopeMapping(RoleModel role) - Specified by:
- addScopeMappingin interface- ScopeContainerModel
 
 - 
deleteScopeMappingpublic void deleteScopeMapping(RoleModel role) - Specified by:
- deleteScopeMappingin interface- ScopeContainerModel
 
 - 
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.
 
 - 
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- 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
 
 - 
setAttributepublic void setAttribute(String name, String value) - Specified by:
- setAttributein interface- ClientScopeModel
 
 - 
removeAttributepublic void removeAttribute(String name) - Specified by:
- removeAttributein interface- ClientScopeModel
 
 - 
getAttributepublic String getAttribute(String name) - Specified by:
- getAttributein interface- ClientScopeModel
 
 - 
getAttributespublic Map<String,String> getAttributes() - Specified by:
- getAttributesin interface- ClientScopeModel
 
 
- 
 
-