Class MapScopeStore
- java.lang.Object
- 
- org.keycloak.models.map.authorization.MapScopeStore
 
- 
- All Implemented Interfaces:
- ScopeStore
 
 public class MapScopeStore extends Object implements ScopeStore 
- 
- 
Constructor SummaryConstructors Constructor Description MapScopeStore(MapStorage<MapScopeEntity,Scope> scopeStore, AuthorizationProvider provider)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Scopecreate(ResourceServer resourceServer, String id, String name)Creates a newScopeinstance.voiddelete(RealmModel realm, String id)Deletes a scope from the underlying persistence mechanism.ScopefindById(RealmModel realm, ResourceServer resourceServer, String id)Returns aScopewith the givenidScopefindByName(ResourceServer resourceServer, String name)Returns aScopewith the givennameList<Scope>findByResourceServer(ResourceServer resourceServer)Returns a list ofScopeassociated with theResourceServer.List<Scope>findByResourceServer(ResourceServer resourceServer, Map<Scope.FilterOption,String[]> attributes, Integer firstResult, Integer maxResults)voidpreRemove(RealmModel realm)voidpreRemove(RealmModel realm, ResourceServer resourceServer)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.authorization.store.ScopeStorecreate
 
- 
 
- 
- 
- 
Constructor Detail- 
MapScopeStorepublic MapScopeStore(MapStorage<MapScopeEntity,Scope> scopeStore, AuthorizationProvider provider) 
 
- 
 - 
Method Detail- 
createpublic Scope create(ResourceServer resourceServer, String id, String name) Description copied from interface:ScopeStoreCreates a newScopeinstance. The new instance is not necessarily persisted though, which may require a call to the {#save} method to actually make it persistent.- Specified by:
- createin interface- ScopeStore
- Parameters:
- resourceServer- the resource server to which this scope belongs. Cannot be- null.
- id- the id of the scope. Is generated randomly when null
- name- the name of the scope
- Returns:
- a new instance of Scope
 
 - 
deletepublic void delete(RealmModel realm, String id) Description copied from interface:ScopeStoreDeletes a scope from the underlying persistence mechanism.- Specified by:
- deletein interface- ScopeStore
- Parameters:
- realm- the realm. Cannot be- null.
- id- the id of the scope to delete
 
 - 
findByIdpublic Scope findById(RealmModel realm, ResourceServer resourceServer, String id) Description copied from interface:ScopeStoreReturns aScopewith the givenid- Specified by:
- findByIdin interface- ScopeStore
- Parameters:
- realm- the realm. Cannot be- null.
- resourceServer- the resource server id. Ignored if- null.
- id- the identifier of the scope
- Returns:
- a scope with the given identifier.
 
 - 
findByNamepublic Scope findByName(ResourceServer resourceServer, String name) Description copied from interface:ScopeStoreReturns aScopewith the givenname- Specified by:
- findByNamein interface- ScopeStore
- Parameters:
- resourceServer- the resource server. Cannot be- null.
- name- the name of the scope
- Returns:
- a scope with the given name.
 
 - 
findByResourceServerpublic List<Scope> findByResourceServer(ResourceServer resourceServer) Description copied from interface:ScopeStoreReturns a list ofScopeassociated with theResourceServer.- Specified by:
- findByResourceServerin interface- ScopeStore
- Parameters:
- resourceServer- the resource server. Cannot be- null.
- Returns:
- a list of scopes that belong to the given resource server
 
 - 
findByResourceServerpublic List<Scope> findByResourceServer(ResourceServer resourceServer, Map<Scope.FilterOption,String[]> attributes, Integer firstResult, Integer maxResults) Description copied from interface:ScopeStore- Specified by:
- findByResourceServerin interface- ScopeStore
- Parameters:
- resourceServer- the resource server. Cannot be- null.
- attributes- a map holding the attributes that will be used as a filter; possible filter options are given by- Scope.FilterOption
- firstResult- first result to return. Ignored if negative or- null.
- maxResults- maximum number of results to return. Ignored if negative or- null.
- Returns:
- a list of scopes that belong to the given resource server
 
 - 
preRemovepublic void preRemove(RealmModel realm) 
 - 
preRemovepublic void preRemove(RealmModel realm, ResourceServer resourceServer) 
 
- 
 
-