package com.konkerlabs.platform.registry.config;

import java.util.HashMap;
import java.util.Map;

import org.springframework.context.annotation.Configuration;

import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;

import lombok.Data;

@Configuration
@Data
public class EnvironmentConfig {

	private int csvDownloadRowsLimit;

	public EnvironmentConfig() {
		Map<String, Object> defaultMap = new HashMap<>();
		defaultMap.put("environment.preferences.csvDownloadRowsLimit", 10000);
		Config defaultConf = ConfigFactory.parseMap(defaultMap);
		
		Config config = ConfigFactory.load().withFallback(defaultConf);
		setCsvDownloadRowsLimit(config.getInt("environment.preferences.csvDownloadRowsLimit"));
	}

}

@@ -495,9 +495,9 @@
 t%22, 
-1
+5
 0000

increase csv lines