Beispiel #1
0
  /**
   * Changes for build 16 to support scholar dataverses and display
   *
   * @author wbossons
   */
  private List<SelectItem> loadNetworkSelectItems() {
    List selectItems = new ArrayList<SelectItem>();
    List<VDCNetwork> networkList = vdcNetworkService.getVDCSubNetworks();

    if (networkList.size() > 0) {
      selectItems.add(new SelectItem(0, "<None>"));
      for (VDCNetwork vdcNetwork : networkList) {
        selectItems.add(new SelectItem(vdcNetwork.getId(), vdcNetwork.getName()));
      }
    }
    return selectItems;
  }
Beispiel #2
0
 public List getDataverseOptions() {
   if (this.dataverseOptions == null) {
     dataverseOptions = new ArrayList();
     /**
      * Choose Scholar if this dataverse will have your own name and will contain your own
      * research, and Basic for any other dataverse.
      *
      * <p>Select the group that will most likely fit your dataverse, be it a university
      * department, a journal, a research center, etc. If you create a Scholar dataverse, it will
      * be automatically entered under the Scholar group.
      */
     try {
       String scholarOption = messagebundle.getString("scholarOption");
       String basicOption = messagebundle.getString("basicOption");
       String scholarLabel = messagebundle.getString("scholarOptionDetail");
       String basicLabel = messagebundle.getString("basicOptionDetail");
       dataverseOptions.add(new SelectItem(basicOption, basicLabel));
       dataverseOptions.add(new SelectItem(scholarOption, scholarLabel));
     } catch (Exception uee) {
       System.out.println("Exception:  " + uee.toString());
     }
   }
   return dataverseOptions;
 }