From 2b19b12cdc0623c07ebae3121b50965c257b5b36 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Wed, 17 May 2023 13:29:03 -0500 Subject: SONAR-18856 Refactor properties --- .../src/main/java/org/sonar/server/user/UserSession.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'server/sonar-webserver-auth') 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 keepAuthorizedComponents(String permission, Collection components); - List keepAuthorizedEntities(String permission, Collection components); + List keepAuthorizedEntities(String permission, Collection components); List keepAuthorizedProjects(String permission, Collection 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: *
    *
  • user is administrator
  • -- cgit v1.2.3