Package com.day.cq.dam.commons.util
Class GQLConverter
- java.lang.Object
-
- com.day.cq.dam.commons.util.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
-
-
-
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 processedresolver
- 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 formitemsdestinationNode
- location to save found gql facets
-
-