io.camunda.service.search.query.SearchQueryBuilders Maven / Gradle / Ivy
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Camunda License 1.0. You may not use this file
* except in compliance with the Camunda License 1.0.
*/
package io.camunda.service.search.query;
import io.camunda.util.ObjectBuilder;
import java.util.function.Function;
public final class SearchQueryBuilders {
private SearchQueryBuilders() {}
public static ProcessInstanceQuery.Builder processInstanceSearchQuery() {
return new ProcessInstanceQuery.Builder();
}
public static ProcessInstanceQuery processInstanceSearchQuery(
final Function> fn) {
return fn.apply(processInstanceSearchQuery()).build();
}
public static UserTaskQuery.Builder userTaskSearchQuery() {
return new UserTaskQuery.Builder();
}
public static UserTaskQuery userTaskSearchQuery(
final Function> fn) {
return fn.apply(userTaskSearchQuery()).build();
}
public static VariableQuery.Builder variableSearchQuery() {
return new VariableQuery.Builder();
}
public static VariableQuery variableSearchQuery(
final Function> fn) {
return fn.apply(variableSearchQuery()).build();
}
public static DecisionDefinitionQuery.Builder decisionDefinitionSearchQuery() {
return new DecisionDefinitionQuery.Builder();
}
public static DecisionDefinitionQuery decisionDefinitionSearchQuery(
final Function> fn) {
return fn.apply(decisionDefinitionSearchQuery()).build();
}
public static DecisionRequirementsQuery.Builder decisionRequirementsSearchQuery() {
return new DecisionRequirementsQuery.Builder();
}
public static DecisionRequirementsQuery decisionRequirementsSearchQuery(
final Function>
fn) {
return fn.apply(decisionRequirementsSearchQuery()).build();
}
public static UserQuery.Builder userSearchQuery() {
return new UserQuery.Builder();
}
public static UserQuery userSearchQuery(
final Function> fn) {
return fn.apply(userSearchQuery()).build();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy