All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.camunda.service.search.query.SearchQueryBuilders Maven / Gradle / Ivy

There is a newer version: 8.7.0-alpha1
Show newest version
/*
 * 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 DecisionInstanceQuery.Builder decisionInstanceSearchQuery() {
    return new DecisionInstanceQuery.Builder();
  }

  public static DecisionInstanceQuery decisionInstanceSearchQuery(
      final Function> fn) {
    return fn.apply(decisionInstanceSearchQuery()).build();
  }

  public static FlowNodeInstanceQuery.Builder flownodeInstanceSearchQuery() {
    return new FlowNodeInstanceQuery.Builder();
  }

  public static FlowNodeInstanceQuery flownodeInstanceSearchQuery(
      final Function> fn) {
    return fn.apply(flownodeInstanceSearchQuery()).build();
  }

  public static UserQuery.Builder userSearchQuery() {
    return new UserQuery.Builder();
  }

  public static UserQuery userSearchQuery(
      final Function> fn) {
    return fn.apply(userSearchQuery()).build();
  }

  public static AuthorizationQuery.Builder authorizationSearchQuery() {
    return new AuthorizationQuery.Builder();
  }

  public static AuthorizationQuery authorizationSearchQuery(
      final Function> fn) {
    return fn.apply(authorizationSearchQuery()).build();
  }

  public static IncidentQuery.Builder incidentSearchQuery() {
    return new IncidentQuery.Builder();
  }

  public static IncidentQuery incidentSearchQuery(
      final Function> fn) {
    return fn.apply(incidentSearchQuery()).build();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy