Search in sources :

Example 21 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method setUsername_IpRange.

public void setUsername_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsFileAuthenticationCA> aggsLambda) {
    IpRangeAggregationBuilder builder = regIpRangeA(name, "username");
    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 22 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method filter.

// ===================================================================================
//                                                                     Aggregation Set
//                                                                           =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsFileAuthenticationCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsFileAuthenticationCA> aggsLambda) {
    FileAuthenticationCQ cq = new FileAuthenticationCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        FileAuthenticationCA ca = new FileAuthenticationCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : BsFileAuthenticationCQ(org.codelibs.fess.es.config.cbean.cq.bs.BsFileAuthenticationCQ) FileAuthenticationCQ(org.codelibs.fess.es.config.cbean.cq.FileAuthenticationCQ) FileAuthenticationCA(org.codelibs.fess.es.config.cbean.ca.FileAuthenticationCA) FilterAggregationBuilder(org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)

Example 23 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method setUpdatedTime_Missing.

public void setUpdatedTime_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsFileAuthenticationCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "updatedTime");
    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 24 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method setProtocolScheme_Missing.

public void setProtocolScheme_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsFileAuthenticationCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(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 : FileAuthenticationCA(org.codelibs.fess.es.config.cbean.ca.FileAuthenticationCA) MissingAggregationBuilder(org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)

Example 25 with FileAuthenticationCA

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

the class BsFileAuthenticationCA method setPassword_SignificantTerms.

public void setPassword_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsFileAuthenticationCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(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) SignificantTermsAggregationBuilder(org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)

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