@Override protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) { if (source instanceof MultipleSelectionElement) { MultipleSelectionElement publishCheckbox = (MultipleSelectionElement) source; if (publishCheckbox.isEnabled()) { boolean enabled = publishCheckbox.isAtLeastSelected(1); String propName = (String) publishCheckbox.getUserObject(); // load and update config HomePageConfig conf = hpcm.loadConfigFor(identityToModify.getName()); conf.setEnabled(propName, enabled); hpcm.saveConfigTo(identityToModify.getName(), conf); updatePreview(ureq, conf); } } super.formInnerEvent(ureq, source, event); }
/** @return */ public boolean isWaitingListEnabled() { return enableWaitingList.isEnabled() && enableWaitingList.getSelectedKeys().size() != 0; }