public String getVersion() { return rulesDeploy.getVersion(); }
public String getVersion() { return rulesDeploy.getVersion(); }
private String buildServiceName(Deployment deployment, String projectName, RulesDeploy rulesDeploy) { if (rulesDeploy != null) { if (StringUtils.isNotEmpty(rulesDeploy.getServiceName())) { if (StringUtils.isNotEmpty(rulesDeploy.getVersion())) { return rulesDeploy.getServiceName() + "(version=" + rulesDeploy.getVersion() + ")"; } else { return rulesDeploy.getServiceName(); } } else { if (StringUtils.isNotEmpty(rulesDeploy.getVersion())) { return deployment.getDeploymentName() + '_' + projectName + "(version=" + rulesDeploy .getVersion() + ")"; } } } return deployment.getDeploymentName() + '_' + projectName; }
private String buildServiceUrl(Deployment deployment, String projectName, RulesDeploy rulesDeploy) { if (rulesDeploy != null) { if (StringUtils.isNotEmpty(rulesDeploy.getUrl())) { if (StringUtils.isNotEmpty(rulesDeploy.getVersion())) { if (rulesDeploy.getUrl().startsWith("/")) { return "/" + rulesDeploy.getVersion() + rulesDeploy.getUrl(); } else { return "/" + rulesDeploy.getVersion() + "/" + rulesDeploy.getUrl(); } } else { return rulesDeploy.getUrl(); } } else { if (StringUtils.isNotEmpty(rulesDeploy.getVersion())) { return "/" + rulesDeploy.getVersion() + "/" + deployment.getDeploymentName() + '/' + projectName; } } } return deployment.getDeploymentName() + '/' + projectName; }
private String buildServiceName(Deployment deployment, String projectName, RulesDeploy rulesDeploy) { if (rulesDeploy != null) { if (StringUtils.isNotEmpty(rulesDeploy.getServiceName())) { if (StringUtils.isNotEmpty(rulesDeploy.getVersion())) { return rulesDeploy.getServiceName() + "(version=" + rulesDeploy.getVersion() + ")"; } else { return rulesDeploy.getServiceName(); } } else { if (StringUtils.isNotEmpty(rulesDeploy.getVersion())) { return deployment.getDeploymentName() + '_' + projectName + "(version=" + rulesDeploy .getVersion() + ")"; } } } return deployment.getDeploymentName() + '_' + projectName; }
private String buildServiceUrl(Deployment deployment, String projectName, RulesDeploy rulesDeploy) { if (rulesDeploy != null) { if (StringUtils.isNotEmpty(rulesDeploy.getUrl())) { if (StringUtils.isNotEmpty(rulesDeploy.getVersion())) { if (rulesDeploy.getUrl().startsWith("/")) { return "/" + rulesDeploy.getVersion() + rulesDeploy.getUrl(); } else { return "/" + rulesDeploy.getVersion() + "/" + rulesDeploy.getUrl(); } } else { return rulesDeploy.getUrl(); } } else { if (StringUtils.isNotEmpty(rulesDeploy.getVersion())) { return "/" + rulesDeploy.getVersion() + "/" + deployment.getDeploymentName() + '/' + projectName; } } } return deployment.getDeploymentName() + '/' + projectName; }
hasRulesDeployXML = true; String version = null; if (StringUtils.isNotEmpty(rulesDeploy.getVersion())) { version = rulesDeploy.getVersion();
hasRulesDeployXML = true; String version = null; if (StringUtils.isNotEmpty(rulesDeploy.getVersion())) { version = rulesDeploy.getVersion();
content = resource.getContent(); RulesDeploy rulesDeploy = rulesDeploySerializer.deserialize(content); String apiVersion = rulesDeploy.getVersion(); if (StringUtils.isNotBlank(apiVersion)) { return apiVersion;
content = resource.getContent(); RulesDeploy rulesDeploy = rulesDeploySerializer.deserialize(content); String apiVersion = rulesDeploy.getVersion(); if (StringUtils.isNotBlank(apiVersion)) { return apiVersion;
rulesDeploy.setServiceName(currentVersion.getServiceName()); rulesDeploy.setUrl(currentVersion.getUrl()); rulesDeploy.setVersion(currentVersion.getVersion());
rulesDeploy.setServiceName(currentVersion.getServiceName()); rulesDeploy.setUrl(currentVersion.getUrl()); rulesDeploy.setVersion(currentVersion.getVersion());