Package org.apache.airavata.registry.api

Examples of org.apache.airavata.registry.api.AiravataExperiment


        }
        ProjectResource project = jpa.getWorker().getProject(createProjName(projectName));
      List<ExperimentResource> experiments = project.getExperiments();
      List<AiravataExperiment> result=new ArrayList<AiravataExperiment>();
      for (ExperimentResource resource : experiments) {
      AiravataExperiment e = createAiravataExperimentObj(resource);
      result.add(e);
    }
        return result;
    }
View Full Code Here


      return true;
    }else if (createIfNotPresent){
      if (!isWorkspaceProjectExists(DEFAULT_PROJECT_NAME, true)){
        throw new WorkspaceProjectDoesNotExistsException(createProjName(DEFAULT_PROJECT_NAME));
      }
      AiravataExperiment experiment = new AiravataExperiment();
      experiment.setExperimentId(experimentId);
      experiment.setSubmittedDate(Calendar.getInstance().getTime());
      experiment.setGateway(getGateway());
      experiment.setUser(getUser());
      addExperiment(DEFAULT_PROJECT_NAME, experiment);
      return jpa.getWorker().isExperimentExists(experimentId);
    }else{
      return false;
    }
View Full Code Here

        }
        WorkerResource worker = jpa.getWorker();
      List<AiravataExperiment> result=new ArrayList<AiravataExperiment>();
      List<ExperimentResource> experiments = worker.getExperiments();
      for (ExperimentResource resource : experiments) {
      AiravataExperiment e = createAiravataExperimentObj(resource);
      result.add(e);
    }
        return result;
    }
View Full Code Here

        return result;
    }

  private AiravataExperiment createAiravataExperimentObj(
      ExperimentResource resource) {
    AiravataExperiment e = new AiravataExperiment();
    e.setExperimentId(resource.getExpID());
    e.setUser(new AiravataUser(resource.getWorker().getUser()));
    e.setSubmittedDate(new Date(resource.getSubmittedDate().getTime()));
    e.setGateway(new Gateway(resource.getGateway().getGatewayName()));
    e.setProject(new WorkspaceProject(getProjName(resource.getProject().getName()), this));
    return e;
  }
View Full Code Here

        }
        ProjectResource project = jpa.getWorker().getProject(createProjName(projectName));
      List<ExperimentResource> experiments = project.getExperiments();
      List<AiravataExperiment> result=new ArrayList<AiravataExperiment>();
      for (ExperimentResource resource : experiments) {
      AiravataExperiment e = createAiravataExperimentObj(resource);
      result.add(e);
    }
        return result;
    }
View Full Code Here

      return true;
    }else if (createIfNotPresent){
      if (!isWorkspaceProjectExists(DEFAULT_PROJECT_NAME, true)){
        throw new WorkspaceProjectDoesNotExistsException(createProjName(DEFAULT_PROJECT_NAME));
      }
      AiravataExperiment experiment = new AiravataExperiment();
      experiment.setExperimentId(experimentId);
      experiment.setSubmittedDate(Calendar.getInstance().getTime());
      experiment.setGateway(getGateway());
      experiment.setUser(getUser());
      addExperiment(DEFAULT_PROJECT_NAME, experiment);
      return jpa.getWorker().isExperimentExists(experimentId);
    }else{
      return false;
    }
View Full Code Here

        }
        WorkerResource worker = jpa.getWorker();
      List<AiravataExperiment> result=new ArrayList<AiravataExperiment>();
      List<ExperimentResource> experiments = worker.getExperiments();
      for (ExperimentResource resource : experiments) {
      AiravataExperiment e = createAiravataExperimentObj(resource);
      result.add(e);
    }
        return result;
    }
View Full Code Here

        return result;
    }

  private AiravataExperiment createAiravataExperimentObj(
      ExperimentResource resource) {
    AiravataExperiment e = new AiravataExperiment();
    e.setExperimentId(resource.getExpID());
    e.setUser(new AiravataUser(resource.getWorker().getUser()));
    e.setSubmittedDate(new Date(resource.getSubmittedDate().getTime()));
    e.setGateway(new Gateway(resource.getGateway().getGatewayName()));
    e.setProject(new WorkspaceProject(getProjName(resource.getProject().getName()), this));
    return e;
  }
View Full Code Here

        }
        ProjectResource project = jpa.getWorker().getProject(createProjName(projectName));
      List<ExperimentResource> experiments = project.getExperiments();
      List<AiravataExperiment> result=new ArrayList<AiravataExperiment>();
      for (ExperimentResource resource : experiments) {
      AiravataExperiment e = createAiravataExperimentObj(resource);
      result.add(e);
    }
        return result;
    }
View Full Code Here

      return true;
    }else if (createIfNotPresent){
      if (!isWorkspaceProjectExists(DEFAULT_PROJECT_NAME, true)){
        throw new WorkspaceProjectDoesNotExistsException(createProjName(DEFAULT_PROJECT_NAME));
      }
      AiravataExperiment experiment = new AiravataExperiment();
      experiment.setExperimentId(experimentId);
      experiment.setSubmittedDate(Calendar.getInstance().getTime());
      experiment.setGateway(getGateway());
      experiment.setUser(getUser());
      addExperiment(DEFAULT_PROJECT_NAME, experiment);
      return jpa.getWorker().isExperimentExists(experimentId);
    }else{
      return false;
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.registry.api.AiravataExperiment

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.