Package org.apache.airavata.persistance.registry.jpa.model

Examples of org.apache.airavata.persistance.registry.jpa.model.Gateway


        publishedWorkflow.setPublish_workflow_name(getName());
        publishedWorkflow.setPublished_date(publishedDate);
        publishedWorkflow.setVersion(version);
        byte[] bytes = content.getBytes();
        publishedWorkflow.setWorkflow_content(bytes);
        Gateway gateway = new Gateway();
        gateway.setGateway_name(this.gateway.getGatewayName());
        publishedWorkflow.setGateway(gateway);
        Users user = new Users();
        user.setUser_name(createdUser);
        publishedWorkflow.setUser(user);
        if(existingWF != null){
View Full Code Here


        em = ResourceUtils.getEntityManager();
        em.getTransaction().begin();
        Project project = new Project();
        project.setProject_name(name);
        Gateway modelGateway = em.find(Gateway.class, gateway.getGatewayName());
        project.setGateway(modelGateway);
        Users user = em.find(Users.class, worker.getUser());
        project.setUsers(user);

        if(existingprojectResource != null){
View Full Code Here

        em.getTransaction().begin();
        Experiment experiment = new Experiment();
        Project projectmodel = em.find(Project.class, project.getName());
        experiment.setProject(projectmodel);
        Users user = em.find(Users.class, getWorker().getUser());
        Gateway gateway = em.find(Gateway.class, getGateway().getGatewayName());
        experiment.setProject(projectmodel);
        experiment.setExperiment_ID(getExpID());
        experiment.setUser(user);
        experiment.setGateway(gateway);
        experiment.setSubmitted_date(submittedDate);
View Full Code Here

        em = ResourceUtils.getEntityManager();
        em.getTransaction().begin();
        Project project = new Project();
        project.setProject_name(name);
        Gateway modelGateway = em.find(Gateway.class, gateway.getGatewayName());
        project.setGateway(modelGateway);
        Users user = em.find(Users.class, worker.getUser());
        project.setUsers(user);

        if(existingprojectResource != null){
View Full Code Here

            publishedWorkflow.setPublish_workflow_name(getName());
            publishedWorkflow.setPublished_date(publishedDate);
            publishedWorkflow.setVersion(version);
            byte[] bytes = content.getBytes();
            publishedWorkflow.setWorkflow_content(bytes);
            Gateway existingGateway = em.find(Gateway.class, gateway.getGatewayName());
            publishedWorkflow.setGateway(existingGateway);
            publishedWorkflow.setGateway_name(existingGateway.getGateway_name());
            Users user = em.find(Users.class, createdUser);
            publishedWorkflow.setUser(user);
            if (existingWF != null) {
                existingWF.setUser(user);
                existingWF.setGateway(existingGateway);
                existingWF.setGateway_name(existingGateway.getGateway_name());
                existingWF.setPublished_date(publishedDate);
                existingWF.setWorkflow_content(bytes);
                existingWF.setVersion(version);
                existingWF.setPath(path);
                publishedWorkflow = em.merge(existingWF);
View Full Code Here

    }

    public static Resource getGateway(String gatewayName){
        if (isGatewayExist(gatewayName)) {
            EntityManager em = getEntityManager();
            Gateway gateway = em.find(Gateway.class, gatewayName);
            GatewayResource gatewayResource = (GatewayResource)Utils.getResource(ResourceType.GATEWAY, gateway);
            em.close();
            return gatewayResource;
        }
        return null;
View Full Code Here

     */
    public static void addGatewayWorker(GatewayResource gatewayResource, UserResource userResource) {
        try {
            EntityManager em = getEntityManager();
            em.getTransaction().begin();
            Gateway gateway = new Gateway();
            gateway.setGateway_name(gatewayResource.getGatewayName());
            Users user = new Users();
            user.setUser_name(userResource.getUserName());
            Gateway_Worker gatewayWorker = new Gateway_Worker();
            gatewayWorker.setGateway(gateway);
            gatewayWorker.setUser(user);
View Full Code Here

TOP

Related Classes of org.apache.airavata.persistance.registry.jpa.model.Gateway

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.