Package org.cipres.treebase.domain.study

Examples of org.cipres.treebase.domain.study.Submission


     
      TaxonLabelSet tSet=pTreeBlock.getTaxonLabelSet();
     
      // bi-directional relationships:
      // * submission -> treeblock
      Submission sub = getSubmissionHome().findByTreeBlock(pTreeBlock);
      if (sub != null) {
        sub.removePhyloTreeBlock(pTreeBlock);
      }

      // cascade delete all trees by hibernate:
      // bi-directional relationships:
      // * remove analysisStep --> phyloTree
View Full Code Here


    // 2. query
    Matrix m = (Matrix) loadObject(Matrix.class, matrixId);
    assertTrue(m != null);

    Submission s = getFixture().findByMatrix(m);
    assertTrue(s != null);

    // 3. verify
    String sqlStr = "select count(*) from sub_matrix where submission_id = " + s.getId()
      + " and matrix_id = " + m.getId();
    int count = jdbcTemplate.queryForInt(sqlStr);
    assertTrue(count == 1);

    if (logger.isInfoEnabled()) {
View Full Code Here

    // 2. query
    PhyloTree tree = (PhyloTree) loadObject(PhyloTree.class, treeId);
    assertTrue(tree != null);

    Submission s = getFixture().findByTree(tree);
    assertTrue(s != null);

    // 3. verify
    String sqlStr = "select count(*) from sub_treeblock st, phylotree t where st.submission_id = " + s.getId()
      + " and st.treeblock_id = t.treeblock_id and t.phylotree_id = " + tree.getId();
    int count = jdbcTemplate.queryForInt(sqlStr);
    assertTrue(count == 1);

    if (logger.isInfoEnabled()) {
View Full Code Here

    if (LOGGER.isInfoEnabled()) {
      LOGGER.info("NUMBER OF SUBMISSIONS: " + submissioncount);
    }

    while (submissionIterator.hasNext()) {
      Submission pSubmission = submissionIterator.next();
      if (LOGGER.isInfoEnabled()) {
        LOGGER.info("Submission ID: " + pSubmission.getId());
      }
      getSubmissionService().deleteSubmission(pSubmission);

    }
View Full Code Here

    if (files.isEmpty()) {
      return new ModelAndView(getCancelView());
    }

    Study study = ControllerUtil.findStudy(request, getStudyService());
    Submission submission = study.getSubmission();
    MyProgressionListener listener = new MyProgressionListener();

    getSubmissionService().addNexusFiles(submission, files, listener);
    getStudyService().addNexusFiles(study, files);
View Full Code Here

 
    }

    public ModelAndView GetRecord( OAIPMHCommand params, Map model){
     
      Submission submission = null
     
      try{
         long id = IdentifyUtil.parseID(params);
           submission = studyService.findByID(id).getSubmission();
      }catch(NumberFormatException nfe){
View Full Code Here

     
    }
   
    public ModelAndView ListMetadataFormats(OAIPMHCommand params, Map model){
   
      Submission submission = null
     
      try{
         long id = IdentifyUtil.parseID(params);
           submission = studyService.findByID(id).getSubmission();
      }catch(NumberFormatException nfe){
View Full Code Here

   */
  public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
    throws Exception {

    Study study = ControllerUtil.findStudy(request, mStudyService);
    Submission submission = (Submission) study.getSubmission();

    StudyCommand studyCommand = new StudyCommand();
    // copy study information
    studyCommand.setStudy(study);
    // study from TBI do not contain submission_id
    if (submission != null) {
      studyCommand.setSubmission_id(submission.getId());
    }

    List<Analysis> analysisList = study.getAnalyses();
    List<AnalysisCommand> analysisCommandList = new ArrayList<AnalysisCommand>();
    List<Analysis> changedAnalyses = new ArrayList<Analysis>();
View Full Code Here

    // relationship managmenet:
    // * if the user has submission:
    Iterator<Submission> iter = pUser.getSubmissionIterator();
    while (iter.hasNext()) {
      Submission element = iter.next();
      element.setSubmitter(null);
    }

    super.deletePersist(pUser);
  }
View Full Code Here

      // study.setCitation(c);

      // retrieve Study object from session to be submitted with citation
      // Study study = (Study) request.getSession().getAttribute(Constants.STUDY_KEY);
      // citationCommand.getCitationMap(citationType).setStudy(study);
      Submission submission = mSubmissionService.createSubmission(user, study);

      // save Study object to session and remove
      ControllerUtil.saveStudy(request, submission.getStudy());

    } else if (request.getParameter(ACTION_UPDATE) != null) {
      mStudyService.update(study);
    } else if (request.getParameter(ACTION_DELETE) != null) {
View Full Code Here

TOP

Related Classes of org.cipres.treebase.domain.study.Submission

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.