Package org.structr.core.graph.search

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


    return dummyQuery;
  }

  private Range<Long> getRangeFromQuery(final Query query) throws FrameworkException {

    final SearchAttributeGroup rootGroup = query.getRootAttributeGroup();
    final RangeSearchAttribute range     = findRange(rootGroup);

    if (range != null) {

      final Object start = range.getRangeStart();
View Full Code Here


    // 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, Occur occur, PropertyMap searchValues, boolean exactMatch, Query query) {
   
    SearchAttributeGroup group = new SearchAttributeGroup(occur);
   
    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

  }

  @Override
  public SearchAttribute getSearchAttribute(SecurityContext securityContext, BooleanClause.Occur occur, PropertyMap searchValues, boolean exactMatch, final Query query) {
   
    SearchAttributeGroup group = new SearchAttributeGroup(occur);
   
    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.SearchAttributeGroup

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.