Package com.melitronic.domain.entity

Examples of com.melitronic.domain.entity.Task


      return resp;
    }
   
    public Task store(Task task, Item item, Sprint sprint, Person person, CallContext context) {
     
      Task resp = PmTask.instance().store(task, item, sprint, person, em, context);
     
      return resp;
    }
View Full Code Here


    }


    public Task store(Task task, ItemImplementation ii, TeamMember teamMemeber, EntityManager em, CallContext context) {

      Task last = null;
      boolean isNew = task.getId() == null;
      if (isNew) {
          Collection<Task> tasks = ii.getTasks();
          if (tasks != null && tasks.size() > 0) {
            for (Task t : tasks) {
              if (t.getNextId() == null) {
                last = t;
                break;
              }
            }
          }
      }
      else {
        task = (Task)refresh(task, em, context);
      }
     
      task.setItemImplementation(ii);
     
    task.setTeamMember(teamMemeber);

      persist(task, em, context);
     
      if (isNew && last !=null) {
        last.setNextId(task.getId());
        persist(last, em, context);
      }

      return task;
    }
View Full Code Here

      return task;
    }
   
    public void changePositions(Task entity, EntityManager em, CallContext context) {
    Task ta = (Task)PmDeployment.instance().findById(entity, em, context);
    ta.setNextId(entity.getNextId());
    persist(ta, em, context);
    }
