public class ResourceSetService extends Object
Constructor and Description |
---|
ResourceSetService(ResourceSetStoreFactory resourceSetStoreFactory,
UmaPolicyService policyService,
CoreWrapper coreWrapper,
UmaProviderSettingsFactory umaProviderSettingsFactory)
Creates an instance of a ResourceSetService.
|
Modifier and Type | Method and Description |
---|---|
protected Subject |
createSubject(String username,
String realm) |
Collection<ResourceSetDescription> |
filterPolicies(Set<ResourceSetDescription> resourceSets,
org.forgerock.openam.uma.rest.ResourceSetWithPolicyQuery query)
Filters the policies based on the provided query.
|
boolean |
isSharedWith(ResourceSetDescription resourceSet,
String resourceUserId,
String realm)
Checks whether a ResourceSet is accessible by a user.
|
@Inject public ResourceSetService(ResourceSetStoreFactory resourceSetStoreFactory, UmaPolicyService policyService, CoreWrapper coreWrapper, UmaProviderSettingsFactory umaProviderSettingsFactory)
resourceSetStoreFactory
- An instance of the ResourceSetStoreFactory
.policyService
- An instance of the UmaPolicyService.public Collection<ResourceSetDescription> filterPolicies(Set<ResourceSetDescription> resourceSets, org.forgerock.openam.uma.rest.ResourceSetWithPolicyQuery query)
resourceSets
- The ResourceSets to filter.query
- The filter to use.public boolean isSharedWith(ResourceSetDescription resourceSet, String resourceUserId, String realm) throws org.forgerock.json.resource.InternalServerErrorException
resourceSet
- The resource set to check.resourceUserId
- The id of the user to check.realm
- The realm to check in.org.forgerock.json.resource.InternalServerErrorException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.