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

com.intershop.oms.test.util.OMSSearchParams Maven / Gradle / Ivy

There is a newer version: 7.1.0
Show newest version
package com.intershop.oms.test.util;

import com.intershop.oms.test.businessobject.OMSSortDirection;

import lombok.Data;

@Data
public class OMSSearchParams
{
    private Integer limit  = 1000;
    private Integer offset = 0;
    private OMSSortDirection sortDirection = OMSSortDirection.ASC;
    private String sortableAttribute = "id";

    /**
     * using the default values:
     *
     * limit = 50
     * offset= 0
     * sortDir = ASC
     * sortableAttribute = "id"
     */
    public OMSSearchParams() {};

    public OMSSearchParams(Integer limit, Integer offset, OMSSortDirection sortDirection, String sortableAttribute)
    {
        this.limit = limit;
        this.offset = offset;
        this.sortDirection = sortDirection;
        this.sortableAttribute = sortableAttribute;
    };
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy