Class AggregatableDelegate<K>
java.lang.Object
io.jmix.flowui.data.aggregation.impl.AggregatableDelegate<K>
@Component("flowui_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> itemsIds) aggregateValues
(AggregationInfo[] aggregationInfos, Collection<K> itemIds) protected Map<AggregationInfo,
String> doAggregation
(AggregationInfo[] aggregationInfos, Collection<K> itemIds) 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> itemsIds) -
aggregateValues
public Map<AggregationInfo,Object> aggregateValues(@Nullable AggregationInfo[] aggregationInfos, Collection<K> itemIds) -
doAggregation
protected Map<AggregationInfo,String> doAggregation(AggregationInfo[] aggregationInfos, Collection<K> itemIds) -
doPropertyAggregation
@Nullable protected Object doPropertyAggregation(AggregationInfo aggregationInfo, Collection<K> itemIds) -
valuesByProperty
-