
com.hp.autonomy.searchcomponents.idol.requests.IdolParametricRequestImpl Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2015 Open Text.
*
* Licensed under the MIT License (the "License"); you may not use this file
* except in compliance with the License.
*
* The only warranties for products and services of Open Text and its affiliates
* and licensors ("Open Text") are as may be set forth in the express warranty
* statements accompanying such products and services. Nothing herein should be
* construed as constituting an additional warranty. Open Text shall not be
* liable for technical or editorial errors or omissions contained herein. The
* information contained herein is subject to change without notice.
*/
package com.hp.autonomy.searchcomponents.idol.requests;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import com.hp.autonomy.aci.content.ranges.ParametricFieldRange;
import com.hp.autonomy.searchcomponents.idol.parametricvalues.IdolParametricRequest;
import com.hp.autonomy.searchcomponents.idol.parametricvalues.IdolParametricRequestBuilder;
import com.hp.autonomy.searchcomponents.idol.search.IdolQueryRestrictions;
import com.hp.autonomy.types.requests.idol.actions.tags.FieldPath;
import com.hp.autonomy.types.requests.idol.actions.tags.params.SortParam;
import lombok.Builder;
import lombok.Data;
import lombok.Singular;
import java.util.List;
/**
* Default implementation of {@link IdolParametricRequest}
*/
@SuppressWarnings("WeakerAccess")
@Data
@Builder(toBuilder = true)
@JsonDeserialize(builder = IdolParametricRequestImpl.IdolParametricRequestImplBuilder.class)
class IdolParametricRequestImpl implements IdolParametricRequest {
private static final int MAX_VALUES_DEFAULT = 10;
private static final long serialVersionUID = 3450911770365743948L;
@Singular
private final List fieldNames;
private final Integer start;
private final Integer maxValues;
private final SortParam sort;
@Singular
private final List ranges;
@Singular
private final List valueRestrictions;
private final IdolQueryRestrictions queryRestrictions;
private final boolean modified;
@SuppressWarnings({"FieldMayBeFinal", "unused"})
@JsonPOJOBuilder(withPrefix = "")
static class IdolParametricRequestImplBuilder implements IdolParametricRequestBuilder {
private Integer maxValues = MAX_VALUES_DEFAULT;
private Integer start = START_DEFAULT;
private SortParam sort = SortParam.DocumentCount;
private boolean modified = true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy