public class OpenAMResourceSetStore extends Object implements ResourceSetStore
ResourceSetDescription
objects in the CTS.ResourceSetStore.FilterType
Constructor and Description |
---|
OpenAMResourceSetStore(String realm,
OAuth2UrisFactory oauth2UrisFactory,
TokenIdGenerator idGenerator,
TokenDataStore delegate)
Constructs a new OpenAMResourceSetStore instance.
|
Modifier and Type | Method and Description |
---|---|
void |
create(OAuth2Request request,
ResourceSetDescription resourceSetDescription)
Create a
ResourceSetDescription . |
void |
delete(String resourceSetId,
String resourceOwnerId)
Remove a
ResourceSetDescription with the given ID from the store. |
Set<ResourceSetDescription> |
query(org.forgerock.util.query.QueryFilter<String> query)
Query the store for
ResourceSetDescription instances. |
ResourceSetDescription |
read(String resourceSetId,
ResourceSetFilter filter)
Reads a
ResourceSetDescription out of the store using its OpenAM Unique ID. |
ResourceSetDescription |
read(String resourceSetId,
String resourceOwnerId)
Reads a
ResourceSetDescription out of the store using its OpenAM Unique ID. |
void |
update(ResourceSetDescription resourceSetDescription)
Update a given
ResourceSetDescription instance. |
@Inject public OpenAMResourceSetStore(String realm, OAuth2UrisFactory oauth2UrisFactory, TokenIdGenerator idGenerator, TokenDataStore delegate)
realm
- The realm this ResourceSetStore is in.oauth2UrisFactory
- An instance of the OAuth2UrisFactory.public void create(OAuth2Request request, ResourceSetDescription resourceSetDescription) throws ServerException, BadRequestException, NotFoundException
ResourceSetStore
ResourceSetDescription
. The id field will be populated with the resulting identifier.create
in interface ResourceSetStore
request
- The OAuth2Request.resourceSetDescription
- The resource set description being created.ServerException
- When an error occurs during creation.NotFoundException
- If the OAuth2ProviderSettings could not be found.BadRequestException
public ResourceSetDescription read(String resourceSetId, ResourceSetFilter filter) throws NotFoundException, ServerException
ResourceSetStore
ResourceSetDescription
out of the store using its OpenAM Unique ID.read
in interface ResourceSetStore
resourceSetId
- The resource set ID.filter
- A filter to apply to the read elements.ResourceSetDescription
.NotFoundException
- If the resource set is not found.ServerException
- When the resource set description cannot be loaded.public ResourceSetDescription read(String resourceSetId, String resourceOwnerId) throws NotFoundException, ServerException
ResourceSetStore
ResourceSetDescription
out of the store using its OpenAM Unique ID.
Only returns a set which is owned by the specified resource owner.read
in interface ResourceSetStore
resourceSetId
- The resource set ID.resourceOwnerId
- The ID of the resource owner.ResourceSetDescription
.NotFoundException
- If the resource set is not found.ServerException
- When the resource set description cannot be loaded.public void update(ResourceSetDescription resourceSetDescription) throws NotFoundException, ServerException
ResourceSetStore
ResourceSetDescription
instance.update
in interface ResourceSetStore
resourceSetDescription
- The resource set description being updated.ServerException
- When the ResourceSetDescription
cannot be found, or an error occurs during
update.NotFoundException
public void delete(String resourceSetId, String resourceOwnerId) throws NotFoundException, ServerException
ResourceSetStore
ResourceSetDescription
with the given ID from the store.delete
in interface ResourceSetStore
resourceSetId
- The identifier of the ResourceSetDescription
being removed.resourceOwnerId
- The resource owner id.ServerException
- When an error occurs during removal.NotFoundException
public Set<ResourceSetDescription> query(org.forgerock.util.query.QueryFilter<String> query) throws ServerException
ResourceSetStore
ResourceSetDescription
instances.query
in interface ResourceSetStore
query
- The criteria of the query.ServerException
- When an error occurs when querying the store.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.