Package com.projity.session

Examples of com.projity.session.Session


          }
        }
      }
    });
    if (projects.size()>0){
      Session session=SessionFactory.getInstance().getSession(opt.isLocal());
      final SaveOptions o=(SaveOptions)opt.clone();
      o.setPostSaving(new Closure() {
        public void execute(Object obj) {
          Project p = (Project)obj;
          p.setAllTasksAsUnchangedFromPersisted(true);
          p.validateNewDistributionMap();
          portfolio.handleExternalTasks(p,false, true);     // external link handling
          if (opt.getPostSaving()!=null) opt.getPostSaving().execute(obj); //id, combobox update
        }
      });
      Job job=session.getSaveProjectJob(projects,o);
      return job;
    }
    return null;
  }
View Full Code Here


          projects.add(impl);
        }
      }
    });
    if (projects.size()>0){
      Session session=SessionFactory.getInstance().getSession(project.isLocal()); //assume same type for subprojets
      Job job=session.getCloseProjectsJob(projects);
      return job;
    }
    return null;
  }
View Full Code Here

  }

  public void removeProject(final Project project, boolean allowCancel, boolean prompt,boolean calledFromSwing) {
    Job job=getRemoveProjectJob(project,allowCancel,prompt,calledFromSwing);
    if (job != null) { // if not cancelled
      Session session=SessionFactory.getInstance().getSession(project.isLocal());
      session.schedule(job);
    }
  }
View Full Code Here

  }
  public Collection getWritableProjectsList() {
    return portfolio.getWritableProjectList();
  }
  public static Object getProjectData(long projectId) {
    Session session = SessionFactory.getInstance().getSession(false);
    return SessionFactory.callNoEx(session, "getProjectData", new Class[] {Long.class}, new Object[] {projectId});


  //  getProjectData(projectId);
View Full Code Here

TOP

Related Classes of com.projity.session.Session

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.