コード例 #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());
 }
コード例 #5
0
 @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());
 }
コード例 #6
0
 @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());
  }