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

        FIELD_VALUE_SEPARATOR, 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("0") @QueryParam("startIndex")
                                                               int startIndex,
                                                               @DefaultValue("inum") @QueryParam("sortBy")
                                                               String sortBy,
                                                               @DefaultValue("ascending") @QueryParam("sortOrder")
                                                               String sortOrder,
                                                               @DefaultValue("") @QueryParam("fieldValuePair")
                                                               String fieldValuePair)
      • 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("0") @QueryParam("startIndex")
                                                                         int startIndex,
                                                                         @DefaultValue("inum") @QueryParam("sortBy")
                                                                         String sortBy,
                                                                         @DefaultValue("ascending") @QueryParam("sortOrder")
                                                                         String sortOrder,
                                                                         @DefaultValue("") @QueryParam("fieldValuePair")
                                                                         String fieldValuePair)
      • 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,
                                                        @DefaultValue("false") @QueryParam("addScriptTemplate")
                                                        boolean addScriptTemplate)
      • 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)
      • patchScript

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

        @GET
        @Path("/types")
        public jakarta.ws.rs.core.Response getCustomScriptTypes()
      • getCustomScriptTypesDetails

        @GET
        @Path("/script-types")
        public jakarta.ws.rs.core.Response getCustomScriptTypesDetails()