Exemplo n.º 1
0
 @Override
 public void setConfigValue(
     int projectId,
     int envId,
     String key,
     String desc,
     String context,
     String value,
     ConfigSetType setType) {
   Config config = findConfigByKey(key);
   int configId = 0;
   if (config == null) {
     config = new Config();
     config.setKey(key);
     config.setDesc(desc);
     config.setTypeEnum(ConfigTypeEnum.String);
     config.setProjectId(projectId);
     configId = create(config);
   } else {
     configId = config.getId();
   }
   setConfigValue(configId, envId, context, value, setType);
 }