public class ResourcesService extends AbstractResourceService
AbstractResourceService.Client, AbstractResourceService.Permission, AbstractResourceService.Resource, AbstractResourceService.ResourcePermission, AbstractResourceService.Scopeauth, provider, request, resourceStore, scopeStore, ticketStore, uriInfo, user| Constructor and Description |
|---|
ResourcesService(KeycloakSession session,
UserModel user,
Auth auth,
org.jboss.resteasy.spi.HttpRequest request) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getPendingRequests() |
Object |
getResource(String id) |
javax.ws.rs.core.Response |
getResources(String name,
Integer first,
Integer max)
Returns a list of
Resource where the AbstractResourceService.user is the resource owner. |
javax.ws.rs.core.Response |
getSharedWithMe(String name,
Integer first,
Integer max)
Returns a list of
Resource shared with the AbstractResourceService.user |
javax.ws.rs.core.Response |
getSharedWithOthers(Integer first,
Integer max)
Returns a list of
Resource where the AbstractResourceService.user is the resource owner and the resource is
shared with other users. |
public ResourcesService(KeycloakSession session, UserModel user, Auth auth, org.jboss.resteasy.spi.HttpRequest request)
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getResources(@QueryParam(value="name")
String name,
@QueryParam(value="first")
Integer first,
@QueryParam(value="max")
Integer max)
Resource where the AbstractResourceService.user is the resource owner.first - the first resultmax - the max resultResource where the AbstractResourceService.user is the resource owner@GET
@Path(value="shared-with-me")
@Produces(value="application/json")
public javax.ws.rs.core.Response getSharedWithMe(@QueryParam(value="name")
String name,
@QueryParam(value="first")
Integer first,
@QueryParam(value="max")
Integer max)
Resource shared with the AbstractResourceService.userfirst - the first resultmax - the max resultResource shared with the AbstractResourceService.user@GET
@Path(value="shared-with-others")
@Produces(value="application/json")
public javax.ws.rs.core.Response getSharedWithOthers(@QueryParam(value="first")
Integer first,
@QueryParam(value="max")
Integer max)
Resource where the AbstractResourceService.user is the resource owner and the resource is
shared with other users.first - the first resultmax - the max resultResource where the AbstractResourceService.user is the resource owner and the resource is
* shared with other users@GET @Path(value="pending-requests") @Produces(value="application/json") public javax.ws.rs.core.Response getPendingRequests()
Copyright © 2021 JBoss by Red Hat. All rights reserved.