Package com.tridion.broker.querying.criteria.metadata

Examples of com.tridion.broker.querying.criteria.metadata.CustomMetaDateRangeCriteria


    List<FieldOperatorNode> fieldOperatorNodes = parametersExpression.getFieldOperatorNodes();

    if (fieldOperatorNodes.size() == 2) {
      String beginRange = fieldOperatorNodes.get(0).getValue();
      String endRange = fieldOperatorNodes.get(1).getValue();
      criteria = new CustomMetaDateRangeCriteria(beginRange, endRange);
    } else if (fieldOperatorNodes.size() == 3) {
      String beginRange = fieldOperatorNodes.get(0).getValue();
      String endRange = fieldOperatorNodes.get(1).getValue();
      boolean rangeIncluded = Boolean.parseBoolean(fieldOperatorNodes.get(2).getValue());
      criteria = new CustomMetaDateRangeCriteria(beginRange, endRange, rangeIncluded);
    } else {
      String metaDataFieldName = fieldOperatorNodes.get(0).getValue();
      String beginRange = fieldOperatorNodes.get(1).getValue();
      String endRange = fieldOperatorNodes.get(2).getValue();
      boolean rangeIncluded = Boolean.parseBoolean(fieldOperatorNodes.get(3).getValue());
      criteria = new CustomMetaDateRangeCriteria(metaDataFieldName, beginRange, endRange, rangeIncluded);
    }
  }
View Full Code Here

TOP

Related Classes of com.tridion.broker.querying.criteria.metadata.CustomMetaDateRangeCriteria

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.