public ConfigSaveState updateServerConfig( final MailHost mailHost, final LdapConfig ldapConfig, final PasswordFileConfig passwordFileConfig, final boolean shouldAllowAutoLogin, final String md5, final String artifactsDir, final Double purgeStart, final Double purgeUpto, final String jobTimeout, final String siteUrl, final String secureSiteUrl, final String taskRepositoryLocation) { final List<ConfigSaveState> result = new ArrayList<>(); result.add( updateConfig( new GoConfigDao.NoOverwriteCompositeConfigCommand( md5, goConfigDao.mailHostUpdater(mailHost), securityUpdater(ldapConfig, passwordFileConfig, shouldAllowAutoLogin), serverConfigUpdater( artifactsDir, purgeStart, purgeUpto, jobTimeout, siteUrl, secureSiteUrl, taskRepositoryLocation)))); // should not reach here with empty result return result.get(0); }
public String configFileMd5() { return goConfigDao.md5OfConfigFile(); }
public GoConfigValidity checkConfigFileValid() { return goConfigDao.checkConfigFileValid(); }
public void register(ConfigChangedListener listener) { goConfigDao.registerListener(listener); }
public void addPipeline(PipelineConfig pipeline, String groupName) { goConfigDao.addPipeline(pipeline, groupName); }
public void addEnvironment(BasicEnvironmentConfig environmentConfig) { goConfigDao.addEnvironment(environmentConfig); }
public ConfigSaveState updateConfig(UpdateConfigCommand command) { return goConfigDao.updateConfig(command); }
public void updateConfig(EntityConfigUpdateCommand command, Username currentUser) { goConfigDao.updateConfig(command, currentUser); }
public String fileLocation() { return goConfigDao.fileLocation(); }
CruiseConfig cruiseConfig() { return goConfigDao.load(); }
@Deprecated() public CruiseConfig getMergedConfigForEditing() { return goConfigDao.loadMergedForEditing(); }
// for test public void forceNotifyListeners() throws Exception { goConfigDao.reloadListeners(); }
@Deprecated() public GoConfigHolder getConfigHolder() { return goConfigDao.loadConfigHolder(); }