use of org.codelibs.fess.es.config.cbean.ca.FileConfigToRoleCA in project fess by codelibs.
the class BsFileConfigToRoleCA method global.
public void global(String name, ConditionOptionCall<GlobalAggregationBuilder> opLambda, OperatorCall<BsFileConfigToRoleCA> aggsLambda) {
GlobalAggregationBuilder builder = regGlobalA(name);
if (opLambda != null) {
opLambda.callback(builder);
}
if (aggsLambda != null) {
FileConfigToRoleCA ca = new FileConfigToRoleCA();
aggsLambda.callback(ca);
ca.getAggregationBuilderList().forEach(builder::subAggregation);
}
}
Aggregations