Class AdvancedQueryBuilder

java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.search.advanced.AdvancedQueryBuilder
All Implemented Interfaces:
LogEnabled, Component

public class AdvancedQueryBuilder extends AbstractLogEnabled implements Component
Builds a Query object from advanced search criteria (as a AbstractTreeNode).
  • Field Details

    • ROLE

      public static final String ROLE
      The component role.
  • Constructor Details

  • Method Details

    • build

      public <T> Query build(AbstractTreeNode<T> tree, Function<T,Query> queryMapper)
      Builds the Query object represented by the given tree of advanced search criteria.
      Type Parameters:
      T - the type of the values of the leaves of the given tree
      Parameters:
      tree - The tree
      queryMapper - The mapper to build a Query from a leaf
      Returns:
      the built query of the tree