View Full Code Here

      item.setItemType(ItemType.FEATURE);
      item.setDeployment(deployment);
      deployment.getItems().add(item);
      PmDeployment.instance().persist(item, em, context);

        Task task = new Task();
        task.setName("Task 1.3.2 name");
        task.setEstimation(new Integer(8));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        ItemImplementation ii = new ItemImplementation();
        item.getItemImplementation().add(ii);
        ii.setItem(item);
        PmDeployment.instance().persist(ii, em, context);
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          TaskEstimation tes = new TaskEstimation();
          tes.setEstimation(new Integer(8));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (3*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);

        Task prevTask = task;
        task = new Task();
        task.setName("Task 1.3.1 name");
        task.setEstimation(new Integer(5));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        task.setNextId(prevTask.getId());
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(5));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (2*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);

      Item prevItem = item;
      item = new Item();
      item.setSummary("Item 1.2 summary");
      item.setEffort(new Integer(14));
      item.setItemKey("P1-2");
      cal = GregorianCalendar.getInstance();
      cal.setTimeInMillis(System.currentTimeMillis() + (4*24*60*60*1000));
      item.setDueDate(cal);
      item.setDescription("diiba daaba\njou jou");
      item.setItemType(ItemType.FEATURE);
      item.setNextId(prevItem.getId());
      item.setDeployment(deployment);
      deployment.getItems().add(item);
      PmDeployment.instance().persist(item, em, context);

        task = new Task();
        task.setName("Task 1.2.2 name");
        task.setEstimation(new Integer(8));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        ii = new ItemImplementation();
        item.getItemImplementation().add(ii);
        ii.setItem(item);
        PmDeployment.instance().persist(ii, em, context);
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(8));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (1*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);
 
        prevTask = task;
        task = new Task();
        task.setName("Task 1.2.1 name");
        task.setEstimation(new Integer(5));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        task.setNextId(prevTask.getId());
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(5));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (2*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);

      prevItem = item;
      item = new Item();
      item.setSummary("Item 1.1 summary");
      item.setEffort(new Integer(8));
      item.setItemKey("P1-1");
      cal = GregorianCalendar.getInstance();
      cal.setTimeInMillis(System.currentTimeMillis() + (4*24*60*60*1000));
      item.setDueDate(cal);
      item.setDescription("diiba daaba\njou jou");
      item.setItemType(ItemType.FEATURE);
      item.setNextId(prevItem.getId());
      item.setDeployment(deployment);
      deployment.getItems().add(item);
      PmDeployment.instance().persist(item, em, context);

        task = new Task();
        task.setName("Task 1.1.2 name");
        task.setEstimation(new Integer(8));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        ii = new ItemImplementation();
        item.getItemImplementation().add(ii);
        ii.setItem(item);
        PmDeployment.instance().persist(ii, em, context);
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(8));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (1*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);
 
        prevTask = task;
        task = new Task();
        task.setName("Task 1.1.1 name");
        task.setEstimation(new Integer(5));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        task.setNextId(prevTask.getId());
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(5));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);

    Deployment prevDeployment = deployment;
    deployment = new Deployment();
    deployment.setName("release 1.2");
    deployment.setReleaseNumber("01");
    deployment.setVersionNumber("02");
    cal = GregorianCalendar.getInstance();
    cal.setTimeInMillis(System.currentTimeMillis() - (4* 7 * 24 * 60 * 60 * 1000));
    deployment.setStartTime(cal);
    cal = GregorianCalendar.getInstance();
    cal.setTimeInMillis(System.currentTimeMillis());
    deployment.setReleaseTime(cal);
    deployment.setDescription("jaada jaada jaada...\npada pada pada");
    deployment.setNextId(prevDeployment.getId());
    deployment.setProduct(product);
    product.getDeployment().add(deployment);
    PmDeployment.instance().persist(deployment, em, context);
   
      item = new Item();
      item.setSummary("Item 2.3 summary");
      item.setEffort(new Integer(5));
      item.setItemKey("P1-6");
      cal = GregorianCalendar.getInstance();
      cal.setTimeInMillis(System.currentTimeMillis() + (7*24*60*60*1000));
      item.setDueDate(cal);
      item.setDescription("diiba daaba\njou jou");
      item.setItemType(ItemType.FEATURE);
      item.setDeployment(deployment);
      deployment.getItems().add(item);
      PmDeployment.instance().persist(item, em, context);

        task = new Task();
        task.setName("Task 2.3.2 name");
        task.setEstimation(new Integer(8));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        ii = new ItemImplementation();
        item.getItemImplementation().add(ii);
        ii.setItem(item);
        PmDeployment.instance().persist(ii, em, context);
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(8));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (4*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);
 
        prevTask = task;
        task = new Task();
        task.setName("Task 2.3.1 name");
        task.setEstimation(new Integer(5));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        task.setNextId(prevTask.getId());
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(5));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (5*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);

      prevItem = item;
      item = new Item();
      item.setSummary("Item 2.2 summary");
      item.setEffort(new Integer(14));
      item.setItemKey("P1-5");
      cal = GregorianCalendar.getInstance();
      cal.setTimeInMillis(System.currentTimeMillis() + (4*24*60*60*1000));
      item.setDueDate(cal);
      item.setDescription("diiba daaba\njou jou");
      item.setItemType(ItemType.FEATURE);
      item.setNextId(prevItem.getId());
      item.setDeployment(deployment);
      deployment.getItems().add(item);
      PmDeployment.instance().persist(item, em, context);

        task = new Task();
        task.setName("Task 2.2.2 name");
        task.setEstimation(new Integer(8));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        ii = new ItemImplementation();
        item.getItemImplementation().add(ii);
        ii.setItem(item);
        PmDeployment.instance().persist(ii, em, context);
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(8));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (1*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);
 
        prevTask = task;
        task = new Task();
        task.setName("Task 2.2.1 name");
        task.setEstimation(new Integer(5));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        task.setNextId(prevTask.getId());
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(5));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (2*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);

      prevItem = item;
      item = new Item();
      item.setSummary("Item 2.1 summary");
      item.setEffort(new Integer(8));
      item.setItemKey("P1-4");
      cal = GregorianCalendar.getInstance();
      cal.setTimeInMillis(System.currentTimeMillis() + (4*24*60*60*1000));
      item.setDueDate(cal);
      item.setDescription("diiba daaba\njou jou");
      item.setItemType(ItemType.FEATURE);
      item.setNextId(prevItem.getId());
      item.setDeployment(deployment);
      deployment.getItems().add(item);
      PmDeployment.instance().persist(item, em, context);

        task = new Task();
        task.setName("Task 2.1.2 name");
        task.setEstimation(new Integer(8));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        ii = new ItemImplementation();
        item.getItemImplementation().add(ii);
        ii.setItem(item);
        PmDeployment.instance().persist(ii, em, context);
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(8));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (3*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);
 
        prevTask = task;
        task = new Task();
        task.setName("Task 2.1.1 name");
        task.setEstimation(new Integer(5));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        task.setNextId(prevTask.getId());
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(5));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (2*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);

    prevDeployment = deployment;
    deployment = new Deployment();
    deployment.setName("release 1.1");
    deployment.setReleaseNumber("01");
    deployment.setVersionNumber("01");
    cal = GregorianCalendar.getInstance();
    cal.setTimeInMillis(System.currentTimeMillis() - (8 * 7 * 24 * 60 * 60 * 1000));
    deployment.setStartTime(cal);
    cal = GregorianCalendar.getInstance();
    cal.setTimeInMillis(System.currentTimeMillis() - (4 * 7 * 24 * 60 * 60 * 1000));
    deployment.setReleaseTime(cal);
    deployment.setDescription("jaada jaada jaada...\npada pada pada");
    deployment.setNextId(prevDeployment.getId());
    deployment.setProduct(product);
    product.getDeployment().add(deployment);
    PmDeployment.instance().persist(deployment, em, context);

      item = new Item();
      item.setSummary("Item 3.3 summary");
      item.setEffort(new Integer(5));
      item.setItemKey("P1-9");
      cal = GregorianCalendar.getInstance();
      cal.setTimeInMillis(System.currentTimeMillis() + (7*24*60*60*1000));
      item.setDueDate(cal);
      item.setDescription("diiba daaba\njou jou");
      item.setItemType(ItemType.FEATURE);
      item.setDeployment(deployment);
      deployment.getItems().add(item);
      PmDeployment.instance().persist(item, em, context);

        task = new Task();
        task.setName("Task 3.3.2 name");
        task.setEstimation(new Integer(8));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        ii = new ItemImplementation();
        item.getItemImplementation().add(ii);
        ii.setItem(item);
        PmDeployment.instance().persist(ii, em, context);
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(8));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (3*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);
 
        prevTask = task;
        task = new Task();
        task.setName("Task 3.3.1 name");
        task.setEstimation(new Integer(5));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        task.setNextId(prevTask.getId());
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(5));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (5*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);

      prevItem = item;
      item = new Item();
      item.setSummary("Item 3.2 summary");
      item.setEffort(new Integer(14));
      item.setItemKey("P1-8");
      cal = GregorianCalendar.getInstance();
      cal.setTimeInMillis(System.currentTimeMillis() + (4*24*60*60*1000));
      item.setDueDate(cal);
      item.setDescription("diiba daaba\njou jou");
      item.setItemType(ItemType.FEATURE);
      item.setNextId(prevItem.getId());
      item.setDeployment(deployment);
      deployment.getItems().add(item);
      PmDeployment.instance().persist(item, em, context);

        task = new Task();
        task.setName("Task 3.2.2 name");
        task.setEstimation(new Integer(8));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        ii = new ItemImplementation();
        item.getItemImplementation().add(ii);
        ii.setItem(item);
        PmDeployment.instance().persist(ii, em, context);
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(8));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (1*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);
 
        prevTask = task;
        task = new Task();
        task.setName("Task 3.2.1 name");
        task.setEstimation(new Integer(5));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        task.setNextId(prevTask.getId());
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(5));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (3*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);

      prevItem = item;
      item = new Item();
      item.setSummary("Item 3.1 summary");
      item.setEffort(new Integer(8));
      item.setItemKey("P1-7");
      cal = GregorianCalendar.getInstance();
      cal.setTimeInMillis(System.currentTimeMillis() + (4*24*60*60*1000));
      item.setDueDate(cal);
      item.setDescription("diiba daaba\njou jou");
      item.setItemType(ItemType.FEATURE);
      item.setNextId(prevItem.getId());
      item.setDeployment(deployment);
      deployment.getItems().add(item);
      PmDeployment.instance().persist(item, em, context);

        task = new Task();
        task.setName("Task 3.1.2 name");
        task.setEstimation(new Integer(8));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
       
            Team team = new Team();
            team.setName("Team 1");
            product.getTeam().add(team);
            team.getProduct().add(product);
            PmDeployment.instance().persist(team, em, context);
           
          Sprint sprint = new Sprint();
          sprint.setName("P1, Sprint 1");
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (7*24*60*60*1000));
          sprint.setStartTime(cal);
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() + (21*24*60*60*1000));
          sprint.setEndTime(cal);
          team.getSprint().add(sprint);
          sprint.setTeam(team);
          sprint.setDeployment(deployment);
          PmDeployment.instance().persist(sprint, em, context);
       
        ii = new ItemImplementation();
        item.getItemImplementation().add(ii);
        ii.setItem(item);
        sprint.getItemImplementation().add(ii);
        ii.setSprint(sprint);
        PmDeployment.instance().persist(ii, em, context);
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
       
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(8));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (1*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
         
          PmDeployment.instance().persist(tes, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(5));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (3*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);
 
          PmDeployment.instance().persist(tes, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(10));
          cal = GregorianCalendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis() - (7*24*60*60*1000));
          tes.setEstimationDate(new Date(cal.getTimeInMillis()));
          tes.setTask(task);
          PmDeployment.instance().persist(tes, em, context);
 
        prevTask = task;
        task = new Task();
        task.setName("Task 3.1.1 name");
        task.setEstimation(new Integer(5));
        task.setDescription("xxxxxxxx\nyyyyyyyyy");
        task.setTaskStatus(TaskStatus.NOT_STARTED);
        task.setNextId(prevTask.getId());
        ii.getTasks().add(task);
        task.setItemImplementation(ii);
        PmDeployment.instance().persist(task, em, context);
          tes = new TaskEstimation();
          tes.setEstimation(new Integer(5));
