use of org.apache.openmeetings.db.entity.basic.Configuration in project openmeetings by apache.
the class ConfigForm method update.
private void update(AjaxRequestTarget target) {
Configuration c = getModelObject();
valueS.setVisible(Type.string == c.getType());
valueN.setVisible(Type.number == c.getType());
valueB.setVisible(Type.bool == c.getType());
if (target != null) {
target.add(valueS, valueN, valueB);
}
}
use of org.apache.openmeetings.db.entity.basic.Configuration in project openmeetings by apache.
the class TestJob method testRss.
private void testRss(boolean enabled, Runnable r) {
boolean prevRss = cfgDao.getBool(CONFIG_DASHBOARD_SHOW_RSS, false);
Configuration cfg = cfgDao.get(CONFIG_DASHBOARD_SHOW_RSS);
try {
cfg.setValueB(enabled);
cfgDao.update(cfg, null);
r.run();
} finally {
cfg.setValueB(prevRss);
cfgDao.update(cfg, null);
}
}
Aggregations