Package com.tridion.broker.querying.criteria

Examples of com.tridion.broker.querying.criteria.FieldOperator


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

    int publicationId = Integer.parseInt(fieldOperatorNodes.get(0).getValue());
    int taxonomyId = Integer.parseInt(fieldOperatorNodes.get(1).getValue());
    String keywordName = fieldOperatorNodes.get(2).getValue();
    FieldOperator operator = fieldOperatorNodes.get(2).getFieldOperator();
    boolean includeKeywordBranches = Boolean.parseBoolean(fieldOperatorNodes.get(3).getValue());

    if (operator == FieldOperator.EQUAL) {
      criteria = new TaxonomyKeywordNameCriteria(publicationId, taxonomyId, keywordName, includeKeywordBranches);
    } else {
View Full Code Here


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

    int publicationId = Integer.parseInt(fieldOperatorNodes.get(0).getValue());
    int taxonomyId = Integer.parseInt(fieldOperatorNodes.get(1).getValue());
    String keywordKey = fieldOperatorNodes.get(2).getValue();
    FieldOperator operator = fieldOperatorNodes.get(2).getFieldOperator();
    boolean includeKeywordBranches = Boolean.parseBoolean(fieldOperatorNodes.get(3).getValue());

    if (operator == FieldOperator.EQUAL) {
      criteria = new TaxonomyKeywordKeyCriteria(publicationId, taxonomyId, keywordKey, includeKeywordBranches);
    } else {
View Full Code Here

  @Override
  public void build(ParametersExpression parametersExpression) {
    List<FieldOperatorNode> fieldOperatorNodes = parametersExpression.getFieldOperatorNodes();

    String directory = fieldOperatorNodes.get(0).getValue();
    FieldOperator operator = fieldOperatorNodes.get(0).getFieldOperator();
    if (fieldOperatorNodes.size() == 1) {
      if (operator == FieldOperator.EQUAL) {
        criteria = new StructureGroupDirectoryCriteria(directory);
      } else {
        criteria = new StructureGroupDirectoryCriteria(directory, operator);
View Full Code Here

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

    int publicationId = Integer.parseInt(fieldOperatorNodes.get(0).getValue());
    int taxonomyId = Integer.parseInt(fieldOperatorNodes.get(1).getValue());
    String keywordDescription = fieldOperatorNodes.get(2).getValue();
    FieldOperator operator = fieldOperatorNodes.get(2).getFieldOperator();
    boolean includeKeywordBranches = Boolean.parseBoolean(fieldOperatorNodes.get(3).getValue());

    if (operator == FieldOperator.EQUAL) {
      criteria = new TaxonomyKeywordDescriptionCriteria(publicationId, taxonomyId, keywordDescription,
          includeKeywordBranches);
View Full Code Here

  @Override
  public void build(ParametersExpression parametersExpression) {
    List<FieldOperatorNode> fieldOperatorNodes = parametersExpression.getFieldOperatorNodes();

    String title = fieldOperatorNodes.get(0).getValue();
    FieldOperator operator = fieldOperatorNodes.get(0).getFieldOperator();
    if (fieldOperatorNodes.size() == 1) {
      if (operator == FieldOperator.EQUAL) {
        criteria = new StructureGroupTitleCriteria(title);
      } else {
        criteria = new StructureGroupTitleCriteria(title, operator);
View Full Code Here

  @Override
  public void build(ParametersExpression parametersExpression) {
    List<FieldOperatorNode> fieldOperatorNodes = parametersExpression.getFieldOperatorNodes();
    String keyName = fieldOperatorNodes.get(0).getValue();
    FieldOperator operator = fieldOperatorNodes.get(0).getFieldOperator();
    criteria = new CustomMetaKeyCriteria(keyName, operator);
  }
View Full Code Here

  @Override
  public void build(ParametersExpression parametersExpression) {
    CustomMetaKeyCriteria keyCriteria = (CustomMetaKeyCriteria) parametersExpression.getCritera();
    List<FieldOperatorNode> fieldOperatorNodes = parametersExpression.getFieldOperatorNodes();

    FieldOperator operator = fieldOperatorNodes.get(0).getFieldOperator();
    String valueString = fieldOperatorNodes.get(0).getValue();
    try {
      Date valueDate = TimeUtils.parseDate(valueString, DATE_FORMAT);
      criteria = new CustomMetaValueCriteria(keyCriteria, valueDate, operator);
      return;
View Full Code Here

TOP

Related Classes of com.tridion.broker.querying.criteria.FieldOperator

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.