Exemple #1
0
  public ActionForward setup(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    GpIntegrationForm gpForm = (GpIntegrationForm) form;
    /*setup the defined Disease query names and the list of samples selected from a Resultset*/
    ClinicalGroupRetriever clinicalGroupRetriever =
        new ClinicalGroupRetriever(request.getSession());
    gpForm.setExistingGroupsList(clinicalGroupRetriever.getClinicalGroupsCollection());

    UserListBeanHelper listHelper = new UserListBeanHelper(request.getSession());
    // fetch the users gene groups populate the dropdown
    List<String> names = (List<String>) listHelper.getGenericListNames(ListType.Gene);
    List<LabelValueBean> gsNameList = new ArrayList<LabelValueBean>();
    for (String listName : names) {
      gsNameList.add(new LabelValueBean(listName, listName));
    }
    gpForm.setGeneSetNameList(gsNameList);
    return mapping.findForward("success");
  }