use of com.thoughtworks.go.plugin.access.common.models.PluginProfileMetadataKey in project gocd by gocd.
the class PluginConfiguration method getPluginConfigurations.
public static ArrayList<PluginConfiguration> getPluginConfigurations(PluginProfileMetadataKeys config) {
ArrayList<PluginConfiguration> pluginConfigurations = new ArrayList<>();
for (PluginProfileMetadataKey property : config) {
Map<String, Object> metaData = new HashMap<>();
metaData.put(ViewModelBuilder.REQUIRED_OPTION, property.getMetadata().isRequired());
metaData.put(ViewModelBuilder.SECURE_OPTION, property.getMetadata().isSecure());
pluginConfigurations.add(new PluginConfiguration(property.getKey(), metaData));
}
return pluginConfigurations;
}
Aggregations