use of alien4cloud.rest.secret.model.SecretProviderConfigurationsDTO in project alien4cloud by alien4cloud.
the class LocationController method getSecretConfigurations.
private SecretProviderConfigurationsDTO getSecretConfigurations(Location location) {
Set<String> availablePlugins = secretProviderService.getAvailablePlugins();
Map<String, Map<String, Object>> genericFormDescriptionByPluginName = availablePlugins.stream().collect(Collectors.toMap(Function.identity(), pluginName -> pojoFormDescriptorGenerator.generateDescriptor(secretProviderService.getPluginConfigurationDescriptor(pluginName))));
SecretProviderConfigurationsDTO dto = new SecretProviderConfigurationsDTO();
dto.setCurrentConfiguration(location.getSecretProviderConfiguration());
dto.setGenericFormByPluginName(genericFormDescriptionByPluginName);
return dto;
}
Aggregations