Search in sources :

Example 1 with MultiRepoNodeQuery

use of com.enonic.xp.node.MultiRepoNodeQuery in project xp by enonic.

the class FindNodesByMultiNodeQueryHandler method execute.

@Override
public Object execute() {
    final NodeQuery nodeQuery = createNodeQuery();
    final MultiRepoNodeQuery multiRepoNodeQuery = new MultiRepoNodeQuery(this.searchTargets, nodeQuery);
    final FindNodesByMultiRepoQueryResult result = this.nodeService.findByQuery(multiRepoNodeQuery);
    return convert(result);
}
Also used : FindNodesByMultiRepoQueryResult(com.enonic.xp.node.FindNodesByMultiRepoQueryResult) MultiRepoNodeQuery(com.enonic.xp.node.MultiRepoNodeQuery) NodeQuery(com.enonic.xp.node.NodeQuery) MultiRepoNodeQuery(com.enonic.xp.node.MultiRepoNodeQuery)

Aggregations

FindNodesByMultiRepoQueryResult (com.enonic.xp.node.FindNodesByMultiRepoQueryResult)1 MultiRepoNodeQuery (com.enonic.xp.node.MultiRepoNodeQuery)1 NodeQuery (com.enonic.xp.node.NodeQuery)1