use of com.thoughtworks.go.config.security.Permissions in project gocd by gocd.
the class GoDashboardCurrentStateLoader method pipelineFor.
public GoDashboardPipeline pipelineFor(PipelineConfig pipelineConfig, PipelineConfigs groupConfig) {
List<String> pipelineNames = CaseInsensitiveString.toStringList(Collections.singletonList(pipelineConfig.getName()));
PipelineInstanceModels historyForDashboard = loadHistoryForPipelines(pipelineNames);
Permissions permissions = permissionsAuthority.permissionsForPipeline(pipelineConfig.name());
return createGoDashboardPipeline(pipelineConfig, permissions, historyForDashboard, groupConfig);
}
Aggregations