private void saveClassifications(VDC createdVDC) { for (ClassificationUI classUI : classificationList.getClassificationUIs()) { if (classUI.isSelected()) { createdVDC.getVdcGroups().add(classUI.getVdcGroup()); } } }
public boolean validateClassificationCheckBoxes() { if (!getVDCRequestBean().getCurrentVdcNetwork().isRequireDVclassification()) { return true; } else { for (ClassificationUI classUI : classificationList.getClassificationUIs()) { if (classUI.isSelected()) { return true; } } FacesMessage message = new FacesMessage("You must select at least one classification for your dataverse."); FacesContext.getCurrentInstance().addMessage("addsiteform", message); return false; } }