Class ListController

java.lang.Object
com.loomcache.springboot.controller.ListController

@RestController @Conditional(LoomServerEnabledCondition.class) @RequestMapping("/api/list") public class ListController extends Object
REST controller for the default DistributedList.
  • Constructor Details

  • Method Details

    • add

      @RolesAllowed({"ADMIN","USER"}) @PostMapping public org.springframework.http.ResponseEntity<Map<String,Object>> add(@RequestBody @Nullable String element)
    • insert

      @RolesAllowed({"ADMIN","USER"}) @PostMapping("/{index}") public org.springframework.http.ResponseEntity<Map<String,Object>> insert(@PathVariable int index, @RequestBody @Nullable String element)
    • get

      @RolesAllowed({"ADMIN","USER","READONLY"}) @GetMapping("/{index}") public org.springframework.http.ResponseEntity<Map<String,Object>> get(@PathVariable int index)
    • set

      @RolesAllowed({"ADMIN","USER"}) @PutMapping("/{index}") public org.springframework.http.ResponseEntity<Map<String,Object>> set(@PathVariable int index, @RequestBody @Nullable String element)
    • remove

      @RolesAllowed({"ADMIN","USER"}) @DeleteMapping("/{index}") public org.springframework.http.ResponseEntity<Map<String,Object>> remove(@PathVariable int index)
    • page

      @RolesAllowed({"ADMIN","USER","READONLY"}) @GetMapping public org.springframework.http.ResponseEntity<Map<String,Object>> page(@RequestParam(defaultValue="0") int offset, @RequestParam(defaultValue="100") int limit)
    • size

      @RolesAllowed({"ADMIN","USER","READONLY"}) @GetMapping("/size") public org.springframework.http.ResponseEntity<Map<String,Object>> size()
    • clear

      @RolesAllowed("ADMIN") @DeleteMapping public org.springframework.http.ResponseEntity<Void> clear()