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 Scopecreate(ResourceServer resourceServer, String name)Scopecreate(ResourceServer resourceServer, String id, String name)voiddelete(String id)ScopefindById(ResourceServer resourceServer, String id)ScopefindByName(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:
createin interfaceScopeStore
-
create
public Scope create(ResourceServer resourceServer, String id, String name)
- Specified by:
createin interfaceScopeStore
-
delete
public void delete(String id)
- Specified by:
deletein interfaceScopeStore
-
findById
public Scope findById(ResourceServer resourceServer, String id)
- Specified by:
findByIdin interfaceScopeStore
-
findByName
public Scope findByName(ResourceServer resourceServer, String name)
- Specified by:
findByNamein interfaceScopeStore
-
findByResourceServer
public List<Scope> findByResourceServer(ResourceServer resourceServer)
- Specified by:
findByResourceServerin interfaceScopeStore
-
findByResourceServer
public List<Scope> findByResourceServer(ResourceServer resourceServer, Map<Scope.FilterOption,String[]> attributes, Integer firstResult, Integer maxResults)
- Specified by:
findByResourceServerin interfaceScopeStore
-
-