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(String id, String name, ResourceServer resourceServer)Scopecreate(String name, ResourceServer resourceServer)voiddelete(String id)ScopefindById(String id, String resourceServerId)ScopefindByName(String name, String resourceServerId)List<Scope>findByResourceServer(String serverId)List<Scope>findByResourceServer(Map<Scope.FilterOption,String[]> attributes, String resourceServerId, int firstResult, int maxResult)
-
-
-
Constructor Detail
-
JPAScopeStore
public JPAScopeStore(javax.persistence.EntityManager entityManager, AuthorizationProvider provider)
-
-
Method Detail
-
create
public Scope create(String name, ResourceServer resourceServer)
- Specified by:
createin interfaceScopeStore
-
create
public Scope create(String id, String name, ResourceServer resourceServer)
- Specified by:
createin interfaceScopeStore
-
delete
public void delete(String id)
- Specified by:
deletein interfaceScopeStore
-
findById
public Scope findById(String id, String resourceServerId)
- Specified by:
findByIdin interfaceScopeStore
-
findByName
public Scope findByName(String name, String resourceServerId)
- Specified by:
findByNamein interfaceScopeStore
-
findByResourceServer
public List<Scope> findByResourceServer(String serverId)
- Specified by:
findByResourceServerin interfaceScopeStore
-
findByResourceServer
public List<Scope> findByResourceServer(Map<Scope.FilterOption,String[]> attributes, String resourceServerId, int firstResult, int maxResult)
- Specified by:
findByResourceServerin interfaceScopeStore
-
-