Class UmaResourcesResource

java.lang.Object
io.jans.configapi.core.rest.BaseResource
io.jans.configapi.rest.resource.auth.ConfigBaseResource
io.jans.configapi.rest.resource.auth.UmaResourcesResource

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.Response
    createUmaResource(@Valid io.jans.as.model.uma.persistence.UmaResource umaResource)
     
    jakarta.ws.rs.core.Response
     
    jakarta.ws.rs.core.Response
    fetchUmaResources(int limit, String pattern, int startIndex, String sortBy, String sortOrder, String fieldValuePair)
     
    jakarta.ws.rs.core.Response
    getUmaResourceByAssociatedClient(@NotNull String associatedClientId)
     
    jakarta.ws.rs.core.Response
     
    jakarta.ws.rs.core.Response
    patchResource(@NotNull String id, @NotNull String pathString)
     
    jakarta.ws.rs.core.Response
    updateUmaResource(@Valid io.jans.as.model.uma.persistence.UmaResource resource)
     

    Methods inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource

    getMaxCount

    Methods inherited from class io.jans.configapi.core.rest.BaseResource

    checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getNotFoundError, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError, throwNotFoundException, throwNotFoundException

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UmaResourcesResource

      public UmaResourcesResource()
  • Method Details

    • fetchUmaResources

      @GET public jakarta.ws.rs.core.Response fetchUmaResources(@DefaultValue("50") @QueryParam("limit") int limit, @DefaultValue("") @QueryParam("pattern") String pattern, @DefaultValue("0") @QueryParam("startIndex") int startIndex, @DefaultValue("inum") @QueryParam("sortBy") String sortBy, @DefaultValue("ascending") @QueryParam("sortOrder") String sortOrder, @DefaultValue("") @QueryParam("fieldValuePair") String fieldValuePair)
    • 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)