Search in sources :

Example 1 with DeveloperProjectDetailInformation

use of com.mercedesbenz.sechub.developertools.admin.DeveloperProjectDetailInformation in project sechub by mercedes-benz.

the class ChangeProjectAccessLevelAction method fetchCurrentProjectAccessLevel.

private ProjectAccessLevel fetchCurrentProjectAccessLevel(String projectId, DeveloperAdministration administration) {
    DeveloperProjectDetailInformation details = administration.fetchProjectDetailInformation(projectId);
    ProjectAccessLevel currentAccesslevel = ProjectAccessLevel.fromId(details.getAccessLevel());
    return currentAccesslevel;
}
Also used : DeveloperProjectDetailInformation(com.mercedesbenz.sechub.developertools.admin.DeveloperProjectDetailInformation) ProjectAccessLevel(com.mercedesbenz.sechub.sharedkernel.project.ProjectAccessLevel)

Aggregations

DeveloperProjectDetailInformation (com.mercedesbenz.sechub.developertools.admin.DeveloperProjectDetailInformation)1 ProjectAccessLevel (com.mercedesbenz.sechub.sharedkernel.project.ProjectAccessLevel)1