Class ResourcesService
java.lang.Object
org.keycloak.services.resources.account.resources.AbstractResourceService
org.keycloak.services.resources.account.resources.ResourcesService
- 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
ConstructorDescriptionResourcesService
(KeycloakSession session, UserModel user, Auth auth, HttpRequest request) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
getResource
(String id) jakarta.ws.rs.core.Response
getResources
(String name, Integer first, Integer max) Returns a list ofAbstractResourceService.Resource
where theAbstractResourceService.user
is the resource owner.jakarta.ws.rs.core.Response
getSharedWithMe
(String name, Integer first, Integer max) Returns a list ofAbstractResourceService.Resource
shared with theAbstractResourceService.user
jakarta.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 Details
-
ResourcesService
-
-
Method Details
-
getResources
@GET @Produces("application/json") public jakarta.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
-
getPendingRequests
@GET @Path("pending-requests") @Produces("application/json") public jakarta.ws.rs.core.Response getPendingRequests() -
getResource
-