From: Julien Lancelot Date: Mon, 1 Jul 2013 07:26:01 +0000 (+0200) Subject: SONAR-4449 Fix SQL returning issues with all columns X-Git-Tag: 3.6.1~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=abe3ced83543d0f1998bf1acfca4e6b5b705c787;p=sonarqube.git SONAR-4449 Fix SQL returning issues with all columns --- diff --git a/sonar-core/src/main/java/org/sonar/core/issue/db/IssueMapper.java b/sonar-core/src/main/java/org/sonar/core/issue/db/IssueMapper.java index d8ea5863a07..31339c7e920 100644 --- a/sonar-core/src/main/java/org/sonar/core/issue/db/IssueMapper.java +++ b/sonar-core/src/main/java/org/sonar/core/issue/db/IssueMapper.java @@ -37,9 +37,17 @@ public interface IssueMapper { * Return a paginated list of authorized issue ids for a user. * If the role is null, then the authorisation check is disabled. */ + List selectIssueIds(@Param("query") IssueQuery query, @Param("componentRootKeys") Collection componentRootKeys, + @Nullable @Param("userId") Integer userId, @Nullable @Param("role") String role, + @Param("maxResults") Integer maxResult); + + /** + * Return a none paginated list of authorized issues for a user. + * If the role is null, then the authorisation check is disabled. + */ List selectIssues(@Param("query") IssueQuery query, @Param("componentRootKeys") Collection componentRootKeys, - @Nullable @Param("userId") Integer userId, @Nullable @Param("role") String role, - @Param("maxResults") Integer maxResult, @Param("returnOnlyIdAndSortColumns") boolean returnOnlyIdAndSortColumns); + @Nullable @Param("userId") Integer userId, @Nullable @Param("role") String role); + void insert(IssueDto issue);