public class ResourceService extends AbstractResourceService
AbstractResourceService.Client, AbstractResourceService.Permission, AbstractResourceService.Resource, AbstractResourceService.ResourcePermission, AbstractResourceService.Scope
auth, provider, request, resourceStore, scopeStore, ticketStore, uriInfo, user
Modifier and Type | Method and Description |
---|---|
Collection<AbstractResourceService.Permission> |
getPermissionRequests()
Returns a list of
Permission requests waiting for the user(java.lang.String) approval. |
AbstractResourceService.Resource |
getResource()
Returns a
Resource where the user(java.lang.String) is the resource owner. |
javax.ws.rs.core.Response |
revoke(List<AbstractResourceService.Permission> permissions)
Updates the permission set for a resource based on the given
permissions . |
Collection<AbstractResourceService.Permission> |
toPermissions()
Returns a list of
Permission containing the users to which the user(java.lang.String) granted access to a resource. |
javax.ws.rs.core.Response |
user(String value) |
@GET @Produces(value="application/json") public AbstractResourceService.Resource getResource()
Resource
where the user(java.lang.String)
is the resource owner.@GET @Path(value="permissions") @Produces(value="application/json") public Collection<AbstractResourceService.Permission> toPermissions()
Permission
containing the users to which the user(java.lang.String)
granted access to a resource.@GET @Path(value="user") @Produces(value="application/json") public javax.ws.rs.core.Response user(@QueryParam(value="value") String value)
@PUT @Path(value="permissions") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response revoke(List<AbstractResourceService.Permission> permissions)
permissions
.permissions
- the permissions that should be updatedResponse.Status#NO_CONTENT
response@GET @Path(value="permissions/requests") @Produces(value="application/json") public Collection<AbstractResourceService.Permission> getPermissionRequests()
Permission
requests waiting for the user(java.lang.String)
approval.Copyright © 2021 JBoss by Red Hat. All rights reserved.