Package org.keycloak.models.jpa
Class ClientScopeAdapter
- java.lang.Object
- 
- org.keycloak.models.jpa.ClientScopeAdapter
 
- 
- All Implemented Interfaces:
- ClientScopeModel,- JpaModel<ClientScopeEntity>,- OrderedModel,- ProtocolMapperContainerModel,- ScopeContainerModel
 
 public class ClientScopeAdapter extends Object implements ClientScopeModel, JpaModel<ClientScopeEntity> - 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 javax.persistence.EntityManageremprotected ClientScopeEntityentityprotected RealmModelrealmprotected KeycloakSessionsession- 
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 realm, javax.persistence.EntityManager em, KeycloakSession session, ClientScopeEntity entity)
 - 
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
 - 
Methods inherited from interface org.keycloak.models.ScopeContainerModelhasDirectScope
 
- 
 
- 
- 
- 
Field Detail- 
sessionprotected KeycloakSession session 
 - 
realmprotected RealmModel realm 
 - 
emprotected javax.persistence.EntityManager em 
 - 
entityprotected ClientScopeEntity entity 
 
- 
 - 
Constructor Detail- 
ClientScopeAdapterpublic ClientScopeAdapter(RealmModel realm, javax.persistence.EntityManager em, KeycloakSession session, ClientScopeEntity entity) 
 
- 
 - 
Method Detail- 
getEntitypublic ClientScopeEntity getEntity() - Specified by:
- getEntityin interface- JpaModel<ClientScopeEntity>
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- ClientScopeModel
 
 - 
getRealmpublic RealmModel getRealm() - Specified by:
- getRealmin interface- ClientScopeModel
 
 - 
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
 
 - 
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
 
 - 
getProtocolMapperEntityprotected ProtocolMapperEntity getProtocolMapperEntity(String id) 
 - 
getProtocolMapperEntityByNameprotected ProtocolMapperEntity getProtocolMapperEntityByName(String protocol, String name) 
 - 
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
 
 - 
entityToModelprotected ProtocolMapperModel entityToModel(ProtocolMapperEntity entity) 
 - 
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.
 
 - 
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
 
 - 
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
 
 - 
toClientScopeEntitypublic static ClientScopeEntity toClientScopeEntity(ClientScopeModel model, javax.persistence.EntityManager em) 
 - 
getAttributespublic Map<String,String> getAttributes() - Specified by:
- getAttributesin interface- ClientScopeModel
 
 
- 
 
-