Package com.melitronic.rmapp.controller.usecase

Examples of com.melitronic.rmapp.controller.usecase.ProductDevelopmentUseCase


      setResponsiblePerson( Person.getDummyPerson() );
    }
   
    private TreeNodeCollection createTreeData(List<AbstractEntity> items) {
     
      ProductDevelopmentUseCase uc = (ProductDevelopmentUseCase)getUseCase();
     
      TreeNodeCollection data = new TreeNodeCollection();
     
      Collection<AbstractEntity> sortedColl = AbstractEntityUtil.sort(items);
     
      for (AbstractEntity item : sortedColl) {
        com.melitronic.domain.entity.Sprint sprint =
          (com.melitronic.domain.entity.Sprint)item;

        Sprint spr = uc.getSprint(sprint);
        data.add(spr);
       
        Collection<AbstractEntity> sortedColl2 =
          AbstractEntityUtil.sort(AbstractEntityUtil.convert(sprint.getItemImplementation()));

        for (AbstractEntity i2 : sortedColl2) {
          com.melitronic.domain.entity.ItemImplementation domainII =
            (com.melitronic.domain.entity.ItemImplementation)i2;

          Item it = null;
          com.melitronic.domain.entity.Item domainItem = domainII.getItem();
         
          if (domainItem instanceof com.melitronic.domain.entity.Issue) {
            it = uc.getIssue((com.melitronic.domain.entity.Issue)domainItem);
          }
          else {
            it = uc.getItem(domainItem);
          }
          it.setIid(domainII.getId());
          spr.addChild(it);
         
         
          Collection<AbstractEntity> sortedColl3 =
            AbstractEntityUtil.sort(AbstractEntityUtil.convert(domainII.getTasks()));

          for (AbstractEntity i3 : sortedColl3) {
            com.melitronic.domain.entity.Task domainTask =
              (com.melitronic.domain.entity.Task)i3;
            Task task = uc.getTask(domainTask);
            it.addChild(task);
          }
         
        }
      }
View Full Code Here


    return ""+((Sprint)selectedSprint).getDays();
  }
 
  public boolean getRenderTeamSelectionList() {
    try {
      ProductDevelopmentUseCase uc = (ProductDevelopmentUseCase)getUseCase();
      com.melitronic.domain.entity.Sprint sprint = uc.getSprint((Sprint)getSelectedSprint());
      return !(sprint.getTeam() != null && !sprint.getTeam().isNew());
    }
    catch (Throwable th) {}
   
    return false;
View Full Code Here

    return !getRenderTeamSelectionList();
  }
 
  public String getTeamName() {
    try {
      ProductDevelopmentUseCase uc = (ProductDevelopmentUseCase)getUseCase();
      com.melitronic.domain.entity.Sprint sprint = uc.getSprint((Sprint)getSelectedSprint());
      if ( sprint.getTeam() != null && !sprint.getTeam().isNew() ) {
        return sprint.getTeam().getName();
      }
    }
    catch (Throwable th) {}
View Full Code Here

TOP

Related Classes of com.melitronic.rmapp.controller.usecase.ProductDevelopmentUseCase

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.