Search in sources :

Example 1 with FindResourcesQuery

use of org.kie.workbench.common.services.refactoring.backend.server.query.standard.FindResourcesQuery in project kie-wb-common by kiegroup.

the class FormDefinitionIndexerTest method getQueries.

protected Set<NamedQuery> getQueries() {
    return new HashSet<NamedQuery>() {

        {
            add(new FindResourcesQuery() {

                @Override
                public ResponseBuilder getResponseBuilder() {
                    return new DefaultResponseBuilder(ioService());
                }
            });
            add(new FindAllChangeImpactQuery() {

                @Override
                public ResponseBuilder getResponseBuilder() {
                    return new DefaultResponseBuilder(ioService());
                }
            });
            add(new FindFormDefinitionIdsQuery() {

                @Override
                public ResponseBuilder getResponseBuilder() {
                    return new FindFormDefinitionIdsQuery.FindFormDefinitionIdsResponseBuilder(ioService());
                }
            });
        }
    };
}
Also used : FindAllChangeImpactQuery(org.kie.workbench.common.services.refactoring.backend.server.query.standard.FindAllChangeImpactQuery) DefaultResponseBuilder(org.kie.workbench.common.services.refactoring.backend.server.query.response.DefaultResponseBuilder) ResponseBuilder(org.kie.workbench.common.services.refactoring.backend.server.query.response.ResponseBuilder) DefaultResponseBuilder(org.kie.workbench.common.services.refactoring.backend.server.query.response.DefaultResponseBuilder) FindResourcesQuery(org.kie.workbench.common.services.refactoring.backend.server.query.standard.FindResourcesQuery) FindFormDefinitionIdsQuery(org.kie.workbench.common.forms.editor.backend.indexing.query.FindFormDefinitionIdsQuery) HashSet(java.util.HashSet)

Example 2 with FindResourcesQuery

use of org.kie.workbench.common.services.refactoring.backend.server.query.standard.FindResourcesQuery in project kie-wb-common by kiegroup.

the class BpmnFileIndexerTest method getQueries.

protected Set<NamedQuery> getQueries() {
    return new HashSet<NamedQuery>() {

        {
            add(new FindResourcesQuery() {

                @Override
                public ResponseBuilder getResponseBuilder() {
                    return new DefaultResponseBuilder(ioService());
                }
            });
            add(new FindAllChangeImpactQuery() {

                @Override
                public ResponseBuilder getResponseBuilder() {
                    return new DefaultResponseBuilder(ioService());
                }
            });
            add(new FindBpmnProcessIdsQuery() {

                @Override
                public ResponseBuilder getResponseBuilder() {
                    return new FindBpmnProcessIdsQuery.BpmnProcessIdsResponseBuilder(ioService());
                }
            });
        }
    };
}
Also used : FindAllChangeImpactQuery(org.kie.workbench.common.services.refactoring.backend.server.query.standard.FindAllChangeImpactQuery) DefaultResponseBuilder(org.kie.workbench.common.services.refactoring.backend.server.query.response.DefaultResponseBuilder) ResponseBuilder(org.kie.workbench.common.services.refactoring.backend.server.query.response.ResponseBuilder) DefaultResponseBuilder(org.kie.workbench.common.services.refactoring.backend.server.query.response.DefaultResponseBuilder) FindResourcesQuery(org.kie.workbench.common.services.refactoring.backend.server.query.standard.FindResourcesQuery) HashSet(java.util.HashSet) FindBpmnProcessIdsQuery(org.kie.workbench.common.stunner.bpmn.backend.query.FindBpmnProcessIdsQuery)

Aggregations

HashSet (java.util.HashSet)2 DefaultResponseBuilder (org.kie.workbench.common.services.refactoring.backend.server.query.response.DefaultResponseBuilder)2 ResponseBuilder (org.kie.workbench.common.services.refactoring.backend.server.query.response.ResponseBuilder)2 FindAllChangeImpactQuery (org.kie.workbench.common.services.refactoring.backend.server.query.standard.FindAllChangeImpactQuery)2 FindResourcesQuery (org.kie.workbench.common.services.refactoring.backend.server.query.standard.FindResourcesQuery)2 FindFormDefinitionIdsQuery (org.kie.workbench.common.forms.editor.backend.indexing.query.FindFormDefinitionIdsQuery)1 FindBpmnProcessIdsQuery (org.kie.workbench.common.stunner.bpmn.backend.query.FindBpmnProcessIdsQuery)1