示例#1
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());
 }
示例#2
0
 @Override
 public void initParam(Object obj) {
   OptionsParam optionsParam = (OptionsParam) obj;
   AntiCsrfParam param = optionsParam.getAntiCsrfParam();
   getAntiCsrfModel().setTokens(param.getTokens());
   tokensOptionsPanel.setRemoveWithoutConfirmation(!param.isConfirmRemoveToken());
 }