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)
ScopeStore
Scope
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 ScopeStore
name
- the name of the scoperesourceServer
- the resource server to which this scope belongsScope
public void delete(String id)
ScopeStore
delete
in interface ScopeStore
id
- the id of the scope to deletepublic Scope findById(String id)
ScopeStore
Scope
with the given id
findById
in interface ScopeStore
id
- the identifier of the scopepublic Scope findByName(String name, String resourceServerId)
ScopeStore
Scope
with the given name
findByName
in interface ScopeStore
name
- the name of the scopepublic List<Scope> findByResourceServer(String resourceServerId)
ScopeStore
findByResourceServer
in interface ScopeStore
Copyright © 2016 JBoss by Red Hat. All rights reserved.