Package com.melitronic.domain.entity

Examples of com.melitronic.domain.entity.Issue


    ig.setProduct(product);
    ig.setNextId(prevItemGroup.getId());
    product.getItemGroup().add(ig);
    PmDeployment.instance().persist(ig, em, context);
   
      Issue issue = new Issue();  
      issue.setSummary("Issue 5.1");
      issue.setEffort(new Integer(4));
      issue.setItemKey("P1-9");
      cal = GregorianCalendar.getInstance();
      cal.setTimeInMillis(System.currentTimeMillis() + (2*24*60*60*1000));
      issue.setDueDate(cal);
      issue.setDescription("isisisisisisisis");
      issue.setItemType(ItemType.BUG);
      issue.setPriority(IssuePriority.CRITICAL);
      issue.setResolution(IssueResolution.FIXED);
      //issue.setNextId(prevItem.getId());
      issue.setItemGroup(ig);
      ig.getItem().add(issue);
      PmDeployment.instance().persist(issue, em, context);

        Action action = new Action();
        action.setActionType(ActionType.STATUS_CHANGED);
        action.setActionStatus(ItemActionStatus.CLOSED);
        action.setItem(issue);
        PmDeployment.instance().persist(action, em, context);
       
   
      Issue prevIssue = issue;
      issue = new Issue();  
      issue.setSummary("Issue 5.2 - 09:10:52,515 INFO  [SessionSpecContainer]");
      issue.setEffort(new Integer(1));
      issue.setItemKey("P1-8");
      cal = GregorianCalendar.getInstance();
      cal.setTimeInMillis(System.currentTimeMillis() + (1*24*60*60*1000));
      issue.setDueDate(cal);
      issue.setDescription("09:10:52,515 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=melitronicRM.ear,jar=rmDom.jar,name=DmProduct,service=EJB3\n09:10:52,531 INFO  [EJBContainer] STARTED EJB: com.melitronic.domain.product.DmProduct ejbName: DmProduct");
      issue.setItemType(ItemType.IMPROVEMENT);
      issue.setPriority(IssuePriority.MEDIUM);
      issue.setResolution(IssueResolution.UNRESOLVED);
      issue.setNextId(prevIssue.getId());
      issue.setItemGroup(ig);
      ig.getItem().add(issue);
      PmDeployment.instance().persist(issue, em, context);
     
        action = new Action();
View Full Code Here


     
      return it;
    }
   
    public Issue getIssue(com.melitronic.rmapp.model.Issue issue) {
      Issue is = new Issue();
      is = (Issue)getItem(issue, is);
     
      is.setPriority(issue.getPriority());
      is.setResolution(issue.getResolution());
     
      return is;
    }
View Full Code Here

  public Collection<Action> getSelectedIssuesActions() {
    if (getSelectedIssue() == null || getSelectedIssue().getId() == null) {
      return new ArrayList<Action>();
    }
   
    Issue domIssue  = null;
    boolean found = false;
    for (AbstractEntity d : getProductsDeployments()) {
      for (Item i : ((Deployment)d).getItems()) {
        if (i instanceof Issue) {
          if (i instanceof Issue && i.getId() != null && i.getId().longValue() == getSelectedIssue().getId().longValue()) {
            domIssue = (Issue)i;
            found = true;
            break;
          }
        }
      }
      if (found) {
        break;
      }
    }
   
    if (domIssue != null) {
      return domIssue.getAction();
    }
     
    return new ArrayList<Action>();
  }
View Full Code Here

  public Collection<Action> getSelectedIssuesActions() {
    if (getSelectedIssue() == null || getSelectedIssue().getId() == null) {
      return new ArrayList<Action>();
    }
   
    Issue domIssue  = null;
    boolean found = false;
    for (AbstractEntity ig : getProductItemGroups()) {
      for (Item i : ((ItemGroup)ig).getItem()) {
        if (i instanceof Issue) {
          if (i.getId() != null && i.getId().longValue() == getSelectedIssue().getId().longValue()) {
            domIssue = (Issue)i;
            found = true;
            break;
          }
        }
      }
      if (found) {
        break;
      }
    }
   
    if (domIssue != null) {
      return domIssue.getAction();
    }
     
    return new ArrayList<Action>();
  }
View Full Code Here

     
      return it;
    }
   
    public Issue getIssue(com.melitronic.rmapp.model.Issue issue) {
      Issue is = new Issue();
      return getIssue(issue, is);
    }
View Full Code Here

TOP

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

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.