示例#1
0
 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);
 }
示例#2
0
 public String configFileMd5() {
   return goConfigDao.md5OfConfigFile();
 }
示例#3
0
 public GoConfigValidity checkConfigFileValid() {
   return goConfigDao.checkConfigFileValid();
 }
示例#4
0
 public void register(ConfigChangedListener listener) {
   goConfigDao.registerListener(listener);
 }
示例#5
0
 public void addPipeline(PipelineConfig pipeline, String groupName) {
   goConfigDao.addPipeline(pipeline, groupName);
 }
示例#6
0
 public void addEnvironment(BasicEnvironmentConfig environmentConfig) {
   goConfigDao.addEnvironment(environmentConfig);
 }
示例#7
0
 public ConfigSaveState updateConfig(UpdateConfigCommand command) {
   return goConfigDao.updateConfig(command);
 }
示例#8
0
 public void updateConfig(EntityConfigUpdateCommand command, Username currentUser) {
   goConfigDao.updateConfig(command, currentUser);
 }
示例#9
0
 public String fileLocation() {
   return goConfigDao.fileLocation();
 }
示例#10
0
 CruiseConfig cruiseConfig() {
   return goConfigDao.load();
 }
示例#11
0
 @Deprecated()
 public CruiseConfig getMergedConfigForEditing() {
   return goConfigDao.loadMergedForEditing();
 }
示例#12
0
 // for test
 public void forceNotifyListeners() throws Exception {
   goConfigDao.reloadListeners();
 }
示例#13
0
 @Deprecated()
 public GoConfigHolder getConfigHolder() {
   return goConfigDao.loadConfigHolder();
 }