Package org.apache.sling.query.resource.jcr

Examples of org.apache.sling.query.resource.jcr.JcrOperator


  private static String getAttributeCondition(Attribute attribute) {
    if (attribute.getKey().contains("/")) {
      return null;
    }

    JcrOperator operator = JcrOperator.getSelectorOperator(attribute.getOperator());
    String value = StringUtils.replace(attribute.getValue(), "'", "''");
    return operator.getJcrQueryFragment(attribute.getKey(), value);
  }
View Full Code Here

TOP

Related Classes of org.apache.sling.query.resource.jcr.JcrOperator

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.