Search in sources :

Example 41 with WebAuthenticationCA

use of org.codelibs.fess.es.config.cbean.ca.WebAuthenticationCA in project fess by codelibs.

the class BsWebAuthenticationCA method setAuthRealm_IpRange.

public void setAuthRealm_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsWebAuthenticationCA> aggsLambda) {
    IpRangeAggregationBuilder builder = regIpRangeA(name, "authRealm");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        WebAuthenticationCA ca = new WebAuthenticationCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder) WebAuthenticationCA(org.codelibs.fess.es.config.cbean.ca.WebAuthenticationCA)

Example 42 with WebAuthenticationCA

use of org.codelibs.fess.es.config.cbean.ca.WebAuthenticationCA in project fess by codelibs.

the class BsWebAuthenticationCA method setUpdatedBy_IpRange.

public void setUpdatedBy_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsWebAuthenticationCA> aggsLambda) {
    IpRangeAggregationBuilder builder = regIpRangeA(name, "updatedBy");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        WebAuthenticationCA ca = new WebAuthenticationCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder) WebAuthenticationCA(org.codelibs.fess.es.config.cbean.ca.WebAuthenticationCA)

Example 43 with WebAuthenticationCA

use of org.codelibs.fess.es.config.cbean.ca.WebAuthenticationCA in project fess by codelibs.

the class BsWebAuthenticationCA method setUsername_Terms.

public void setUsername_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsWebAuthenticationCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(name, "username");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        WebAuthenticationCA ca = new WebAuthenticationCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : SignificantTermsAggregationBuilder(org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder) TermsAggregationBuilder(org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder) WebAuthenticationCA(org.codelibs.fess.es.config.cbean.ca.WebAuthenticationCA)

Example 44 with WebAuthenticationCA

use of org.codelibs.fess.es.config.cbean.ca.WebAuthenticationCA in project fess by codelibs.

the class BsWebAuthenticationCA method setWebConfigId_IpRange.

public void setWebConfigId_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsWebAuthenticationCA> aggsLambda) {
    IpRangeAggregationBuilder builder = regIpRangeA(name, "webConfigId");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        WebAuthenticationCA ca = new WebAuthenticationCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder) WebAuthenticationCA(org.codelibs.fess.es.config.cbean.ca.WebAuthenticationCA)

Example 45 with WebAuthenticationCA

use of org.codelibs.fess.es.config.cbean.ca.WebAuthenticationCA in project fess by codelibs.

the class BsWebAuthenticationCA method setCreatedBy_SignificantTerms.

public void setCreatedBy_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsWebAuthenticationCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "createdBy");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        WebAuthenticationCA ca = new WebAuthenticationCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : WebAuthenticationCA(org.codelibs.fess.es.config.cbean.ca.WebAuthenticationCA) SignificantTermsAggregationBuilder(org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)

Aggregations

WebAuthenticationCA (org.codelibs.fess.es.config.cbean.ca.WebAuthenticationCA)48 SignificantTermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)18 MissingAggregationBuilder (org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)12 IpRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)12 TermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder)9 HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)3 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)3 WebAuthenticationCQ (org.codelibs.fess.es.config.cbean.cq.WebAuthenticationCQ)1 BsWebAuthenticationCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsWebAuthenticationCQ)1 FilterAggregationBuilder (org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1 GlobalAggregationBuilder (org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder)1 SamplerAggregationBuilder (org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder)1