Exemplo n.º 1
0
 private void saveClassifications(VDC createdVDC) {
   for (ClassificationUI classUI : classificationList.getClassificationUIs()) {
     if (classUI.isSelected()) {
       createdVDC.getVdcGroups().add(classUI.getVdcGroup());
     }
   }
 }
Exemplo n.º 2
0
  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;
    }
  }