]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4449 Fix SQL returning issues with all columns
authorJulien Lancelot <julien.lancelot@gmail.com>
Mon, 1 Jul 2013 07:26:01 +0000 (09:26 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Tue, 2 Jul 2013 11:21:51 +0000 (13:21 +0200)
sonar-core/src/main/java/org/sonar/core/issue/db/IssueMapper.java

index d8ea5863a070d489d569c9fae43de842ac25efad..31339c7e92098743c8b49bad016f9e516110a28a 100644 (file)
@@ -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<IssueDto> selectIssueIds(@Param("query") IssueQuery query, @Param("componentRootKeys") Collection<String> 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<IssueDto> selectIssues(@Param("query") IssueQuery query, @Param("componentRootKeys") Collection<String> 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);