Package com.onec.ui
Class RegisterQueryService
java.lang.Object
com.onec.ui.RegisterQueryService
Read-side queries for accumulation registers (movements, balance, turnover),
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 TypeMethodDescriptionbalance(AccumulationRegisterDescriptor desc, Map<String, String> filters) movements(AccumulationRegisterDescriptor desc, String from, String to) total(AccumulationRegisterDescriptor desc, String resourceField, String from, String to, String filter) A single summed resource across a register — the KPI/metric-card counterpart toturnover(com.onec.metadata.AccumulationRegisterDescriptor, java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>).
-
Constructor Details
-
RegisterQueryService
-
-
Method Details
-
require
-
movements
-
balance
-
turnover
-
total
public BigDecimal total(AccumulationRegisterDescriptor desc, String resourceField, String from, String to, String filter) A single summed resource across a register — the KPI/metric-card counterpart toturnover(com.onec.metadata.AccumulationRegisterDescriptor, java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>). Restricted to active movements, narrowed by an optional period window and a safefilterpredicate (seeWidgetFilter). The resource field must be one of the register's resources, so it can never carry arbitrary SQL.
-