Class AggregatableDelegate<K>
java.lang.Object
io.jmix.ui.component.data.aggregation.impl.AggregatableDelegate<K>
@Component("ui_AggregatableDelegate")
@Scope("prototype")
public class AggregatableDelegate<K>
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected Aggregations
protected CurrentAuthentication
protected DatatypeRegistry
protected BiFunction<K,
MetaPropertyPath, Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaggregate
(AggregationInfo[] aggregationInfos, Collection<K> itemIds) aggregateValues
(AggregationInfo[] aggregationInfos, Collection<K> itemIds) protected Map<AggregationInfo,
String> doAggregation
(Collection<K> itemIds, AggregationInfo[] aggregationInfos) protected Object
doPropertyAggregation
(AggregationInfo aggregationInfo, Collection<K> itemIds) void
setAggregations
(Aggregations aggregations) void
setCurrentAuthentication
(CurrentAuthentication currentAuthentication) void
setDatatypeRegistry
(DatatypeRegistry datatypeRegistry) void
setItemProvider
(Function<K, Object> itemProvider) void
setItemValueProvider
(BiFunction<K, MetaPropertyPath, Object> itemValueProvider) protected List
valuesByProperty
(MetaPropertyPath propertyPath, Collection<K> itemIds)
-
Field Details
-
aggregations
-
currentAuthentication
-
datatypeRegistry
-
itemProvider
-
itemValueProvider
-
-
Constructor Details
-
AggregatableDelegate
public AggregatableDelegate()
-
-
Method Details
-
setAggregations
-
setCurrentAuthentication
-
setDatatypeRegistry
-
setItemProvider
-
setItemValueProvider
-
aggregate
public Map<AggregationInfo,String> aggregate(@Nullable AggregationInfo[] aggregationInfos, Collection<K> itemIds) -
doAggregation
protected Map<AggregationInfo,String> doAggregation(Collection<K> itemIds, AggregationInfo[] aggregationInfos) -
aggregateValues
public Map<AggregationInfo,Object> aggregateValues(@Nullable AggregationInfo[] aggregationInfos, Collection<K> itemIds) -
doPropertyAggregation
-
valuesByProperty
-