Class AttributesResource


  • @Path("/attributes")
    @Consumes("application/json")
    @Produces("application/json")
    public class AttributesResource
    extends ConfigBaseResource
    Author:
    Mougang T.Gasmyr
    • Constructor Detail

      • AttributesResource

        public AttributesResource()
    • Method Detail

      • getAttributes

        @GET
        public jakarta.ws.rs.core.Response getAttributes​(@DefaultValue("50") @QueryParam("limit")
                                                         int limit,
                                                         @DefaultValue("") @QueryParam("pattern")
                                                         String pattern,
                                                         @DefaultValue("all") @QueryParam("status")
                                                         String status)
                                                  throws Exception
        Throws:
        Exception
      • getAttributeByInum

        @GET
        @Path("{inum}")
        public jakarta.ws.rs.core.Response getAttributeByInum​(@PathParam("inum") @NotNull
                                                              @NotNull String inum)
      • createAttribute

        @POST
        public jakarta.ws.rs.core.Response createAttribute​(@Valid
                                                           @Valid io.jans.model.GluuAttribute attribute)
      • updateAttribute

        @PUT
        public jakarta.ws.rs.core.Response updateAttribute​(@Valid
                                                           @Valid io.jans.model.GluuAttribute attribute)
      • patchAtribute

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

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