Package org.structr.core.graph.search

Examples of org.structr.core.graph.search.PropertySearchAttribute


  @Override
  public SearchAttribute getSearchAttribute(SecurityContext securityContext, BooleanClause.Occur occur, T[] searchValue, boolean exactMatch, Query query) {

    // early exit, return empty search attribute
    if (searchValue == null) {
      return new PropertySearchAttribute(this, "", exactMatch ? Occur.MUST : Occur.SHOULD, exactMatch);
    }

    final SearchAttributeGroup group = new SearchAttributeGroup(occur);

    for (T value : searchValue) {

      group.add(new PropertySearchAttribute(this, value, exactMatch ? Occur.MUST : Occur.SHOULD, exactMatch));

    }

    return group;
  }
View Full Code Here


    }
  }

  @Override
  public SearchAttribute getSearchAttribute(SecurityContext securityContext, BooleanClause.Occur occur, T searchValue, boolean exactMatch, final Query query) {
    return new PropertySearchAttribute(this, searchValue, occur, exactMatch);
  }
View Full Code Here

    for (PropertyKey key : propertyKeys.values()) {
     
      Object value = searchValues.get(new GenericProperty(key.jsonName()));
      if (value != null) {
       
        group.add(new PropertySearchAttribute(key, value.toString(), Occur.MUST, exactMatch));
      }
    }
   
    return group;
  }
View Full Code Here

    for (PropertyKey key : propertyKeys.values()) {
     
      Object value = searchValues.get(new GenericProperty(key.jsonName()));
      if (value != null) {
       
        group.add(new PropertySearchAttribute(key, value.toString(), BooleanClause.Occur.MUST, exactMatch));
      }
    }
   
    return group;
  }
View Full Code Here

TOP

Related Classes of org.structr.core.graph.search.PropertySearchAttribute

Copyright © 2018 www.massapicom. 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.