use of com.gitblit.models.SettingModel in project gitblit by gitblit.
the class MockRuntimeManager method getSettingsModel.
@Override
public ServerSettings getSettingsModel() {
// ensure that the current values are updated in the setting models
for (String key : settings.getAllKeys(null)) {
SettingModel setting = serverSettings.get(key);
if (setting == null) {
// unreferenced setting, create a setting model
setting = new SettingModel();
setting.name = key;
serverSettings.add(setting);
}
setting.currentValue = settings.getString(key, "");
}
return serverSettings;
}
Aggregations