}
protected Component buildStrategyTab() {
strategyDialog = ADialogBuilder.buildDialog(SecurityConfigurationDialogBuilder.Strategy.class, null);
XFormRadioGroup strategy = (XFormRadioGroup) strategyDialog.getFormField(Strategy.STRATEGY);
final String[] strategyOptions = new String[]{"One by One", "All At Once"};
strategy.setOptions(strategyOptions);
if (securityCheck.getExecutionStrategy().getStrategy() == StrategyTypeConfig.NO_STRATEGY) {
strategy.setEnabled(false);
} else {
if (securityCheck.getExecutionStrategy().getStrategy() == StrategyTypeConfig.ONE_BY_ONE) {
strategy.setValue(strategyOptions[0]);
} else {
strategy.setValue(strategyOptions[1]);
}
}
// default is ONE_BY_ONE
if (securityCheck.getExecutionStrategy().getImmutable()) {
strategy.setDisabled();
}
strategy.addFormFieldListener(new XFormFieldListener() {
@Override
public void valueChanged(XFormField sourceField, String newValue, String oldValue) {
if (newValue.equals(strategyOptions[0])) {
securityCheck.getExecutionStrategy().setStrategy(StrategyTypeConfig.ONE_BY_ONE);