Package org.cipres.treebase.domain.study

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


      boolean exactMatch, CQLRelation relation) throws InstantiationException, ParseException {
   
    String keywordSearchTerm = "%" + searchTerm + "%";
    Collection<Study> matches = new HashSet<Study>();
    StudyService studyService = getSearchService().getStudyService();
    SubmissionService submissionService =  getSearchService().getSubmissionService();
       
    switch (searchType) {
      case byID:
        matches = (Collection<Study>) doSearchByIDString(request, studyService, Study.class, searchTerm);
        break;
View Full Code Here


  }
 
  public static Submission getPseudoSubmission(String name) {
    if (pseudoSubmission == null) {
      StudyHome sh = ContextManager.getStudyHome();
      SubmissionService ss = ContextManager.getSubmissionService();
      Collection<Study> pseudoStudies = sh.findByName(name, true);
      if (pseudoStudies.size() == 0) {
        pseudoSubmission = ss.createSubmission(null, null);
        pseudoSubmission.getStudy().setName(name);
        ss.save(pseudoSubmission.getStudy());
        sh.flush();
      } else if (pseudoStudies.size() == 1) {
        Study pseudoStudy = pseudoStudies.iterator().next();
        pseudoSubmission = pseudoStudy.getSubmission();
      } else {
View Full Code Here

TOP

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

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.