com.laserfiche.repository.api.clients.impl.SimpleSearchesClientImpl Maven / Gradle / Ivy
package com.laserfiche.repository.api.clients.impl;
import com.laserfiche.api.client.deserialization.ProblemDetailsDeserializer;
import com.laserfiche.api.client.httphandlers.HttpRequestHandler;
import com.laserfiche.api.client.model.ApiException;
import com.laserfiche.api.client.model.ProblemDetails;
import com.laserfiche.repository.api.clients.SimpleSearchesClient;
import com.laserfiche.repository.api.clients.impl.model.ODataValueContextOfIListOfEntry;
import com.laserfiche.repository.api.clients.params.ParametersForCreateSimpleSearchOperation;
import kong.unirest.HttpResponse;
import kong.unirest.UnirestInstance;
import kong.unirest.json.JSONObject;
import java.util.*;
import java.util.function.Function;
/**
* The Laserfiche Repository SimpleSearches API client.
*/
public class SimpleSearchesClientImpl extends ApiClient implements SimpleSearchesClient {
public SimpleSearchesClientImpl(String baseUrl, UnirestInstance httpClient, HttpRequestHandler httpRequestHandler) {
super(baseUrl, httpClient, httpRequestHandler);
}
@Override
public ODataValueContextOfIListOfEntry createSimpleSearchOperation(
ParametersForCreateSimpleSearchOperation parameters) {
Map queryParameters = ApiClientUtils.getParametersWithNonDefaultValue(
new String[]{"String[]", "boolean", "String", "String", "String", "boolean"},
new String[]{"fields", "formatFields", "culture", "$select", "$orderby", "$count"},
new Object[]{parameters.getFields(), parameters.isFormatFields(), parameters.getCulture(), parameters.getSelect(), parameters.getOrderby(), parameters.isCount()});
Map pathParameters = ApiClientUtils.getParametersWithNonDefaultValue(new String[]{"String"},
new String[]{"repoId"}, new Object[]{parameters.getRepoId()});
Function, ODataValueContextOfIListOfEntry> parseResponse = (HttpResponse
© 2015 - 2025 Weber Informatics LLC | Privacy Policy