diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-05-14 12:03:56 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-05-14 12:03:56 +0200 |
commit | 5e0fa9fce76a4fbc7bee9151643fb1c891ae92db (patch) | |
tree | 476b861672bc13edab361b9f795bf0bd790f053a /sonar-plugin-api/src | |
parent | 203a2b8addf29efe6b611bdafb50835e15ce164c (diff) | |
download | sonarqube-5e0fa9fce76a4fbc7bee9151643fb1c891ae92db.tar.gz sonarqube-5e0fa9fce76a4fbc7bee9151643fb1c891ae92db.zip |
SONAR-3755 Add resolved parameter to IssueFinder and improve issues search page
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java | 17 |
1 files changed, 17 insertions, 0 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 acc46cede45..4588fffe071 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; @@ -49,6 +50,7 @@ public class IssueQuery { private final Collection<String> assignees; private final Boolean assigned; private final Boolean planned; + private final Boolean resolved; private final Date createdAfter; private final Date createdBefore; private final Sort sort; @@ -74,6 +76,7 @@ public class IssueQuery { this.assignees = builder.assignees; this.assigned = builder.assigned; this.planned = builder.planned; + this.resolved = builder.resolved; this.createdAfter = builder.createdAfter; this.createdBefore = builder.createdBefore; this.sort = builder.sort; @@ -131,6 +134,10 @@ public class IssueQuery { return planned; } + public Boolean resolved() { + return resolved; + } + public Date createdAfter() { return createdAfter; } @@ -188,6 +195,7 @@ public class IssueQuery { private Collection<String> assignees; private Boolean assigned = null; private Boolean planned = null; + private Boolean resolved = null; private Date createdAfter; private Date createdBefore; private Sort sort; @@ -267,6 +275,15 @@ public class IssueQuery { return this; } + /** + * If true, it will return all resolved issues + * If false, it will return all none resolved issues + */ + public Builder resolved(Boolean resolved) { + this.resolved = resolved; + return this; + } + public Builder createdAfter(Date createdAfter) { this.createdAfter = createdAfter; return this; |