Examples of AttributeFilter


Examples of it.geosolutions.geostore.services.dto.search.AttributeFilter

        }
    }


    private static <A extends AttributeDef> AttributeFilter createAttributeFilter(A att, String value) {
        return new AttributeFilter(att.getName(), value, att.getDataType(), SearchOperator.EQUAL_TO);
    }
View Full Code Here

Examples of it.geosolutions.geostore.services.dto.search.AttributeFilter

    private static <A extends AttributeDef> AttributeFilter createAttributeFilter(A att, String value) {
        return new AttributeFilter(att.getName(), value, att.getDataType(), SearchOperator.EQUAL_TO);
    }

    private static <R extends ReverseAttributeDef> AttributeFilter createAttributeFilter(R att, String value) {
        return new AttributeFilter(value, att.getName(), att.getType(), SearchOperator.EQUAL_TO);
    }
View Full Code Here

Examples of org.eclipse.sisu.peaberry.AttributeFilter

   *
   * @param sampleAttributes sample attributes
   * @return sample attribute filter
   */
  public static AttributeFilter attributes(final Map<String, ?> sampleAttributes) {
    return new AttributeFilter() {
      public boolean matches(final Map<String, ?> attributes) {
        return null != attributes && attributes.entrySet().containsAll(sampleAttributes.entrySet());
      }
    };
  }
View Full Code Here

Examples of org.eclipse.sisu.peaberry.AttributeFilter

  ImportDecorator<? super T> getDecorator(final Injector injector) {
    return decorator.get(injector);
  }

  private AttributeFilter getFilter(final Injector injector) {
    final AttributeFilter attributeFilter = filter.get(injector);
    if (null == attributeFilter) {
      // no filter, try using the current attributes as a sample filter
      final Map<String, ?> sampleAttributes = attributes.get(injector);
      if (null != sampleAttributes && !sampleAttributes.isEmpty()) {
        filter = newSetting(Filters.attributes(sampleAttributes));
View Full Code Here

Examples of org.eclipse.sisu.peaberry.AttributeFilter

    return attributeFilter;
  }

  Iterable<Import<T>> getImports(final Injector injector, final boolean isConcurrent) {
    final ServiceRegistry serviceRegistry = registry.get(injector);
    final AttributeFilter attributeFilter = getFilter(injector);

    final Iterable<Import<T>> imports = serviceRegistry.lookup(clazz, attributeFilter);

    // enable outjection, but only if it's going to a different watcher
    ServiceWatcher<? super T> serviceWatcher = watcher.get(injector);
View Full Code Here

Examples of org.jitterbit.integration.ldap.structure.AttributeFilter

            CROM root = new CROM(null, true, "LDAP", 0, CromType.CROM_t_Ldap);
            root.addType(CROM.CROM_t_Element | CROM.CROM_t_Root);
            LdapToCromConverter converter = isTarget ? LdapToCromConverterFactory.newTargetStructureConverter()
                            : LdapToCromConverterFactory.newSourceStructureConverter();
            converter.setAttributeOrder(new NameSorter<LdapStructureAttribute>(true));
            AttributeFilter filter = new StructureAttributeFilter(structure);
            for (LdapStructureEntryNode node : getEntryNodes(structure, classes)) {
                CROM crom = converter.toCrom(node, filter);
                root.addChild(crom);
            }
            return root;
View Full Code Here

Examples of org.vaadin.teemu.clara.inflater.filter.AttributeFilter

    }

    @Test
    public void inflate_addAttributeFilter_valueFilteredCorrectly() {
        LayoutInflater filteringInflater = new LayoutInflater();
        AttributeFilter filter = new AttributeFilter() {

            @Override
            public void filter(AttributeContext attributeContext) {
                if (attributeContext.getValue().getClass() == String.class) {
                    String value = (String) attributeContext.getValue();
View Full Code Here

Examples of org.vaadin.teemu.clara.inflater.filter.AttributeFilter

    private InputStream getXml(String fileName) {
        return getClass().getClassLoader().getResourceAsStream(fileName);
    }

    public AttributeFilter getFilter() {
        return new AttributeFilter() {

            @Override
            public void filter(AttributeContext attributeContext) {
                if (attributeContext.getValue().getClass() == String.class) {
                    String value = (String) attributeContext.getValue();
View Full Code Here

Examples of org.vaadin.teemu.clara.inflater.filter.AttributeFilter

            }
        };
    }

    public AttributeFilter getSecondFilter() {
        return new AttributeFilter() {

            @Override
            public void filter(AttributeContext attributeContext) {
                if (attributeContext.getValue().getClass() == String.class) {
                    String value = (String) attributeContext.getValue();
View Full Code Here

Examples of org.vaadin.teemu.clara.inflater.filter.AttributeFilter

        if (attributeFilters.isEmpty()) {
            methodToInvoke.invoke(obj, args);
        } else {
            final LinkedList<AttributeFilter> filtersCopy = new LinkedList<AttributeFilter>(
                    attributeFilters);
            AttributeFilter firstFilter = filtersCopy.pop();
            firstFilter.filter(new AttributeContext(methodToInvoke,
                    args.length > 1 ? args[1] : args[0]) {

                @Override
                public void proceed() throws Exception {
                    if (filtersCopy.size() > 0) {
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.