Class GQLConverter

java.lang.Object
com.day.cq.dam.commons.util.GQLConverter

public class GQLConverter extends Object
  • Constructor Details

    • GQLConverter

      public GQLConverter()
  • Method Details

    • buildQuery

      public static PredicateGroup buildQuery(Map conditions, ResourceResolver resolver) throws RepositoryException
      Parse and converts GQL statement from fulltext in conditions to QueryBuilder PredicateGroup.
      Parameters:
      conditions - the map containing initial conditions and fulltext to be processed
      resolver - to resolve node containing gql to jcr properties mapping
      Returns:
      PredicateGroup containing conditions merged with new conditions formed from fulltext
      Throws:
      RepositoryException
    • populateGqlfacets

      public static void populateGqlfacets(Resource sourceNode, Resource destinationNode)
      populates and saves all valid schema editor formitems which can be used as gql facets
      Parameters:
      sourceNode - source for schema editor formitems
      destinationNode - location to save found gql facets