@Override
  public void saveParam(Object obj) throws Exception {
    final OptionsParam options = (OptionsParam) obj;
    final DatabaseParam param = options.getDatabaseParam();

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

    checkBoxCompactDatabase.setSelected(param.isCompactDatabase());
  }
 @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());
 }
Beispiel #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());
 }
Beispiel #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());
  }