Package org.ametys.cms.search.advanced
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 aQuery
object from advanced search criteria (as aAbstractTreeNode
).
-
-
Constructor Summary
Constructors Constructor Description AdvancedQueryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Query
_logicalQuery(Stream<Query> queries, Query.LogicalOperator operator)
<T> Query
build(AbstractTreeNode<T> tree, Function<T,Query> queryMapper)
Builds theQuery
object represented by the given tree of advanced search criteria.-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
AdvancedQueryBuilder
public AdvancedQueryBuilder()
-
-
Method Detail
-
build
public <T> Query build(AbstractTreeNode<T> tree, Function<T,Query> queryMapper)
Builds theQuery
object represented by the given tree of advanced search criteria.
-
_logicalQuery
private Query _logicalQuery(Stream<Query> queries, Query.LogicalOperator operator)
-
-