Class ResourceService

    • Constructor Detail

      • ResourceService

        public ResourceService​(org.keycloak.models.KeycloakSession session,
                               org.keycloak.authorization.model.ResourceServer resourceServer,
                               org.keycloak.authorization.identity.Identity identity,
                               ResourceSetService resourceManager)
    • Method Detail

      • create

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response create​(UmaResourceRepresentation resource)
      • update

        @Path("{id}")
        @PUT
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response update​(@PathParam("id")
                                                String id,
                                                org.keycloak.representations.idm.authorization.ResourceRepresentation resource)
      • delete

        @Path("/{id}")
        @DELETE
        public javax.ws.rs.core.Response delete​(@PathParam("id")
                                                String id)
      • findById

        @Path("/{id}")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response findById​(@PathParam("id")
                                                  String id)
      • find

        @GET
        @Produces("application/json")
        public javax.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)