Class UmaResourcesResource


  • @Path("/uma/resources")
    @Consumes("application/json")
    @Produces("application/json")
    public class UmaResourcesResource
    extends ConfigBaseResource
    Author:
    Mougang T.Gasmyr
    • Field Summary

      • Fields inherited from class io.jans.configapi.core.rest.BaseResource

        MISSING_ATTRIBUTE_CODE, MISSING_ATTRIBUTE_MESSAGE, TOKEN_DELIMITER
    • Constructor Detail

      • UmaResourcesResource

        public UmaResourcesResource()
    • Method Detail

      • fetchUmaResources

        @GET
        public jakarta.ws.rs.core.Response fetchUmaResources​(@DefaultValue("50") @QueryParam("limit")
                                                             int limit,
                                                             @DefaultValue("") @QueryParam("pattern")
                                                             String pattern,
                                                             @DefaultValue("1") @QueryParam("startIndex")
                                                             int startIndex,
                                                             @QueryParam("sortBy")
                                                             String sortBy,
                                                             @QueryParam("sortOrder")
                                                             String sortOrder)
      • getUmaResourceByInum

        @GET
        @Path("{id}")
        public jakarta.ws.rs.core.Response getUmaResourceByInum​(@PathParam("id") @NotNull
                                                                @NotNull String id)
      • getUmaResourceByAssociatedClient

        @GET
        @Path("/clientId/{clientId}")
        public jakarta.ws.rs.core.Response getUmaResourceByAssociatedClient​(@PathParam("clientId") @NotNull
                                                                            @NotNull String associatedClientId)
      • createUmaResource

        @POST
        public jakarta.ws.rs.core.Response createUmaResource​(@Valid
                                                             @Valid io.jans.as.model.uma.persistence.UmaResource umaResource)
      • updateUmaResource

        @PUT
        public jakarta.ws.rs.core.Response updateUmaResource​(@Valid
                                                             @Valid io.jans.as.model.uma.persistence.UmaResource resource)
      • patchResource

        @PATCH
        @Consumes("application/json-patch+json")
        @Path("{id}")
        public jakarta.ws.rs.core.Response patchResource​(@PathParam("id") @NotNull
                                                         @NotNull String id,
                                                         @NotNull
                                                         @NotNull String pathString)
                                                  throws com.github.fge.jsonpatch.JsonPatchException,
                                                         IOException
        Throws:
        com.github.fge.jsonpatch.JsonPatchException
        IOException
      • deleteUmaResource

        @DELETE
        @Path("{id}")
        public jakarta.ws.rs.core.Response deleteUmaResource​(@PathParam("id") @NotNull
                                                             @NotNull String id)