public class ClientScopeAdapter extends Object implements ClientScopeModel
OrderedModel.OrderedModelComparator<OM extends OrderedModel>
Modifier and Type | Field and Description |
---|---|
protected CachedClientScope |
cached |
protected RealmModel |
cachedRealm |
protected RealmCacheSession |
cacheSession |
protected boolean |
invalidated |
protected ClientScopeModel |
updated |
CONSENT_SCREEN_TEXT, DISPLAY_ON_CONSENT_SCREEN, GUI_ORDER, INCLUDE_IN_TOKEN_SCOPE
Constructor and Description |
---|
ClientScopeAdapter(RealmModel cachedRealm,
CachedClientScope cached,
RealmCacheSession cacheSession) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getConsentScreenText, getGuiOrder, isDisplayOnConsentScreen, isIncludeInTokenScope, setConsentScreenText, setDisplayOnConsentScreen, setGuiOrder, setIncludeInTokenScope
getScopeMappings
protected RealmCacheSession cacheSession
protected RealmModel cachedRealm
protected ClientScopeModel updated
protected CachedClientScope cached
protected boolean invalidated
public ClientScopeAdapter(RealmModel cachedRealm, CachedClientScope cached, RealmCacheSession cacheSession)
public void invalidate()
protected boolean isUpdated()
public String getId()
getId
in interface ClientScopeModel
public RealmModel getRealm()
getRealm
in interface ClientScopeModel
public Set<ProtocolMapperModel> getProtocolMappers()
getProtocolMappers
in interface ProtocolMapperContainerModel
public ProtocolMapperModel addProtocolMapper(ProtocolMapperModel model)
addProtocolMapper
in interface ProtocolMapperContainerModel
public void removeProtocolMapper(ProtocolMapperModel mapping)
removeProtocolMapper
in interface ProtocolMapperContainerModel
public void updateProtocolMapper(ProtocolMapperModel mapping)
updateProtocolMapper
in interface ProtocolMapperContainerModel
public ProtocolMapperModel getProtocolMapperById(String id)
getProtocolMapperById
in interface ProtocolMapperContainerModel
public ProtocolMapperModel getProtocolMapperByName(String protocol, String name)
getProtocolMapperByName
in interface ProtocolMapperContainerModel
public String getName()
getName
in interface ClientScopeModel
public void setName(String name)
setName
in interface ClientScopeModel
public String getDescription()
getDescription
in interface ClientScopeModel
public void setDescription(String description)
setDescription
in interface ClientScopeModel
public String getProtocol()
getProtocol
in interface ClientScopeModel
public void setProtocol(String protocol)
setProtocol
in interface ClientScopeModel
public Stream<RoleModel> getScopeMappingsStream()
getScopeMappingsStream
in interface ScopeContainerModel
public void addScopeMapping(RoleModel role)
addScopeMapping
in interface ScopeContainerModel
public void deleteScopeMapping(RoleModel role)
deleteScopeMapping
in interface ScopeContainerModel
public Set<RoleModel> getRealmScopeMappings()
ScopeContainerModel
ScopeContainerModel.getScopeMappings()
returns only those
that belong to the realm that owns this scope container.getRealmScopeMappings
in interface ScopeContainerModel
public boolean hasScope(RoleModel role)
hasScope
in interface ScopeContainerModel
public void setAttribute(String name, String value)
setAttribute
in interface ClientScopeModel
public void removeAttribute(String name)
removeAttribute
in interface ClientScopeModel
public String getAttribute(String name)
getAttribute
in interface ClientScopeModel
public Map<String,String> getAttributes()
getAttributes
in interface ClientScopeModel
Copyright © 2020 JBoss by Red Hat. All rights reserved.