use of com.cloud.framework.config.ConfigKey in project cosmic by MissionCriticalCloud.
the class ConfigurationServerImpl method getConfigListByScope.
@Override
public List<ConfigurationVO> getConfigListByScope(final String scope, final Long resourceId) {
// Getting the list of parameters defined at the scope
final Set<ConfigKey<?>> configList = _configDepot.getConfigListByScope(scope);
final List<ConfigurationVO> configVOList = new ArrayList<>();
for (final ConfigKey<?> param : configList) {
final ConfigurationVO configVo = _configDao.findByName(param.toString());
configVo.setValue(_configDepot.get(param.toString()).valueIn(resourceId).toString());
configVOList.add(configVo);
}
return configVOList;
}
Aggregations