private void validateEnvironmentVariableUniqueness(ErrorCollection errors, String location) { HashSet<String> keys = new HashSet<>(); for (CREnvironmentVariable var : environment_variables) { String error = var.validateNameUniqueness(keys); if (error != null) errors.addError(location, error); } }
public EnvironmentVariableConfig toEnvironmentVariableConfig( CREnvironmentVariable crEnvironmentVariable) { if (crEnvironmentVariable.hasEncryptedValue()) { return new EnvironmentVariableConfig( cipher, crEnvironmentVariable.getName(), crEnvironmentVariable.getEncryptedValue()); } else { return new EnvironmentVariableConfig( crEnvironmentVariable.getName(), crEnvironmentVariable.getValue()); } }
public void addEnvironmentVariable(String key, String value) { CREnvironmentVariable variable = new CREnvironmentVariable(key); variable.setValue(value); this.environment_variables.add(variable); }