示例#1
0
 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);
   }
 }
示例#2
0
 public EnvironmentVariableConfig toEnvironmentVariableConfig(
     CREnvironmentVariable crEnvironmentVariable) {
   if (crEnvironmentVariable.hasEncryptedValue()) {
     return new EnvironmentVariableConfig(
         cipher, crEnvironmentVariable.getName(), crEnvironmentVariable.getEncryptedValue());
   } else {
     return new EnvironmentVariableConfig(
         crEnvironmentVariable.getName(), crEnvironmentVariable.getValue());
   }
 }
示例#3
0
 public void addEnvironmentVariable(String key, String value) {
   CREnvironmentVariable variable = new CREnvironmentVariable(key);
   variable.setValue(value);
   this.environment_variables.add(variable);
 }