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.ClientScopeModel
ClientScopeModel.ClientScopeRemovedEvent, ClientScopeModel.SearchableFields
-
Nested classes/interfaces inherited from interface org.keycloak.models.OrderedModel
OrderedModel.OrderedModelComparator<OM extends OrderedModel>
-
-
Field Summary
Fields Modifier and Type Field Description protected CachedClientScopecachedprotected RealmModelcachedRealmprotected RealmCacheSessioncacheSessionprotected booleaninvalidatedprotected ClientScopeModelupdated-
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 Constructor Description ClientScopeAdapter(RealmModel cachedRealm, CachedClientScope 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.ClientScopeModel
getConsentScreenText, getDynamicScopeRegexp, getGuiOrder, isDisplayOnConsentScreen, isDynamicScope, isIncludeInTokenScope, setConsentScreenText, setDisplayOnConsentScreen, setGuiOrder, setIncludeInTokenScope, setIsDynamicScope
-
Methods inherited from interface org.keycloak.models.ProtocolMapperContainerModel
getProtocolMappers
-
Methods inherited from interface org.keycloak.models.ScopeContainerModel
getRealmScopeMappings, getScopeMappings
-
-
-
-
Field Detail
-
cacheSession
protected RealmCacheSession cacheSession
-
cachedRealm
protected RealmModel cachedRealm
-
updated
protected ClientScopeModel updated
-
cached
protected CachedClientScope cached
-
invalidated
protected boolean invalidated
-
-
Constructor Detail
-
ClientScopeAdapter
public ClientScopeAdapter(RealmModel cachedRealm, CachedClientScope cached, RealmCacheSession cacheSession)
-
-
Method Detail
-
invalidate
public void invalidate()
-
isUpdated
protected boolean isUpdated()
-
getId
public String getId()
- Specified by:
getIdin interfaceClientScopeModel
-
getRealm
public RealmModel getRealm()
- Specified by:
getRealmin interfaceClientScopeModel
-
getProtocolMappersStream
public Stream<ProtocolMapperModel> getProtocolMappersStream()
- Specified by:
getProtocolMappersStreamin interfaceProtocolMapperContainerModel
-
addProtocolMapper
public ProtocolMapperModel addProtocolMapper(ProtocolMapperModel model)
- Specified by:
addProtocolMapperin interfaceProtocolMapperContainerModel
-
removeProtocolMapper
public void removeProtocolMapper(ProtocolMapperModel mapping)
- Specified by:
removeProtocolMapperin interfaceProtocolMapperContainerModel
-
updateProtocolMapper
public void updateProtocolMapper(ProtocolMapperModel mapping)
- Specified by:
updateProtocolMapperin interfaceProtocolMapperContainerModel
-
getProtocolMapperById
public ProtocolMapperModel getProtocolMapperById(String id)
- Specified by:
getProtocolMapperByIdin interfaceProtocolMapperContainerModel
-
getProtocolMapperByName
public ProtocolMapperModel getProtocolMapperByName(String protocol, String name)
- Specified by:
getProtocolMapperByNamein interfaceProtocolMapperContainerModel
-
getName
public String getName()
- Specified by:
getNamein interfaceClientScopeModel
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceClientScopeModel
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceClientScopeModel
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceClientScopeModel
-
getProtocol
public String getProtocol()
- Specified by:
getProtocolin interfaceClientScopeModel
-
setProtocol
public void setProtocol(String protocol)
- Specified by:
setProtocolin interfaceClientScopeModel
-
getScopeMappingsStream
public Stream<RoleModel> getScopeMappingsStream()
- Specified by:
getScopeMappingsStreamin interfaceScopeContainerModel
-
addScopeMapping
public void addScopeMapping(RoleModel role)
- Specified by:
addScopeMappingin interfaceScopeContainerModel
-
deleteScopeMapping
public void deleteScopeMapping(RoleModel role)
- Specified by:
deleteScopeMappingin interfaceScopeContainerModel
-
getRealmScopeMappingsStream
public Stream<RoleModel> getRealmScopeMappingsStream()
- Specified by:
getRealmScopeMappingsStreamin interfaceScopeContainerModel
-
hasDirectScope
public boolean hasDirectScope(RoleModel role)
- Specified by:
hasDirectScopein interfaceScopeContainerModel
-
hasScope
public boolean hasScope(RoleModel role)
- Specified by:
hasScopein interfaceScopeContainerModel
-
setAttribute
public void setAttribute(String name, String value)
- Specified by:
setAttributein interfaceClientScopeModel
-
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttributein interfaceClientScopeModel
-
getAttribute
public String getAttribute(String name)
- Specified by:
getAttributein interfaceClientScopeModel
-
getAttributes
public Map<String,String> getAttributes()
- Specified by:
getAttributesin interfaceClientScopeModel
-
-