Esempio n. 1
0
 /** Saves the base configuration the the global configuration object and writes it to file.<br> */
 public final void saveBaseConfig() {
   ConfigManager.getInstance().getConfig().getBaseConfig().setDocBasedir(this.docBasedir);
   ConfigManager.getInstance().getConfig().getBaseConfig().setFileLockTime(this.fileLockTime);
   ConfigManager.getInstance()
       .getConfig()
       .getBaseConfig()
       .setNumRecentChanges(this.numRecentChanges);
   ConfigManager.getInstance()
       .getConfig()
       .getBaseConfig()
       .setUserDocrootPermission(this.userDocrootPermission);
   ConfigManager.getInstance()
       .getConfig()
       .getBaseConfig()
       .setUserFilePermission(this.userFilePermission);
   ConfigManager.getInstance()
       .getConfig()
       .getBaseConfig()
       .setPubCompiledDocPermission(this.pubCompiledDocPermission);
   ConfigManager.getInstance()
       .getConfig()
       .getBaseConfig()
       .setPubFilePermission(this.pubFilePermission);
   ConfigManager.getInstance().saveConfig();
   ConfigManager.getInstance().getConfig().getBaseConfig().onChange();
   BaseConfigBean.LOGGER.info("Wrote base configuration!");
 }
Esempio n. 2
0
 /** Refreshes the base configuration bean with the global configuration.<br> */
 public final void refreshBaseConfig() {
   this.docBasedir = ConfigManager.getInstance().getConfig().getBaseConfig().getDocBasedir();
   this.fileLockTime = ConfigManager.getInstance().getConfig().getBaseConfig().getFileLockTime();
   this.numRecentChanges =
       ConfigManager.getInstance().getConfig().getBaseConfig().getNumRecentChanges();
   this.userDocrootPermission =
       ConfigManager.getInstance().getConfig().getBaseConfig().getUserDocrootPermission();
   this.userFilePermission =
       ConfigManager.getInstance().getConfig().getBaseConfig().getUserFilePermission();
   this.pubCompiledDocPermission =
       ConfigManager.getInstance().getConfig().getBaseConfig().getPubCompiledDocPermission();
   this.pubFilePermission =
       ConfigManager.getInstance().getConfig().getBaseConfig().getPubFilePermission();
 }