Class GlobalVarController


  • @RestController
    @CrossOrigin(origins="*")
    @RequestMapping("/api/ui/globalvar/v1")
    public class GlobalVarController
    extends Object
    • Method Detail

      • list

        @PreAuthorize("hasAuthority(\'GLOBAL_VAR_READ\')")
        @GetMapping(path="",
                    produces="application/json")
        public Set<String> list()
      • save

        @PreAuthorize("hasAuthority(\'GLOBAL_VAR_WRITE\')")
        @PostMapping(path="/{fileName}",
                     consumes="application/json",
                     produces="application/json")
        public void save​(@PathVariable("fileName")
                         String fileName,
                         @RequestBody
                         GlobalVarController.TextDto textContent)
      • delete

        @PreAuthorize("hasAuthority(\'GLOBAL_VAR_WRITE\')")
        @DeleteMapping(path="/{fileName}")
        public void delete​(@PathVariable("fileName")
                           String fileName)
      • getFile

        @PreAuthorize("hasAuthority(\'GLOBAL_VAR_READ\')")
        @GetMapping(path="/{fileName}",
                    produces="application/json")
        public GlobalVarController.TextDto getFile​(@PathVariable("fileName")
                                                   String fileName)