aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-05-21 12:12:17 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-05-21 12:12:17 +0200
commitc93e1fea3a623d6d214c3fcb7b33cdd93c774937 (patch)
tree65da779b62904e18bc1fbfd441da1c347d1139dd /sonar-plugin-api
parentb6b56822d8206c05510da48678dea8021b5be109 (diff)
downloadsonarqube-c93e1fea3a623d6d214c3fcb7b33cdd93c774937.tar.gz
sonarqube-c93e1fea3a623d6d214c3fcb7b33cdd93c774937.zip
SONAR-4301 Add sort on issue search page
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java
index 869be8aca7e..4a74dedf0fb 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java
@@ -25,6 +25,7 @@ import org.sonar.api.rule.RuleKey;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
+
import java.util.Collection;
import java.util.Date;
@@ -39,7 +40,7 @@ public class IssueQuery {
public static final int MAX_ISSUE_KEYS = 500;
public static enum Sort {
- CREATION_DATE, UPDATE_DATE, CLOSE_DATE, ASSIGNEE, SEVERITY
+ CREATION_DATE, UPDATE_DATE, CLOSE_DATE, ASSIGNEE, SEVERITY, STATUS
}
private final Collection<String> issueKeys;
@@ -58,7 +59,7 @@ public class IssueQuery {
private final Date createdAfter;
private final Date createdBefore;
private final Sort sort;
- private final boolean asc;
+ private final Boolean asc;
private final String requiredRole;
// max results per page
@@ -154,7 +155,7 @@ public class IssueQuery {
return sort;
}
- public boolean asc() {
+ public Boolean asc() {
return asc;
}
@@ -197,7 +198,7 @@ public class IssueQuery {
private Date createdAfter;
private Date createdBefore;
private Sort sort;
- private boolean asc = false;
+ private Boolean asc = false;
private Integer pageSize;
private Integer pageIndex;
private String requiredRole;
@@ -297,7 +298,7 @@ public class IssueQuery {
return this;
}
- public Builder asc(boolean asc) {
+ public Builder asc(Boolean asc) {
this.asc = asc;
return this;
}