Examples of TaxonomyKeywordCriteria


Examples of com.tridion.broker.querying.criteria.taxonomy.TaxonomyKeywordCriteria

    if (fieldOperatorNodes.size() == 3) {
      String taxonomyUri = fieldOperatorNodes.get(0).getValue();
      String keywordUri = fieldOperatorNodes.get(1).getValue();
      boolean includeKeywordBranches = Boolean.parseBoolean(fieldOperatorNodes.get(2).getValue());
      criteria = new TaxonomyKeywordCriteria(taxonomyUri, keywordUri, includeKeywordBranches);
    } else {
      int publicationId = Integer.parseInt(fieldOperatorNodes.get(0).getValue());
      int taxonomyId = Integer.parseInt(fieldOperatorNodes.get(1).getValue());
      int keywordId = Integer.parseInt(fieldOperatorNodes.get(2).getValue());
      boolean includeKeywordBranches = Boolean.parseBoolean(fieldOperatorNodes.get(3).getValue());
      criteria = new TaxonomyKeywordCriteria(publicationId, taxonomyId, keywordId, includeKeywordBranches);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.