public void fillReleaseMetaData() throws JSchException, IOException { DeploymentRequest dr = new DeploymentRequest(); dr.setDrName(releaseName); this.synergyShell.setDeploymentRequestInfo(dr); this.destinationEnvironment = dr.getEnvDst(); this.sourceEnvironment = dr.getEnvSrc(); this.synopsisOfRelease = dr.getSynopsis(); }
public void showDeploymentRequestContets() { if (this.hasLinkedDr) { for (DeploymentRequest dr : this.linkedDeploymentRequest) { log.info("dr name:" + dr.getDrName()); log.info("dr. nbr. tft:" + dr.getNumberOfTransferOperations()); log.info("dt:type tables:" + dr.getTypes()); } } else { log.info("DR name :" + this.singleDeploymentRequest.getDrName()); log.info("dr. nbr. tft:" + this.singleDeploymentRequest.getNumberOfTransferOperations()); log.info("dt:type tables:" + this.singleDeploymentRequest.getTypes().get("01")); } }
public void fillReleaseContent() throws JSchException, IOException { if (this.hasLinkedDr) { for (DeploymentRequest deploymentRequest : this.linkedDeploymentRequest) { String drName = deploymentRequest.getDrName(); deploymentRequestSynergy = new DeploymentRequestSynergy(); deploymentRequestSynergy.setDeploymentRequest(deploymentRequest); fillDeploymentRequestContent(deploymentRequest); log.info("********************************"); // fill up DR } } else { // fill up the singleDeploymentRequest this.singleDeploymentRequest = new DeploymentRequest(); this.singleDeploymentRequest.setDrName(this.releaseName); fillDeploymentRequestContent(this.singleDeploymentRequest); } }
public void fillDeploymentRequestContent(DeploymentRequest deploymentRequest) throws JSchException, IOException { DeploymentRequestSynergy deploymentRequestSynergy = new DeploymentRequestSynergy(); DeploymentRequestMemberTypes deploymentRequestMemberTypes = new DeploymentRequestMemberTypes(); deploymentRequestSynergy.setShell(this.synergyShell); deploymentRequestSynergy.setDeploymentRequest(deploymentRequest); deploymentRequestSynergy.setPatchList(); deploymentRequestSynergy.setObjectsLinkedToDR(deploymentRequest.getDrName()); deploymentRequestSynergy.setDeploymentRequestInfo(deploymentRequest); deploymentRequest.setMemberList( this.deploymentRequestService.getDRMembers(deploymentRequest.getDrName())); deploymentRequest.setDeploymentRequestTransferOperation( this.deploymentRequestService.getTransferOperation(deploymentRequest.getDrName())); deploymentRequest.setNumberOfTransferOperations( this.deploymentRequestService.getnumberOfTransferOperations(deploymentRequest.getDrName())); deploymentRequest.setNumberOfManualTransferOperations( this.deploymentRequestService.getNumberOfManualTransferOperations( deploymentRequest.getDrName())); deploymentRequest.setNumberOfSubjects( this.deploymentRequestService.getNumberOfSubjects(deploymentRequest.getDrName())); deploymentRequest.setNumberOfPatches(deploymentRequest.getPatchList().size()); // from Synergy deploymentRequestMemberTypes.setDeploymentRequest(deploymentRequest); deploymentRequestMemberTypes.generatePatchMemberTypes(); deploymentRequest.setTypes(deploymentRequestMemberTypes.getTypes()); }