diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2023-05-17 13:29:03 -0500 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-06-01 20:02:59 +0000 |
commit | 2b19b12cdc0623c07ebae3121b50965c257b5b36 (patch) | |
tree | b83cfc1659d46afc487b1bb040ffde00da68a38c /server/sonar-webserver-auth | |
parent | eacb54feaafed86f4b26b6f4d755f13baf8b9b1c (diff) | |
download | sonarqube-2b19b12cdc0623c07ebae3121b50965c257b5b36.tar.gz sonarqube-2b19b12cdc0623c07ebae3121b50965c257b5b36.zip |
SONAR-18856 Refactor properties
Diffstat (limited to 'server/sonar-webserver-auth')
-rw-r--r-- | server/sonar-webserver-auth/src/main/java/org/sonar/server/user/UserSession.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/server/sonar-webserver-auth/src/main/java/org/sonar/server/user/UserSession.java b/server/sonar-webserver-auth/src/main/java/org/sonar/server/user/UserSession.java index a49bf480760..a2a943abbcc 100644 --- a/server/sonar-webserver-auth/src/main/java/org/sonar/server/user/UserSession.java +++ b/server/sonar-webserver-auth/src/main/java/org/sonar/server/user/UserSession.java @@ -27,7 +27,6 @@ import javax.annotation.CheckForNull; import org.sonar.db.component.ComponentDto; import org.sonar.db.entity.EntityDto; import org.sonar.db.permission.GlobalPermission; -import org.sonar.db.portfolio.PortfolioDto; import org.sonar.db.project.ProjectDto; import org.sonar.db.user.GroupDto; @@ -141,7 +140,6 @@ public interface UserSession { /** * Returns {@code true} if the permission is granted to user on the component, * otherwise {@code false}. - * * If the component does not exist, then returns {@code false}. * * @param component non-null component. @@ -180,7 +178,7 @@ public interface UserSession { */ List<ComponentDto> keepAuthorizedComponents(String permission, Collection<ComponentDto> components); - <T extends EntityDto> List<T> keepAuthorizedEntities(String permission, Collection<T> components); + <T extends EntityDto> List<T> keepAuthorizedEntities(String permission, Collection<T> components); List<ProjectDto> keepAuthorizedProjects(String permission, Collection<ProjectDto> projects); @@ -222,7 +220,6 @@ public interface UserSession { /** * Whether user can administrate system, for example for using cross-organizations services * like update center, system info or management of users. - * * Returns {@code true} if: * <ul> * <li>user is administrator</li> |