Package com.melitronic.domain.entity

Examples of com.melitronic.domain.entity.Action


        newParent.getItems().add(item);
        item.setNextId(null);
      persist(item, em, context);
     
      if (!alreadyCommitted) {
        Action action = new Action();
        action.setActionType(ActionType.COMMITED);
        action.setItem(item);
        persist(action, em, context);
      }
     
      if (entity != null) {
        entity.setNextId(item.getId());
View Full Code Here


      return igs;
    }
   
    public Action store(Action action, Item item, Person person, CallContext context) {

      Action resp = PmAction.instance().store(action, item, person, em, context);
     
      return resp;
    }
View Full Code Here

      //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();
        action.setActionType(ActionType.STATUS_CHANGED);
        action.setActionStatus(ItemActionStatus.OPEN);
        action.setItem(issue);
        PmDeployment.instance().persist(action, em, context);
       
        Action prevAction = action;
        action = new Action();
        action.setActionType(ActionType.ASSIGNED_TO);
        action.setPerson(person);
        action.setNextId(prevAction.getId());
        action.setItem(issue);
        PmDeployment.instance().persist(action, em, context);
       
        prevAction = action;
        action = new Action();
        action.setActionType(ActionType.ADDED_COMMENT);
        action.setComment("Ihan turha juttu");
        action.setNextId(prevAction.getId());
        action.setItem(issue);
        PmDeployment.instance().persist(action, em, context);
       
        prevAction = action;
        action = new Action();
        action.setActionType(ActionType.STATUS_CHANGED);
        action.setActionStatus(ItemActionStatus.CLOSED);
        action.setNextId(prevAction.getId());
        action.setItem(issue);
        PmDeployment.instance().persist(action, em, context);
       
       
    ImplementationPhase ip = new ImplementationPhase();
View Full Code Here

  public void selectedNewStatus(ActionEvent event) {
    if (getSelectedIssue() != null && ((Issue)getSelectedIssue()).getId() != null &&
      ((Issue)getSelectedIssue()).getStatus() != null  &&
      getUC().getOriginalIssue() != null &&
      !((Issue)getSelectedIssue()).getStatus().equals(getUC().getOriginalIssue().getStatus()) ) {
      Action action = new Action();
      action.setActionType(ActionType.STATUS_CHANGED);
      action.setActionStatus(((Issue)getSelectedIssue()).getStatus());
     
      getUC().storeAction(action, null);
    }
  }
View Full Code Here

      if ( getUC().getOriginalIssue() != null &&
         person.equals(getUC().getOriginalIssue().getAssignedTo()) ) {
        // same person
        return;
      }
      Action action = new Action();
      action.setActionType(ActionType.ASSIGNED_TO);
     
      getUC().storeAction(action, person);
     
      ((Issue)getSelectedIssue()).setAssignedTo(person);
    }
View Full Code Here

    newComment = value;
  }

  public void selectedCommentUpdate(ActionEvent event) {
    if (getNewComment() != null && !getNewComment().trim().equals("")) {
      Action action = new Action();
      action.setActionType(ActionType.ADDED_COMMENT);
      action.setComment(getNewComment());
     
      getUC().storeAction(action, null);
    }
   
    this.newComment = "";
View Full Code Here

    renderNewCommentButton = false;
  }
 
  public void selectedCommentUpdate(ActionEvent event) {
    if (getNewComment() != null && !getNewComment().trim().equals("")) {
      Action action = new Action();
      action.setActionType(ActionType.ADDED_COMMENT);
      action.setComment(getNewComment());
     
      getUC().storeAction(action, null);
    }
   
    this.newComment = "";
View Full Code Here

  public void selectedNewStatus(ActionEvent event) {
    if (getSelectedIssue() != null && ((Issue)getSelectedIssue()).getId() != null &&
      ((Issue)getSelectedIssue()).getStatus() != null  &&
      getUC().getOriginalIssue() != null &&
      !((Issue)getSelectedIssue()).getStatus().equals(getUC().getOriginalIssue().getStatus()) ) {
      Action action = new Action();
      action.setActionType(ActionType.STATUS_CHANGED);
      action.setActionStatus(((Issue)getSelectedIssue()).getStatus());
     
      getUC().storeAction(action, null);
    }
  }
View Full Code Here

      if ( getUC().getOriginalIssue() != null &&
         person.equals(getUC().getOriginalIssue().getAssignedTo()) ) {
        // same person
        return;
      }
      Action action = new Action();
      action.setActionType(ActionType.ASSIGNED_TO);
     
      getUC().storeAction(action, person);
    }
  }
View Full Code Here

  }

  public void storeAction(Action action, Person person) {
    DmProduct dmProduct =
      DmProductFactory.instance().getClient(getCallContext());
    Action resp = dmProduct.store(action, getIssue(getSelectedIssue()), person, getCallContext());
   
    action.setId(resp.getId());
   
    // getSelectedIssuesActions().add(resp);
  }
View Full Code Here

TOP

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

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.