private Result<String[]> getPids(BundleResourceDeployment rd, String operation) { PropertySimple patchType = rd.getBundleDeployment().getConfiguration().getSimple("patchType"); boolean isBundle = patchType != null && "patch-bundle".equals(patchType.getStringValue()); PropertySimple patchIdProp = rd.getBundleDeployment().getConfiguration() .getSimple("patchId"); PropertySimple allPatchIdsProp = rd.getBundleDeployment().getConfiguration() .getSimple("allPatchIds"); String[] pids; if (isBundle) { if (allPatchIdsProp == null || allPatchIdsProp.getStringValue() == null) { return new Result<String[]>(null, "Could not determine the list of patch ids from the bundle configuration while performing " + operation); } pids = allPatchIdsProp.getStringValue().split("#"); //we need to return the pids in the same order as patch history - i.e. in the reversed deployment order Collections.reverse(Arrays.asList(pids)); } else { if (patchIdProp == null || patchIdProp.getStringValue() == null) { return new Result<String[]>(null, "Could not determine the list of patch ids from the bundle configuration while performing " + operation); } pids = new String[1]; pids[0] = patchIdProp.getStringValue(); } return new Result<String[]>(pids, null); }
Configuration deploymentConfiguration = rd.getBundleDeployment().getConfiguration();
Configuration config = (null == prevDeployment.getConfiguration()) ? null : prevDeployment.getConfiguration() .deepCopy(false); BundleDeployment revertDeployment = bundleManager.createBundleDeploymentInNewTrans(subject, prevDeployment
!isTakeOver(request.getResourceDeployment().getBundleDeployment().getConfiguration())); request.getResourceDeployment().getBundleDeployment().getConfiguration(), bmp, rd); if (stop.failed()) { result.setErrorMessage(stop.errorMessage); request.getPackageVersionFiles().values().iterator().next().getAbsolutePath()); Configuration bundleConfig = request.getResourceDeployment().getBundleDeployment().getConfiguration(); String override = bundleConfig.getSimpleValue("override"); String overrideAll = bundleConfig.getSimpleValue("override-all");