Search in sources :

Example 16 with Permissions

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);
}
Also used : PipelineInstanceModels(com.thoughtworks.go.presentation.pipelinehistory.PipelineInstanceModels) PipelineInstanceModels.createPipelineInstanceModels(com.thoughtworks.go.presentation.pipelinehistory.PipelineInstanceModels.createPipelineInstanceModels) Permissions(com.thoughtworks.go.config.security.Permissions)

Aggregations

Permissions (com.thoughtworks.go.config.security.Permissions)16 Test (org.junit.Test)12 AllowedUsers (com.thoughtworks.go.config.security.users.AllowedUsers)7 FileConfigOrigin (com.thoughtworks.go.config.remote.FileConfigOrigin)4 ProjectStatus (com.thoughtworks.go.domain.activity.ProjectStatus)4 PipelineModel (com.thoughtworks.go.presentation.pipelinehistory.PipelineModel)4 PipelineInstanceModels.createPipelineInstanceModels (com.thoughtworks.go.presentation.pipelinehistory.PipelineInstanceModels.createPipelineInstanceModels)3 PipelineConfig (com.thoughtworks.go.config.PipelineConfig)2 Users (com.thoughtworks.go.config.security.users.Users)2 PipelineGroupVisitor (com.thoughtworks.go.domain.PipelineGroupVisitor)2 PipelineInstanceModels (com.thoughtworks.go.presentation.pipelinehistory.PipelineInstanceModels)2 Username (com.thoughtworks.go.server.domain.Username)2 PipelineSelections (com.thoughtworks.go.server.domain.user.PipelineSelections)2 ArrayList (java.util.ArrayList)2 PiplineConfigVisitor (com.thoughtworks.go.domain.PiplineConfigVisitor)1 ArgumentCaptor (org.mockito.ArgumentCaptor)1