added generic access method

This commit is contained in:
jomu
2015-12-08 13:48:19 +00:00
parent 63a236c7d5
commit a704bfb6ed

View File

@ -32,8 +32,14 @@ public class ConfigService {
this.maxFailedLogins = Integer.parseInt(configEntity.getConfigValue());
}
}
public String getConfigValue (String configKey) {
ConfigEntity configEntity = em.find(ConfigEntity.class, configKey);
return (configEntity == null ? null : configEntity.getConfigValue());
}
/* *** getter *** */
// FIXME remove, this is application specific
public String getStoragePath() {
return storagePath;
}