Commit a0ecb6d7 authored by R.W.Majeed's avatar R.W.Majeed
Browse files

preference keys as enum

parent 68ad6d44
Loading
Loading
Loading
Loading
+19 −7
Original line number Original line Diff line number Diff line
@@ -6,8 +6,25 @@ package org.aktin.dwh;
 * @author R.W.Majeed
 * @author R.W.Majeed
 *
 *
 */
 */
public class PreferenceKeys {
public enum PreferenceKey {
	public static final String TLS_KEYSTORE_PATH="tls.keystore.path";
	
	keystorePath("tls.keystore.path"),
	keystorePass("tls.keystore.pass"),
	commonName("local.cn"),
	organisationName("local.o"),
	organisationUnit("local.ou"),
	locality("local.l"),
	state("local.s"),
	country("local.c"),
	;
	private String key;
	private PreferenceKey(String key){
		this.key = key;
	}
	public String key(){
		return key;
	}
	
	/*
	/*
	local.name (W) local name for this site/clinic, 
	local.name (W) local name for this site/clinic, 
	local.contact.name (W)
	local.contact.name (W)
@@ -17,11 +34,6 @@ public class PreferenceKeys {
	i2b2.crc.ds (R) i2b2 jndi datasource "java:/QueryToolDemoDS"
	i2b2.crc.ds (R) i2b2 jndi datasource "java:/QueryToolDemoDS"
	i2b2.lastimport (R) timestamp of last import
	i2b2.lastimport (R) timestamp of last import


	smtp.server (W)
	smtp.port (W)
	smtp.user (W)
	smtp.password (WO)
	smtp.auth (W) [plain|ssl|...]


	query.notification.email (W) list of email addresses to receive notifications for queries
	query.notification.email (W) list of email addresses to receive notifications for queries
	query.result.dir (R)
	query.result.dir (R)