added generic access method
This commit is contained in:
@ -32,8 +32,14 @@ public class ConfigService {
|
|||||||
this.maxFailedLogins = Integer.parseInt(configEntity.getConfigValue());
|
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 *** */
|
/* *** getter *** */
|
||||||
|
// FIXME remove, this is application specific
|
||||||
public String getStoragePath() {
|
public String getStoragePath() {
|
||||||
return storagePath;
|
return storagePath;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user