public class JPAResourceStore extends Object implements ResourceStore
Constructor and Description |
---|
JPAResourceStore(javax.persistence.EntityManager entityManager,
AuthorizationProvider provider) |
Modifier and Type | Method and Description |
---|---|
Resource |
create(String id,
String name,
ResourceServer resourceServer,
String owner) |
void |
delete(String id) |
Resource |
findById(String id,
String resourceServerId) |
Resource |
findByName(String name,
String resourceServerId) |
Resource |
findByName(String name,
String ownerId,
String resourceServerId) |
void |
findByOwner(String ownerId,
String resourceServerId,
Consumer<Resource> consumer) |
List<Resource> |
findByOwner(String ownerId,
String resourceServerId,
int first,
int max) |
List<Resource> |
findByResourceServer(Map<Resource.FilterOption,String[]> attributes,
String resourceServerId,
int firstResult,
int maxResult) |
List<Resource> |
findByResourceServer(String resourceServerId) |
void |
findByScope(List<String> scopes,
String resourceServerId,
Consumer<Resource> consumer) |
void |
findByType(String type,
String resourceServerId,
Consumer<Resource> consumer) |
void |
findByType(String type,
String owner,
String resourceServerId,
Consumer<Resource> consumer) |
void |
findByTypeInstance(String type,
String resourceServerId,
Consumer<Resource> consumer) |
List<Resource> |
findByUri(String uri,
String resourceServerId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, findByOwner, findByScope, findByType, findByType, findByTypeInstance
public JPAResourceStore(javax.persistence.EntityManager entityManager, AuthorizationProvider provider)
public Resource create(String id, String name, ResourceServer resourceServer, String owner)
create
in interface ResourceStore
public void delete(String id)
delete
in interface ResourceStore
public Resource findById(String id, String resourceServerId)
findById
in interface ResourceStore
public void findByOwner(String ownerId, String resourceServerId, Consumer<Resource> consumer)
findByOwner
in interface ResourceStore
public List<Resource> findByOwner(String ownerId, String resourceServerId, int first, int max)
findByOwner
in interface ResourceStore
public List<Resource> findByUri(String uri, String resourceServerId)
findByUri
in interface ResourceStore
public List<Resource> findByResourceServer(String resourceServerId)
findByResourceServer
in interface ResourceStore
public List<Resource> findByResourceServer(Map<Resource.FilterOption,String[]> attributes, String resourceServerId, int firstResult, int maxResult)
findByResourceServer
in interface ResourceStore
public void findByScope(List<String> scopes, String resourceServerId, Consumer<Resource> consumer)
findByScope
in interface ResourceStore
public Resource findByName(String name, String resourceServerId)
findByName
in interface ResourceStore
public Resource findByName(String name, String ownerId, String resourceServerId)
findByName
in interface ResourceStore
public void findByType(String type, String resourceServerId, Consumer<Resource> consumer)
findByType
in interface ResourceStore
public void findByType(String type, String owner, String resourceServerId, Consumer<Resource> consumer)
findByType
in interface ResourceStore
public void findByTypeInstance(String type, String resourceServerId, Consumer<Resource> consumer)
findByTypeInstance
in interface ResourceStore
Copyright © 2021 JBoss by Red Hat. All rights reserved.