Search in sources :

Example 1 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method setPassword_IpRange.

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

Example 2 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method setCreatedTime_Range.

public void setCreatedTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsFileAuthenticationCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(name, "createdTime");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        FileAuthenticationCA ca = new FileAuthenticationCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FileAuthenticationCA(org.codelibs.fess.es.config.cbean.ca.FileAuthenticationCA) IpRangeAggregationBuilder(org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder) RangeAggregationBuilder(org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)

Example 3 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method setProtocolScheme_Terms.

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

Example 4 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method setParameters_Missing.

public void setParameters_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsFileAuthenticationCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "parameters");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        FileAuthenticationCA ca = new FileAuthenticationCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FileAuthenticationCA(org.codelibs.fess.es.config.cbean.ca.FileAuthenticationCA) MissingAggregationBuilder(org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)

Example 5 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method setPassword_Missing.

public void setPassword_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsFileAuthenticationCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "password");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        FileAuthenticationCA ca = new FileAuthenticationCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FileAuthenticationCA(org.codelibs.fess.es.config.cbean.ca.FileAuthenticationCA) MissingAggregationBuilder(org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)

Aggregations

FileAuthenticationCA (org.codelibs.fess.es.config.cbean.ca.FileAuthenticationCA)44 SignificantTermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)16 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)11 IpRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder)11 TermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder)8 HistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)3 RangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)3 FileAuthenticationCQ (org.codelibs.fess.es.config.cbean.cq.FileAuthenticationCQ)1 BsFileAuthenticationCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsFileAuthenticationCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1 GlobalAggregationBuilder (org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder)1 SamplerAggregationBuilder (org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder)1