Interface UmaResourceService


  • public interface UmaResourceService
    REST WS UMA resource set description API
    Author:
    Yuriy Zabrovarnyy
    • Method Detail

      • addResource

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        io.jans.as.model.uma.UmaResourceResponse addResource​(@HeaderParam("Authorization")
                                                             String authorization,
                                                             io.jans.as.model.uma.UmaResource resource)
      • updateResource

        @PUT
        @Path("{rsid}")
        @Consumes("application/json")
        @Produces("application/json")
        io.jans.as.model.uma.UmaResourceResponse updateResource​(@HeaderParam("Authorization")
                                                                String authorization,
                                                                @PathParam("rsid")
                                                                String rsid,
                                                                io.jans.as.model.uma.UmaResource resource)
      • getResource

        @GET
        @Path("{rsid}")
        @Produces("application/json")
        io.jans.as.model.uma.UmaResourceWithId getResource​(@HeaderParam("Authorization")
                                                           String authorization,
                                                           @PathParam("rsid")
                                                           String rsid)
      • getResourceList

        @GET
        @Produces("application/json")
        List<String> getResourceList​(@HeaderParam("Authorization")
                                     String authorization,
                                     @QueryParam("scope")
                                     String scope)
        Gets resources. ATTENTION: "scope" is parameter added by gluu to have additional filtering. There is no such parameter in UMA specification.
        Parameters:
        authorization - authorization
        scope - scope of resource set for additional filtering, can blank string.
        Returns:
        resource set ids.
      • deleteResource

        @DELETE
        @Path("{rsid}")
        void deleteResource​(@HeaderParam("Authorization")
                            String authorization,
                            @PathParam("rsid")
                            String rsid)