示例#1
0
文件: AddSitePage.java 项目: IQSS/dvn
 private void saveClassifications(VDC createdVDC) {
   for (ClassificationUI classUI : classificationList.getClassificationUIs()) {
     if (classUI.isSelected()) {
       createdVDC.getVdcGroups().add(classUI.getVdcGroup());
     }
   }
 }
示例#2
0
文件: AddSitePage.java 项目: IQSS/dvn
  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;
    }
  }