Class ResourcesService
- java.lang.Object
-
- org.keycloak.services.resources.account.resources.AbstractResourceService
-
- org.keycloak.services.resources.account.resources.ResourcesService
-
public class ResourcesService extends AbstractResourceService
- Author:
- Pedro Igor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.keycloak.services.resources.account.resources.AbstractResourceService
AbstractResourceService.Client, AbstractResourceService.Permission, AbstractResourceService.Resource, AbstractResourceService.ResourcePermission, AbstractResourceService.Scope
-
-
Field Summary
-
Fields inherited from class org.keycloak.services.resources.account.resources.AbstractResourceService
auth, provider, request, resourceStore, scopeStore, ticketStore, uriInfo, user
-
-
Constructor Summary
Constructors Constructor Description ResourcesService(KeycloakSession session, UserModel user, Auth auth, HttpRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 ofAbstractResourceService.Resource
where theAbstractResourceService.user
is the resource owner.javax.ws.rs.core.Response
getSharedWithMe(String name, Integer first, Integer max)
Returns a list ofAbstractResourceService.Resource
shared with theAbstractResourceService.user
javax.ws.rs.core.Response
getSharedWithOthers(Integer first, Integer max)
Returns a list ofAbstractResourceService.Resource
where theAbstractResourceService.user
is the resource owner and the resource is shared with other users.
-
-
-
Constructor Detail
-
ResourcesService
public ResourcesService(KeycloakSession session, UserModel user, Auth auth, HttpRequest request)
-
-
Method Detail
-
getResources
@GET @Produces("application/json") public javax.ws.rs.core.Response getResources(@QueryParam("name") String name, @QueryParam("first") Integer first, @QueryParam("max") Integer max)
Returns a list ofAbstractResourceService.Resource
where theAbstractResourceService.user
is the resource owner.- Parameters:
first
- the first resultmax
- the max result- Returns:
- a list of
AbstractResourceService.Resource
where theAbstractResourceService.user
is the resource owner
-
getSharedWithMe
@GET @Path("shared-with-me") @Produces("application/json") public javax.ws.rs.core.Response getSharedWithMe(@QueryParam("name") String name, @QueryParam("first") Integer first, @QueryParam("max") Integer max)
Returns a list ofAbstractResourceService.Resource
shared with theAbstractResourceService.user
- Parameters:
first
- the first resultmax
- the max result- Returns:
- a list of
AbstractResourceService.Resource
shared with theAbstractResourceService.user
-
getSharedWithOthers
@GET @Path("shared-with-others") @Produces("application/json") public javax.ws.rs.core.Response getSharedWithOthers(@QueryParam("first") Integer first, @QueryParam("max") Integer max)
Returns a list ofAbstractResourceService.Resource
where theAbstractResourceService.user
is the resource owner and the resource is shared with other users.- Parameters:
first
- the first resultmax
- the max result- Returns:
- a list of
AbstractResourceService.Resource
where theAbstractResourceService.user
is the resource owner and the resource is * shared with other users
-
getPendingRequests
@GET @Path("pending-requests") @Produces("application/json") public javax.ws.rs.core.Response getPendingRequests()
-
-