Package org.apache.airavata.registry.api.exception.worker

Examples of org.apache.airavata.registry.api.exception.worker.WorkspaceProjectAlreadyExistsException


  }

    public void addWorkspaceProject(WorkspaceProject project) throws RegistryException {
      WorkerResource worker = jpa.getWorker();
    if (isWorkspaceProjectExists(project.getProjectName())){
          throw new WorkspaceProjectAlreadyExistsException(createProjName(project.getProjectName()));
        }
    ProjectResource projectResource = worker.createProject(createProjName(project.getProjectName()));
    projectResource.save();
    }
View Full Code Here


        if (projectsRegistry != null){
            projectsRegistry.addWorkspaceProject(project);
        } else {
            WorkerResource worker = jpa.getWorker();
            if (isWorkspaceProjectExists(project.getProjectName())){
                throw new WorkspaceProjectAlreadyExistsException(createProjName(project.getProjectName()));
            }
            ProjectResource projectResource = worker.createProject(createProjName(project.getProjectName()));
            projectResource.save();
        }
    }
View Full Code Here

        if (projectsRegistry != null){
            projectsRegistry.addWorkspaceProject(project);
        } else {
            WorkerResource worker = jpa.getWorker();
            if (isWorkspaceProjectExists(project.getProjectName())){
                throw new WorkspaceProjectAlreadyExistsException(createProjName(project.getProjectName()));
            }
            ProjectResource projectResource = worker.createProject(createProjName(project.getProjectName()));
            projectResource.save();
        }
    }
View Full Code Here

        if (projectsRegistry != null){
            projectsRegistry.addWorkspaceProject(project);
        } else {
            WorkerResource worker = jpa.getWorker();
            if (isWorkspaceProjectExists(project.getProjectName())){
                throw new WorkspaceProjectAlreadyExistsException(createProjName(project.getProjectName()));
            }
            ProjectResource projectResource = worker.createProject(createProjName(project.getProjectName()));
            projectResource.save();
        }
    }
View Full Code Here

        if (projectsRegistry != null){
            projectsRegistry.addWorkspaceProject(project);
        } else {
            WorkerResource worker = jpa.getWorker();
            if (isWorkspaceProjectExists(project.getProjectName())){
                throw new WorkspaceProjectAlreadyExistsException(createProjName(project.getProjectName()));
            }
            ProjectResource projectResource = worker.createProject(createProjName(project.getProjectName()));
            projectResource.save();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.registry.api.exception.worker.WorkspaceProjectAlreadyExistsException

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.