Example usage for org.springframework.data.rest.core.config RepositoryRestConfiguration setLimitParamName

List of usage examples for org.springframework.data.rest.core.config RepositoryRestConfiguration setLimitParamName

Introduction

In this page you can find the example usage for org.springframework.data.rest.core.config RepositoryRestConfiguration setLimitParamName.

Prototype

public RepositoryRestConfiguration setLimitParamName(String limitParamName) 

Source Link

Document

Set the name of the URL query string parameter that indicates how many results to return at once.

Usage

From source file:org.agatom.springatom.boot.init.rest.SARepositoryRestMvcConfiguration.java

@Override
protected void configureRepositoryRestConfiguration(final RepositoryRestConfiguration configuration) {
    configuration.setReturnBodyOnCreate(
            Boolean.parseBoolean(this.properties.getProperty("rest.returnBodyOnCreate")));
    configuration.setReturnBodyOnUpdate(
            Boolean.parseBoolean(this.properties.getProperty("rest.returnBodyOnUpdate")));
    configuration.setMaxPageSize(Integer.parseInt(this.properties.getProperty("rest.maxPageSize")));
    configuration.setLimitParamName(this.properties.getProperty("rest.limitParamName"));
    configuration.setPageParamName(this.properties.getProperty("rest.pageParamName"));
    configuration.setSortParamName(this.properties.getProperty("rest.sortParamName"));
    configuration.setDefaultPageSize(Integer.parseInt(this.properties.getProperty("rest.defaultPageSize")));
}