public interface ScopeStore
ScopeStore is responsible to manage the persistence of Scope instances.| 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 id)
|
Scope create(String name, ResourceServer resourceServer)
Scope instance. The new instance is not necessarily persisted though, which may require
a call to the {#save} method to actually make it persistent.name - the name of the scoperesourceServer - the resource server to which this scope belongsScopevoid delete(String id)
id - the id of the scope to deleteScope findById(String id)
Scope with the given idid - the identifier of the scopeScope findByName(String name, String resourceServerId)
Scope with the given namename - the name of the scoperesourceServerId - Copyright © 2016 JBoss by Red Hat. All rights reserved.