Package com.projity.pm.task

Examples of com.projity.pm.task.TaskSnapshot


//              }

              assignment.getDetail().setTask(task);
              assignment.getDetail().setResource(resource);
              Object snapshotId=new Integer(s);
              TaskSnapshot snapshot=(TaskSnapshot)task.getSnapshot(snapshotId);

              //TODO was commented but needed for loading  because task.getSnapshot(snapshotId)==null
              //for snapshots other than CURRENT
              if (snapshot==null){
                snapshot=new TaskSnapshot();
                snapshot.setCurrentSchedule(task.getCurrentSchedule());
                task.setSnapshot(snapshotId,snapshot);
              }
              if (Snapshottable.TIMESHEET.equals(snapshotId)) {
                assignment.setTimesheetAssignment(true);
              }
              //

              snapshot.addAssignment(assignment);

              if (assigned&&Snapshottable.CURRENT.equals(snapshotId)) resource.addAssignment(assignment);

              if (assignmentData!=null) assignmentData.emtpy();
              //incremental.addAssignment(assignmentData);
View Full Code Here


          dependencies.addAll(depsSet);

              //check assignments, if resource not present change it to unassigned

              for (int s=0;s<Settings.numBaselines();s++){
                TaskSnapshot snapshot=(TaskSnapshot)task.getSnapshot(new Integer(s));
                    if (snapshot==null) continue;
                  AssociationList snapshotAssignments=snapshot.getHasAssignments().getAssignments();
                  if (snapshotAssignments.size()>0){
//                    ArrayList<Assignment> assignmentsToLink=new ArrayList<Assignment>();
                      for (Iterator a=snapshotAssignments.listIterator();a.hasNext();){
                          Assignment assignment=(Assignment)a.next();
                          Resource resource=assignment.getResource();
View Full Code Here

    if (projityTask == null)
      return;
    for (int s = 0; s < Settings.numBaselines(); s++) {
      if (s == Snapshottable.CURRENT.intValue())
        continue;
      TaskSnapshot snapshot = (TaskSnapshot) projityTask.getSnapshot(new Integer(s));
      if (snapshot == null)
        continue;
      AssociationList snapshotAssignments = snapshot.getHasAssignments().getAssignments();
      if (snapshotAssignments.size() > 0) {
        for (Iterator j = snapshotAssignments.iterator(); j.hasNext();) {
          Assignment assignment = (Assignment) j.next();
          ResourceImpl r = (ResourceImpl) assignment.getResource();
          if (r.isDefault())
View Full Code Here

TOP

Related Classes of com.projity.pm.task.TaskSnapshot

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.