public Project Project( String name, String dbUrl, String dbUser, String dbPassword, String[] dbSchemas) { ProjectPK pk = new ProjectPK(ctx.getCustomerId(), getNewID(name)); Project project = new Project(pk, name); project.setDbUrl(dbUrl); project.setDbUser(dbUser); project.setDbPassword(dbPassword); project.setDbSchemas(Arrays.asList(dbSchemas)); project = ProjectServiceBaseImpl.getInstance().store(ctx, project); return project; }
/** * @deprecated * @param name * @param expression * @return */ public Project Project(String name, Expression expression) { ProjectPK pk = new ProjectPK(ctx.getCustomerId(), getNewID()); Project project = new Project(pk, name); project = ProjectServiceBaseImpl.getInstance().store(ctx, project); return project; }