Пример #1
0
  @Override
  public void saveParam(Object obj) throws Exception {
    final OptionsParam options = (OptionsParam) obj;
    final DatabaseParam param = options.getDatabaseParam();

    param.setCompactDatabase(checkBoxCompactDatabase.isSelected());
  }
Пример #2
0
 @Override
 public void saveParam(Object obj) throws Exception {
   OptionsParam optionsParam = (OptionsParam) obj;
   AntiCsrfParam antiCsrfParam = optionsParam.getAntiCsrfParam();
   antiCsrfParam.setTokens(getAntiCsrfModel().getElements());
   antiCsrfParam.setConfirmRemoveToken(!tokensOptionsPanel.isRemoveWithoutConfirmation());
 }
Пример #3
0
  @Override
  public void initParam(Object obj) {
    final OptionsParam options = (OptionsParam) obj;
    final DatabaseParam param = options.getDatabaseParam();

    checkBoxCompactDatabase.setSelected(param.isCompactDatabase());
  }
Пример #4
0
 @Override
 public void initParam(Object obj) {
   OptionsParam optionsParam = (OptionsParam) obj;
   AntiCsrfParam param = optionsParam.getAntiCsrfParam();
   getAntiCsrfModel().setTokens(param.getTokens());
   tokensOptionsPanel.setRemoveWithoutConfirmation(!param.isConfirmRemoveToken());
 }
 @Override
 public void saveParam(Object obj) throws Exception {
   OptionsParam optionsParam = (OptionsParam) obj;
   HttpSessionsParam sessionParam = optionsParam.getParamSet(HttpSessionsParam.class);
   sessionParam.setDefaultTokens(getDefaultTokensModel().getTokens());
   sessionParam.setEnabledProxyOnly(getChkProxyOnly().isSelected());
   sessionParam.setConfirmRemoveDefaultToken(!tokensOptionsPanel.isRemoveWithoutConfirmation());
 }
 @Override
 public void initParam(Object obj) {
   // Initialize the default token names
   OptionsParam optionsParam = (OptionsParam) obj;
   HttpSessionsParam param = optionsParam.getParamSet(HttpSessionsParam.class);
   getDefaultTokensModel().setTokens(param.getDefaultTokens());
   getChkProxyOnly().setSelected(param.isEnabledProxyOnly());
   tokensOptionsPanel.setRemoveWithoutConfirmation(!param.isConfirmRemoveDefaultToken());
 }
Пример #7
0
 @Override
 public void initParam(Object obj) {
   OptionsParam optionsParam = (OptionsParam) obj;
   PassiveScanParam passiveScanParam =
       (PassiveScanParam) optionsParam.getParamSet(PassiveScanParam.class);
   getTableModel().setScanDefns(passiveScanParam.getAutoTagScanners());
   scannersOptionsPanel.setRemoveWithoutConfirmation(
       !passiveScanParam.isConfirmRemoveAutoTagScanner());
 }
Пример #8
0
  @Override
  public void saveParam(Object obj) throws Exception {
    OptionsParam optionsParam = (OptionsParam) obj;
    PassiveScanParam passiveScanParam =
        (PassiveScanParam) optionsParam.getParamSet(PassiveScanParam.class);
    passiveScanParam.setAutoTagScanners(getTableModel().getElements());
    passiveScanParam.setConfirmRemoveAutoTagScanner(
        !scannersOptionsPanel.isRemoveWithoutConfirmation());

    passiveScanners.setAutoTagScanners(passiveScanParam.getAutoTagScanners());
  }