Package org.cipres.treebase.domain.study

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


      HttpServletRequest request,
      HttpServletResponse response,
      BindException myerrors) throws Exception {
   
    BeanUtils.copyProperties(analysisStepCommand, analysisStep);
    Software s = analysisStepCommand.getSoftwareInfo();
    if (TreebaseUtil.isEmpty(s.getName())) {
      s = null;
    } else {
      getAnalysisService().save(s);
      s = getAnalysisService().update(s);
   
View Full Code Here


      TBPermission perm2 = getAnalysisService().getPermission(username, analysis_id);
      if (perm2 == TBPermission.WRITE || perm2 == TBPermission.READ_ONLY
        || perm2 == TBPermission.SUBMITTED_WRITE) {

        BeanUtils.copyProperties(analysisStep, analysisStepCommand);
        Software software = analysisStep.getSoftwareInfo();
        analysisStepCommand.setSoftwareInfo(software);
        Algorithm algorithm = analysisStep.getAlgorithmInfo();
        if ( algorithm != null ) {
          analysisStepCommand.setAlgorithmType(algorithm.getAlgorithmType());
          analysisStepCommand.setAlgorithmMap(algorithm.getAlgorithmType(), algorithm);
View Full Code Here

  public void setSoftwareInfo(Software softwareInfo) {
    //ALERT: make sure to handle null case.
    // a better way is to get rid of software here, but defines softwareName,
    //softwareVersion etc. properties to display in jsp page!!!
    if (softwareInfo == null) {
      this.softwareInfo = new Software();
    }
    else {
      this.softwareInfo = softwareInfo;
    }
  }
View Full Code Here

        }
      }
     
      // TODO: fix submission taxa list
             
      Software theSoftware = new Software();
      theSoftware.setName(an.getString("software"));
      ContextManager.getStudyService().save(theSoftware); // XXX should be SoftwareService
      theAnalysisStep.setSoftwareInfo(theSoftware);
         
      theAnalysisStep.setNotes("Imported from TB1");
      ContextManager.getAnalysisStepService().save(theAnalysisStep);
View Full Code Here

      nexAnalysisStep.addAnnotationValue("tb:analysisstep.commands", Constants.TBTermsURI, tbAnalysisStep.getCommands());
      logger.info("attached analysis step commands");
    }   
   
    // process software metadata
    Software tbSoftware = tbAnalysisStep.getSoftwareInfo();
    attachSoftwareMetadata(nexAnalysisStep, tbSoftware);
   
    // process algorithm metadata
    Algorithm tbAlgorithm = tbAnalysisStep.getAlgorithmInfo();
    attachAlgorithmMetadata(nexAnalysisStep, tbAlgorithm);
View Full Code Here

TOP

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

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.