public interface ScopeStore
ScopeStore is responsible to manage the persistence of Scope instances.| Modifier and Type | Method and Description |
|---|---|
default 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<Scope.FilterOption,String[]> attributes,
String resourceServerId,
int firstResult,
int maxResult)
|
List<Scope> |
findByResourceServer(String id)
|
default 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 belongsScopeScope 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 scope. Is generated randomly when nullname - 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, String resourceServerId)
Scope with the given idid - the identifier of the scoperesourceServerId - the resource server idScope findByName(String name, String resourceServerId)
Scope with the given namename - the name of the scoperesourceServerId - the resource server idList<Scope> findByResourceServer(String id)
resourceServerId - the identifier of a resource serverList<Scope> findByResourceServer(Map<Scope.FilterOption,String[]> attributes, String resourceServerId, int firstResult, int maxResult)
attributes - a map holding the attributes that will be used as a filter; possible filter options are given by Scope.FilterOptionresourceServerId - the identifier of a resource serverIllegalArgumentException - when there is an unknown attribute in the attributes mapCopyright © 2021 JBoss by Red Hat. All rights reserved.