Package su.onno.ui
Class RegisterListController
java.lang.Object
su.onno.ui.RegisterListController
@RestController
@RequestMapping("/api/list/registers")
public class RegisterListController
extends Object
Serves pages of register data to the virtualized
onno-list island — the register
counterpart to ListDataController. A register is the highest-row-count table in a model,
so its movement log (and, for BALANCE registers, its balances) page through here instead of
shipping whole: the island fetches one window at a time as the user scrolls.
The island scrolls registers through the same
{rows, nextCursor, hasMore, total} envelope as ListDataController — the opaque
cursor identifies the next window because a register list re-sorts freely.
The feed honors the grid's declarative filter params (eq/in/like/
prefix/ge/le, compiled by ListFilter against the register's own
columns) — the movements tab filters by period range and movement type, and any dimension or
resource column is fair game for an authored filter.
-
Constructor Summary
ConstructorsConstructorDescriptionRegisterListController(RegisterQueryService query, UiAccessService access, UiMessages messages) -
Method Summary
Modifier and TypeMethodDescriptionbalance(String name, int limit, String sort, String dir, jakarta.servlet.http.HttpServletRequest request, Principal principal) movements(String name, int limit, String sort, String dir, String from, String to, jakarta.servlet.http.HttpServletRequest request, Principal principal)
-
Constructor Details
-
RegisterListController
public RegisterListController(RegisterQueryService query, UiAccessService access, UiMessages messages)
-
-
Method Details
-
movements
@GetMapping("/{name}/movements") public Map<String,Object> movements(@PathVariable String name, @RequestParam(defaultValue="100") int limit, @RequestParam(required=false) String sort, @RequestParam(required=false) String dir, @RequestParam(required=false) String from, @RequestParam(required=false) String to, jakarta.servlet.http.HttpServletRequest request, Principal principal) -
balance
-