Package com.melitronic.domain.entity

Examples of com.melitronic.domain.entity.Deployment


     
      return domainTask;
    }
   
    public void selectedDeploymentUpdate(com.melitronic.rmapp.model.Deployment deployment) {
      Deployment depl = getDeployment(deployment);
     
      boolean isNew = depl.getId() == null;
     
      DmProduct dmProduct =
        DmProductFactory.instance().getClient(getCallContext());
      Deployment resp = dmProduct.store(depl, getProduct(), getCallContext());
     
      // haetaan kaikki uudestaa
      productsDeployments = null;
/*
      if (isNew) {
View Full Code Here


     
      if (it == null) {
      return
      }
     
      Deployment depl = null;
      if (it.getId() != null) {
        depl = it.getDeployment();
      }
      else {
        depl = getDeployment(parentDeployment);
View Full Code Here

    }

    public void itemPositionChanged(com.melitronic.rmapp.model.Item item, AbstractListItem[] list, com.melitronic.rmapp.model.Deployment newParent) {
      // deployment.item -> deployment.item
      // deployment.item -> deployment
      Deployment newParent2 = null;
     
      for (AbstractEntity entity : productsDeployments) {
        if (entity.getId() != null && (newParent).getId() != null &&
          entity.getId().longValue() == (newParent).getId().longValue()) {
              newParent2 = (Deployment)entity;
View Full Code Here

            }
          }
          if (found) break;
        }
     
      Deployment entity1 = null;
      Sprint entity2 = null;

      Collection<ItemImplementation> entityColl2 = null;
      for (AbstractEntity entity : sprints) {
        if (entity.getId() != null && (newParent).getId() != null &&
          entity.getId().longValue() == (newParent).getId().longValue()) {
              entity2 = (Sprint)entity;
            entityColl2 = entity2.getItemImplementation();
            break;
        }
      }

      for (AbstractEntity entity : productsDeployments) {
        if (entity.getId() != null && oldParent.getId() != null &&
          entity.getId().longValue() == oldParent.getId().longValue()) {
          entity1 = (Deployment)entity;
          entityColl = entity1.getItems();
          for ( Item i : ((Deployment)entity).getItems() ) {
            if (i.getId() != null && item.getId() != null &&
              i.getId().longValue() == item.getId().longValue()) {
              domainItemI = i.getUncommittedItemImplementation();
              if (domainItemI == null || domainItemI.getId() == null) {
View Full Code Here

      if (getUC().getSelectedProduct() == null) {
        addErrorMessage("Product not defined");
        return;
      }
     
      Deployment depl = getUC().updateDeployment(getSelectedDeployment());
     
      setSelectedDeployment(new DeploymentListItem(depl));
    }
    catch (Throwable th) {
      //TODO add localized error message
View Full Code Here

        for (Deployment depl : coll) {
          productsDeployments.add(depl);
        }
       
        if (getProduct() == null && coll != null && coll.size() > 0) {
          Deployment d = coll.iterator().next();
          setProduct(d.getProduct());
        }
      }
     
      return productsDeployments;
     
View Full Code Here

     
      return is;
    }

    public Deployment getDeployment(com.melitronic.rmapp.model.Deployment depl) {
      Deployment deployment = new Deployment();

      if (depl.getId() != null) {
        for (AbstractEntity d : productsDeployments) {
          if ( ((Deployment)d).getId() != null && depl.getId().longValue() == ((Deployment)d).getId().longValue() ) {
            deployment = (Deployment)d;
            break;
          }
        }
      }
     
      deployment.setName(depl.getName());
     
      int ix = depl.getVersion().indexOf(".");
      deployment.setReleaseNumber(depl.getVersion().substring(0, (ix != -1 ? ix : depl.getVersion().length()) ));
      deployment.setVersionNumber( (ix != -1 ? depl.getVersion().substring(ix + 1) : "" ) );
     
      deployment.setStartTime(depl.getStartTime());
      deployment.setReleaseTime(depl.getReleaseTime());
     
      deployment.setDescription(depl.getDescription());
     
      return deployment;
    }
View Full Code Here

     
      return domainTask;
    }
   
    public void selectedDeploymentUpdate(com.melitronic.rmapp.model.Deployment deployment) {
      Deployment depl = getDeployment(deployment);
     
      boolean isNew = depl.getId() == null;
     
      DmProduct dmProduct =
        DmProductFactory.instance().getClient(getCallContext());
      Deployment resp = dmProduct.store(depl, getProduct(), getCallContext());
     
      // haetaan kaikki uudestaa
      productsDeployments = null;
    }
View Full Code Here

      return resp;
    }
   
    public void selectedItemUpdate(com.melitronic.rmapp.model.Item item, com.melitronic.rmapp.model.Deployment parentDeployment) {
      Item it = getItem(item);
      Deployment depl = getDeployment(parentDeployment);
     
      boolean isNew = it.getId() == null;
     
      DmProduct dmProduct =
        DmProductFactory.instance().getClient(getCallContext());
View Full Code Here

  public void itemPositionChanged(com.melitronic.rmapp.model.Item item, AbstractListItem[] list, com.melitronic.rmapp.model.Deployment newParent) {
      // deployment.item -> deployment.item
      // deployment.item -> deployment
      // itemGroup.item -> deployment
      // itemGroup.item -> deployment.item
      Deployment newParent2 = null;
     
      for (AbstractEntity entity : productsDeployments) {
        if (entity.getId() != null && (newParent).getId() != null &&
          entity.getId().longValue() == (newParent).getId().longValue()) {
              newParent2 = (Deployment)entity;
View Full Code Here

TOP

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

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.