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. |
Scope |
create(String id,
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,
String resourceServerId)
Returns a
Scope with the given id |
Scope |
findByName(String name,
String resourceServerId)
Returns a
Scope with the given name |
List<Scope> |
findByResourceServer(Map<String,String[]> attributes,
String resourceServerId,
int firstResult,
int maxResult)
|
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 belongsScope
Scope create(String id, 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.id
- the id of the scopename
- the name of the scoperesourceServer
- the resource server to which this scope belongsScope
void delete(String id)
id
- the id of the scope to deleteScope findById(String id, String resourceServerId)
Scope
with the given id
id
- the identifier of the scoperesourceServerId
- the resource server idScope findByName(String name, String resourceServerId)
Scope
with the given name
name
- the name of the scoperesourceServerId
- the resource server idList<Scope> findByResourceServer(String id)
resourceServerId
- the identifier of a resource serverList<Scope> findByResourceServer(Map<String,String[]> attributes, String resourceServerId, int firstResult, int maxResult)
attributes
- a map holding the attributes that will be used as a filterresourceServerId
- the identifier of a resource serverCopyright © 2020 JBoss by Red Hat. All rights reserved.