public class MongoScopeStore extends Object implements ScopeStore
| Constructor and Description |
|---|
MongoScopeStore(MongoStoreInvocationContext invocationContext,
AuthorizationProvider authorizationProvider) |
| Modifier and Type | Method and Description |
|---|---|
Scope |
create(String name,
ResourceServer resourceServer)
Creates a new
Scope instance. |
void |
delete(String id)
Deletes a scope from the underlying persistence mechanism.
|
Scope |
findById(String id)
Returns a
Scope with the given id |
Scope |
findByName(String name,
String resourceServerId)
Returns a
Scope with the given name |
List<Scope> |
findByResourceServer(String resourceServerId)
|
public MongoScopeStore(MongoStoreInvocationContext invocationContext, AuthorizationProvider authorizationProvider)
public Scope create(String name, ResourceServer resourceServer)
ScopeStoreScope instance. The new instance is not necessarily persisted though, which may require
a call to the {#save} method to actually make it persistent.create in interface ScopeStorename - the name of the scoperesourceServer - the resource server to which this scope belongsScopepublic void delete(String id)
ScopeStoredelete in interface ScopeStoreid - the id of the scope to deletepublic Scope findById(String id)
ScopeStoreScope with the given idfindById in interface ScopeStoreid - the identifier of the scopepublic Scope findByName(String name, String resourceServerId)
ScopeStoreScope with the given namefindByName in interface ScopeStorename - the name of the scopepublic List<Scope> findByResourceServer(String resourceServerId)
ScopeStorefindByResourceServer in interface ScopeStoreCopyright © 2016 JBoss by Red Hat. All rights reserved.