Class GQLConverter


  • public class GQLConverter
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      GQLConverter()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PredicateGroup buildQuery​(java.util.Map conditions, ResourceResolver resolver)
      Parse and converts GQL statement from fulltext in conditions to QueryBuilder PredicateGroup.
      static void populateGqlfacets​(Resource sourceNode, Resource destinationNode)
      populates and saves all valid schema editor formitems which can be used as gql facets
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GQLConverter

        public GQLConverter()
    • Method Detail

      • buildQuery

        public static PredicateGroup buildQuery​(java.util.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