Package com.onec.ui
Class DocumentQueryService
java.lang.Object
com.onec.ui.DocumentQueryService
Read-side queries for documents (list with optional date range; detail with
tabular sections), shared by the REST API and the DivKit emitters. Pure data
access — access control stays with the callers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregate(DocumentDescriptor desc, String metric, String field, String filter) A single aggregate value for a count/metric card —countof rows, orsum|avg|min|maxof one numeric column — restricted to live records and narrowed by an optional safefilterpredicate (seeWidgetFilter).longcount(DocumentDescriptor desc) longcount(DocumentDescriptor desc, String search, String from, String to, List<String> eq, List<String> in, List<String> like, List<String> prefix, List<String> ge, List<String> le) Total live rows matching the search (+ optional date range and declarative filters).The document descriptor for a domain class, ornullif it isn't a registered document.get(DocumentDescriptor desc, UUID id) list(DocumentDescriptor desc, String from, String to) page(DocumentDescriptor desc, int offset, int limit, String sortColumn, boolean descending, String search, String from, String to, List<String> eq, List<String> in, List<String> like, List<String> prefix, List<String> ge, List<String> le) One page of a document list — server-side sorted, filtered, optionally date-ranged.search(DocumentDescriptor desc, String query, int limit) Capped, case-insensitive typeahead by document number — the document-ref-picker counterpart of the catalog search.Columns that may be sorted on: the system columns + every attribute column.
-
Constructor Details
-
DocumentQueryService
-
-
Method Details
-
require
-
forClass
The document descriptor for a domain class, ornullif it isn't a registered document. -
list
-
search
Capped, case-insensitive typeahead by document number — the document-ref-picker counterpart of the catalog search. Live records only, newest first. -
count
-
page
public List<Map<String,Object>> page(DocumentDescriptor desc, int offset, int limit, String sortColumn, boolean descending, String search, String from, String to, List<String> eq, List<String> in, List<String> like, List<String> prefix, List<String> ge, List<String> le) One page of a document list — server-side sorted, filtered, optionally date-ranged. The engine behind the virtualized/paged list grid.sortColumnis validated against the entity's columns;searchmatches case-insensitively across the text columns. -
count
public long count(DocumentDescriptor desc, String search, String from, String to, List<String> eq, List<String> in, List<String> like, List<String> prefix, List<String> ge, List<String> le) Total live rows matching the search (+ optional date range and declarative filters). -
sortableColumns
Columns that may be sorted on: the system columns + every attribute column. -
aggregate
A single aggregate value for a count/metric card —countof rows, orsum|avg|min|maxof one numeric column — restricted to live records and narrowed by an optional safefilterpredicate (seeWidgetFilter). -
get
-