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

org.bonitasoft.web.client.api.ProcessParameterApi Maven / Gradle / Ivy

The newest version!
/** 
 * Copyright (C) 2024 BonitaSoft S.A.
 * BonitaSoft, 32 rue Gustave Eiffel - 38000 Grenoble
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2.0 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see .
 */
package org.bonitasoft.web.client.api;

import java.util.HashMap;
import java.util.List;

import org.bonitasoft.web.client.invoker.ApiClient;
import org.bonitasoft.web.client.invoker.EncodingUtils;
import org.bonitasoft.web.client.model.ApiResponse;
import org.bonitasoft.web.client.model.ProcessParameter;
import org.bonitasoft.web.client.model.ProcessParameterUpdateRequest;

import feign.*;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0")
public interface ProcessParameterApi extends ApiClient.Api {

    /**
     * Finds the ProcessParameter by ID
     * Returns the single ProcessParameter for the given ID
     * 
     * @param id ID of the process to get parameter from (required)
     * @param name Name of the process parameter to return (required)
     * @return ProcessParameter
     */
    @RequestLine("GET /API/bpm/processParameter/{id}/{name}")
    @Headers({
            "Accept: application/json",
    })
    ProcessParameter getProcessParameterById(@Param("id") String id, @Param("name") String name);

    /**
     * Finds the ProcessParameter by ID
     * Similar to getProcessParameterById but it also returns the http response headers .
     * Returns the single ProcessParameter for the given ID
     * 
     * @param id ID of the process to get parameter from (required)
     * @param name Name of the process parameter to return (required)
     * @return A ApiResponse that wraps the response boyd and the http headers.
     */
    @RequestLine("GET /API/bpm/processParameter/{id}/{name}")
    @Headers({
            "Accept: application/json",
    })
    ApiResponse getProcessParameterByIdWithHttpInfo(@Param("id") String id,
            @Param("name") String name);

    /**
     * Finds ProcessParameters
     * Finds ProcessParameters with pagination params and filters.
     * 
     * @param p index of the page to display (required)
     * @param c maximum number of elements to retrieve (required)
     * @param f can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)
     * @param o can order on attributes (optional)
     * @param s can search on attributes (optional)
     * @return List<ProcessParameter>
     */
    @RequestLine("GET /API/bpm/processParameter?p={p}&c={c}&f={f}&o={o}&s={s}")
    @Headers({
            "Accept: application/json",
    })
    List searchProcessParameters(@Param("p") Integer p, @Param("c") Integer c,
            @Param("f") List f, @Param("o") String o, @Param("s") String s);

    /**
     * Finds ProcessParameters
     * Similar to searchProcessParameters but it also returns the http response headers .
     * Finds ProcessParameters with pagination params and filters.
     * 
     * @param p index of the page to display (required)
     * @param c maximum number of elements to retrieve (required)
     * @param f can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)
     * @param o can order on attributes (optional)
     * @param s can search on attributes (optional)
     * @return A ApiResponse that wraps the response boyd and the http headers.
     */
    @RequestLine("GET /API/bpm/processParameter?p={p}&c={c}&f={f}&o={o}&s={s}")
    @Headers({
            "Accept: application/json",
    })
    ApiResponse> searchProcessParametersWithHttpInfo(@Param("p") Integer p,
            @Param("c") Integer c, @Param("f") List f, @Param("o") String o, @Param("s") String s);

    /**
     * Finds ProcessParameters
     * Finds ProcessParameters with pagination params and filters.
     * Note, this is equivalent to the other searchProcessParameters method,
     * but with the query parameters collected into a single Map parameter. This
     * is convenient for services with optional query parameters, especially when
     * used with the {@link SearchProcessParametersQueryParams} class that allows for
     * building up this map in a fluent style.
     * 
     * @param queryParams Map of query parameters as name-value pairs
     *        

The following elements may be specified in the query map:

*
    *
  • p - index of the page to display (required)
  • *
  • c - maximum number of elements to retrieve (required)
  • *
  • f - can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. * (optional)
  • *
  • o - can order on attributes (optional)
  • *
  • s - can search on attributes (optional)
  • *
* @return List<ProcessParameter> */ @RequestLine("GET /API/bpm/processParameter?p={p}&c={c}&f={f}&o={o}&s={s}") @Headers({ "Accept: application/json", }) List searchProcessParameters( @QueryMap(encoded = true) SearchProcessParametersQueryParams queryParams); /** * Finds ProcessParameters * Finds ProcessParameters with pagination params and filters. * Note, this is equivalent to the other searchProcessParameters that receives the query parameters as a map, * but this one also exposes the Http response headers * * @param queryParams Map of query parameters as name-value pairs *

The following elements may be specified in the query map:

*
    *
  • p - index of the page to display (required)
  • *
  • c - maximum number of elements to retrieve (required)
  • *
  • f - can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. * (optional)
  • *
  • o - can order on attributes (optional)
  • *
  • s - can search on attributes (optional)
  • *
* @return List<ProcessParameter> */ @RequestLine("GET /API/bpm/processParameter?p={p}&c={c}&f={f}&o={o}&s={s}") @Headers({ "Accept: application/json", }) ApiResponse> searchProcessParametersWithHttpInfo( @QueryMap(encoded = true) SearchProcessParametersQueryParams queryParams); /** * A convenience class for generating query parameters for the * searchProcessParameters method in a fluent style. */ public static class SearchProcessParametersQueryParams extends HashMap { public SearchProcessParametersQueryParams p(final Integer value) { put("p", EncodingUtils.encode(value)); return this; } public SearchProcessParametersQueryParams c(final Integer value) { put("c", EncodingUtils.encode(value)); return this; } public SearchProcessParametersQueryParams f(final List value) { put("f", EncodingUtils.encodeCollection(value, "multi")); return this; } public SearchProcessParametersQueryParams o(final String value) { put("o", EncodingUtils.encode(value)); return this; } public SearchProcessParametersQueryParams s(final String value) { put("s", EncodingUtils.encode(value)); return this; } } /** * Update the ProcessParameter by ID * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the ProcessParameter for the given ID Warning: as of 9.0.0, importing a Process * parameter using this API is deprecated. * * @param id ID of the process to get parameter from (required) * @param name Name of the process parameter to return (required) * @param processParameterUpdateRequest You can update only a process parameter value using the API. If you specify values for other fields in the update * request, they are ignored. (required) * @deprecated */ @Deprecated @RequestLine("PUT /API/bpm/processParameter/{id}/{name}") @Headers({ "Content-Type: application/json", "Accept: application/json", }) void updateProcessParameterById(@Param("id") String id, @Param("name") String name, ProcessParameterUpdateRequest processParameterUpdateRequest); /** * Update the ProcessParameter by ID * Similar to updateProcessParameterById but it also returns the http response headers . * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the ProcessParameter for the given ID Warning: as of 9.0.0, importing a Process * parameter using this API is deprecated. * * @param id ID of the process to get parameter from (required) * @param name Name of the process parameter to return (required) * @param processParameterUpdateRequest You can update only a process parameter value using the API. If you specify values for other fields in the update * request, they are ignored. (required) * @deprecated */ @Deprecated @RequestLine("PUT /API/bpm/processParameter/{id}/{name}") @Headers({ "Content-Type: application/json", "Accept: application/json", }) ApiResponse updateProcessParameterByIdWithHttpInfo(@Param("id") String id, @Param("name") String name, ProcessParameterUpdateRequest processParameterUpdateRequest); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy