Skip to content

Commit

Permalink
archive-mgr: added max results to the product archive configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
DenChaykovskiy committed Mar 27, 2024
1 parent 456ec17 commit 080472e
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
package de.dlr.proseo.archivemgr;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
Expand All @@ -18,4 +19,25 @@
@ConfigurationProperties(prefix = "proseo")
@EntityScan(basePackages = "de.dlr.proseo.model")
public class ProductArchiveManagerConfiguration {

/**
* The maximum number of results to be retrieved by REST requests
*/
@Value("${spring.maxResults}")
public Integer maxResults;

/**
* @return the maximum number of results to be retrieved by REST requests
*/
public Integer getMaxResults() {
return maxResults;
}

/**
* @param maxResults the maximum number of results to be retrieved by REST requests
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}

}

0 comments on commit 080472e

Please sign in to comment.