Examples of excludes()


Examples of com.director.core.annotation.DirectResult.excludes()

         if(directMethod.hasResultAnnotation()) {
            DirectResult directResult = directMethod.getResultAnnotation();
            for(Pattern pattern : directResult.includes()) {
               gsonBuilder.registerTypeAdapter(pattern.type(), new IncludeFieldsTypeAdapter(pattern.fields()));
            }
            for(Pattern pattern : directResult.excludes()) {
               gsonBuilder.registerTypeAdapter(pattern.type(), new ExcludeFieldsTypeAdapter(pattern.fields()));
            }
            for(Serializer serializer : directResult.serializers()) {
               if(serializer.hierarchy()) {
                  gsonBuilder.registerTypeHierarchyAdapter(serializer.type(), serializer.impl().newInstance());
View Full Code Here

Examples of org.elasticsearch.search.fetch.source.FetchSourceContext.excludes()

                    assertThat(fetchSource.includes(), is(new String[]{"field3", "field4"}));
                    break;
                case "3" :
                    assertThat(fetchSource.fetchSource(), is(true));
                    assertThat(fetchSource.includes(), is(new String[]{"user"}));
                    assertThat(fetchSource.excludes(), is(new String[]{"user.location"}));
                    break;
                default:
                    fail("item with id: " + item.id() + " is not 1, 2 or 3");
                    break;
            }
View Full Code Here

Examples of org.elasticsearch.search.fetch.source.FetchSourceContext.excludes()

            request.fetchSourceContext(new FetchSourceContext(includes, excludes));
        }
        else {
            context.fetchSource(true);
            context.includes(includes);
            context.excludes(excludes);
        }
        return this;
    }

    /**
 
View Full Code Here

Examples of org.elasticsearch.search.fetch.source.FetchSourceContext.excludes()

            request.fetchSourceContext(new FetchSourceContext(includes, excludes));
        }
        else {
            context.fetchSource(true);
            context.includes(includes);
            context.excludes(excludes);
        }
        return this;
    }

    /**
 
View Full Code Here

Examples of org.elasticsearch.search.fetch.source.FetchSourceContext.excludes()

                builder.field("_routing", this.routing());
            }
            if (this.fetchSourceContext() != null) {
                FetchSourceContext source = this.fetchSourceContext();
                String[] includes = source.includes();
                String[] excludes = source.excludes();
                if (includes.length == 0 && excludes.length == 0) {
                    builder.field("_source", source.fetchSource());
                } else if (includes.length > 0 && excludes.length == 0) {
                    builder.array("_source", source.includes());
                } else if (excludes.length > 0) {
View Full Code Here

Examples of org.elasticsearch.search.fetch.source.FetchSourceContext.excludes()

                } else if (excludes.length > 0) {
                    builder.startObject("_source");
                    if (includes.length > 0) {
                        builder.array("includes", source.includes());
                    }
                    builder.array("excludes", source.excludes());
                    builder.endObject();
                }
            }
            if (this.version() != Versions.MATCH_ANY) {
                builder.field("_version", this.version());
View Full Code Here

Examples of org.grails.cxf.utils.GrailsCxfEndpoint.excludes()

        List<String> automaticExcludes = buildAutomaticExcludes();

        aggExcludes.addAll(groovyExcludes);
        aggExcludes.addAll(automaticExcludes);

        if(annotation != null && annotation.excludes().length > 0) {
            buildExclusionSetFromAnnotation(aggExcludes, annotation);
        } else {
            buildExclusionSetFromProperty(aggExcludes);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.