Package com.melitronic.domain.entity

Examples of com.melitronic.domain.entity.ImplementationPhase


        action.setNextId(prevAction.getId());
        action.setItem(issue);
        PmDeployment.instance().persist(action, em, context);
       
       
    ImplementationPhase ip = new ImplementationPhase();
    ip.setPhaseType(ImplementationPhaseType.DEVELOPMENT);
    Calendar scal = GregorianCalendar.getInstance();
    scal.setTimeInMillis(System.currentTimeMillis() - (7*24*60*60*1000));
    ip.setStartTime(scal);
    Calendar ecal = GregorianCalendar.getInstance();
    ecal.setTimeInMillis(System.currentTimeMillis() + (21*24*60*60*1000));
    ip.setEndTime(ecal);
    ip.setDeployment(deployment);
    PmDeployment.instance().persist(ip, em, context);
   
    Environment environment = new Environment();
    environment.setName("Env1");
    environment.setDescription("edededede");
    environment.setIp("123.23.3.123");
    PmDeployment.instance().persist(environment, em, context);
   
    EnvironmentUsage eu = new EnvironmentUsage();
    eu.setStartTime(scal);
    eu.setEndTime(ecal);
    eu.setImplementationPhase(ip);
    eu.setEnvironment(environment);
    eu.getProduct().add(product);
    product.getEnvironmentUsage().add(eu);
    PmDeployment.instance().persist(eu, em, context);
   
    ip = new ImplementationPhase();
    ip.setPhaseType(ImplementationPhaseType.INTEGRATION_TEST);
    scal = GregorianCalendar.getInstance();
    scal.setTimeInMillis(System.currentTimeMillis() + (22*24*60*60*1000));
    ip.setStartTime(scal);
    ecal = GregorianCalendar.getInstance();
    ecal.setTimeInMillis(System.currentTimeMillis() + (30*24*60*60*1000));
    ip.setEndTime(ecal);
    ip.setDeployment(deployment);
    PmDeployment.instance().persist(ip, em, context);
   
    environment = new Environment();
    environment.setName("Env2");
    environment.setDescription("wwwwwwwwww");
View Full Code Here


    }
  }
 
  public ImplementationPhase updateImplementationPhase(ImplementationPhase implementationPhase) {
    DmProduct dmProduct = DmProductFactory.instance().getClient(getCallContext());
    ImplementationPhase ip = dmProduct.store(implementationPhase ,getSelectedDeployment().getDomainDeployment(), getSelectedProduct(), getSelectedEnvironment(), getCallContext());
   
    return ip;
  }
View Full Code Here

TOP

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

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.