Class ResourceService
java.lang.Object
org.keycloak.authorization.protection.resource.ResourceService
- Author:
- Pedro Igor
-
Constructor Summary
ConstructorsConstructorDescriptionResourceService(KeycloakSession session, ResourceServer resourceServer, Identity identity, ResourceSetService resourceManager) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsecreate(UmaResourceRepresentation resource) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsefind(String id, String name, String uri, String owner, String type, String scope, Boolean matchingUri, Boolean exactName, Boolean deep, Integer firstResult, Integer maxResult) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responseupdate(String id, ResourceRepresentation resource)
-
Constructor Details
-
ResourceService
public ResourceService(KeycloakSession session, ResourceServer resourceServer, Identity identity, ResourceSetService resourceManager)
-
-
Method Details
-
create
@POST @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response create(UmaResourceRepresentation resource) -
update
@Path("{id}") @PUT @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response update(@PathParam("id") String id, ResourceRepresentation resource) -
delete
-
findById
@Path("/{id}") @GET @Produces("application/json") public jakarta.ws.rs.core.Response findById(@PathParam("id") String id) -
find
@GET @Produces("application/json") public jakarta.ws.rs.core.Response find(@QueryParam("_id") String id, @QueryParam("name") String name, @QueryParam("uri") String uri, @QueryParam("owner") String owner, @QueryParam("type") String type, @QueryParam("scope") String scope, @QueryParam("matchingUri") Boolean matchingUri, @QueryParam("exactName") Boolean exactName, @QueryParam("deep") Boolean deep, @QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResult)
-