View Full Code Here

     
      return task;
    }
   
    public Task getTask(com.melitronic.rmapp.model.Task task) {
      Task domainTask = new Task();
     
      boolean found = false;
      if (task.getId() != null) {
        for (AbstractEntity d : productsDeployments) {
          for (Item i : ((Deployment)d).getItems()) {
            for (ItemImplementation ii : i.getItemImplementation()) {
              for (Task t : ii.getTasks()) {
                if ( t.getId() != null && task.getId().longValue() == t.getId().longValue() ) {
                  domainTask = t;
                  found = true;
                  break;
                }
              }
              if (found) break;
            }
            if (found) break;
          }
          if (found) break;
        }
      }
     
      domainTask.setId(task.getId());
      domainTask.setName(task.getName());
      domainTask.setEstimation(task.getEstimation());
      domainTask.setDescription(task.getDescription());
      domainTask.setTaskStatus(task.getTaskStatus());
     
      return domainTask;
    }
View Full Code Here

                     com.melitronic.rmapp.model.Item item,
                     AbstractTreeItem sp,
                     com.melitronic.rmapp.model.Person person) {
      com.melitronic.rmapp.model.Sprint sprint =
        (com.melitronic.rmapp.model.Sprint)sp;
      Task ta = getTask(task);
      Item it = getItem(item);
      Sprint spr = getSprint(sprint);
      Person  prs = person != null ? getPerson(person) : null;
     
      boolean isNew = ta.getId() == null;
     
      DmProduct dmProduct =
        DmProductFactory.instance().getClient(getCallContext());
      Task resp = dmProduct.store(ta, it, spr, prs, getCallContext());
     
      // haetaan kaikki uudestaa
      productsDeployments = null;
      initProductTeams();
/*     
View Full Code Here

    public void itemPositionChanged(com.melitronic.rmapp.model.Task task, AbstractListItem[] list, AbstractListItem parent) {
        Collection<AbstractEntity> changes = new ArrayList<AbstractEntity>();
       
      Collection<Task> entityColl = null;
      Task domainTask = null;
     
      ItemImplementation entity1 = null;
      ItemImplementation entity2 = null;
      for (AbstractEntity entity : productsDeployments) {
        for(Item it : ((Deployment)entity).getItems()) {
View Full Code Here

      com.melitronic.rmapp.model.Sprint sprint) {

        Sprint spr = getSprint(sprint);
       
      Collection<Task> entityColl = null;
      Task domainTask = null;
     
      ItemImplementation entity1 = null;
      ItemImplementation entity2 = null;
      for (ItemImplementation ii : spr.getItemImplementation()) {
            Item it = ii.getItem();
View Full Code Here

     
      return task;
    }
   
    public Task getTask(com.melitronic.rmapp.model.Task task) {
      Task domainTask = new Task();
     
      boolean found = false;
      if (task.getId() != null) {
        for (AbstractEntity d : productsDeployments) {
          for (Item i : ((Deployment)d).getItems()) {
            for (ItemImplementation ii : i.getItemImplementation()) {
              for (Task t : ii.getTasks()) {
                if ( t.getId() != null && task.getId().longValue() == t.getId().longValue() ) {
                  domainTask = t;
                  found = true;
                  break;
                }
              }
              if (found) break;
            }
            if (found) break;
          }
          if (found) break;
        }
      }
     
      domainTask.setId(task.getId());
      domainTask.setName(task.getName());
      domainTask.setEstimation(task.getEstimation());
      domainTask.setDescription(task.getDescription());
      domainTask.setTaskStatus(task.getTaskStatus());
     
      return domainTask;
    }
View Full Code Here

    public void selectedTaskUpdate(com.melitronic.rmapp.model.Task task,
                     com.melitronic.rmapp.model.Item item,
                    AbstractTreeItem val,
                     com.melitronic.rmapp.model.Person person) {

      Task ta = getTask(task);
      Item it = getItem(item);
      Person  prs = person != null ? getPerson(person) : null;
     
      boolean isNew = ta.getId() == null;
     
      DmProduct dmProduct =
        DmProductFactory.instance().getClient(getCallContext());
      Task resp = null;

      resp = dmProduct.store(ta, it, null, prs, getCallContext());
     
      // haetaan kaikki uudestaa
      productsDeployments = null;
View Full Code Here

TOP

Related Classes of com.melitronic.domain.entity.Task

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.