Class CustomScriptResource


  • @Path("/config/scripts")
    @Consumes("application/json")
    @Produces("application/json")
    public class CustomScriptResource
    extends ConfigBaseResource
    • Field Summary

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

        MISSING_ATTRIBUTE_CODE, MISSING_ATTRIBUTE_MESSAGE, TOKEN_DELIMITER
    • Constructor Detail

      • CustomScriptResource

        public CustomScriptResource()
    • Method Detail

      • getAllCustomScripts

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

        @GET
        @Path("/name/{name}")
        public jakarta.ws.rs.core.Response getCustomScriptByName​(@PathParam("name") @NotNull
                                                                 @NotNull String name)
      • getCustomScriptsByTypePattern

        @GET
        @Path("/type/{type}")
        public jakarta.ws.rs.core.Response getCustomScriptsByTypePattern​(@PathParam("type") @NotNull
                                                                         @NotNull String type,
                                                                         @DefaultValue("50") @QueryParam("limit")
                                                                         int limit,
                                                                         @DefaultValue("") @QueryParam("pattern")
                                                                         String pattern,
                                                                         @DefaultValue("1") @QueryParam("startIndex")
                                                                         int startIndex,
                                                                         @DefaultValue("inum") @QueryParam("sortBy")
                                                                         String sortBy,
                                                                         @DefaultValue("ascending") @QueryParam("sortOrder")
                                                                         String sortOrder)
      • getCustomScriptByInum

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

        @POST
        public jakarta.ws.rs.core.Response createScript​(@Valid
                                                        @Valid io.jans.model.custom.script.model.CustomScript customScript)
      • updateScript

        @PUT
        public jakarta.ws.rs.core.Response updateScript​(@Valid @NotNull
                                                        @Valid @NotNull io.jans.model.custom.script.model.CustomScript customScript)
      • deleteScript

        @DELETE
        @Path("{inum}")
        public jakarta.ws.rs.core.Response deleteScript​(@PathParam("inum") @NotNull
                                                        @NotNull String inum)
      • 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