Class JPAScopeStore
- java.lang.Object
-
- org.keycloak.authorization.jpa.store.JPAScopeStore
-
- All Implemented Interfaces:
ScopeStore
public class JPAScopeStore extends Object implements ScopeStore
- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description JPAScopeStore(javax.persistence.EntityManager entityManager, AuthorizationProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Scope
create(ResourceServer resourceServer, String name)
Scope
create(ResourceServer resourceServer, String id, String name)
void
delete(RealmModel realm, String id)
Scope
findById(RealmModel realm, ResourceServer resourceServer, String id)
Scope
findByName(ResourceServer resourceServer, String name)
List<Scope>
findByResourceServer(ResourceServer resourceServer)
List<Scope>
findByResourceServer(ResourceServer resourceServer, Map<Scope.FilterOption,String[]> attributes, Integer firstResult, Integer maxResults)
-
-
-
Constructor Detail
-
JPAScopeStore
public JPAScopeStore(javax.persistence.EntityManager entityManager, AuthorizationProvider provider)
-
-
Method Detail
-
create
public Scope create(ResourceServer resourceServer, String name)
- Specified by:
create
in interfaceScopeStore
-
create
public Scope create(ResourceServer resourceServer, String id, String name)
- Specified by:
create
in interfaceScopeStore
-
delete
public void delete(RealmModel realm, String id)
- Specified by:
delete
in interfaceScopeStore
-
findById
public Scope findById(RealmModel realm, ResourceServer resourceServer, String id)
- Specified by:
findById
in interfaceScopeStore
-
findByName
public Scope findByName(ResourceServer resourceServer, String name)
- Specified by:
findByName
in interfaceScopeStore
-
findByResourceServer
public List<Scope> findByResourceServer(ResourceServer resourceServer)
- Specified by:
findByResourceServer
in interfaceScopeStore
-
findByResourceServer
public List<Scope> findByResourceServer(ResourceServer resourceServer, Map<Scope.FilterOption,String[]> attributes, Integer firstResult, Integer maxResults)
- Specified by:
findByResourceServer
in interfaceScopeStore
-
-