aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-12-04 23:24:13 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-12-04 23:24:33 +0100
commitee09f485818f4808fa7aff7c02969c972931a180 (patch)
tree1f2f1ddcc33e1256cd3140182fb76fc867246ed6 /sonar-core
parent524677d6bdb4b9810583c7f2fe8b20de0d070ffe (diff)
downloadsonarqube-ee09f485818f4808fa7aff7c02969c972931a180.tar.gz
sonarqube-ee09f485818f4808fa7aff7c02969c972931a180.zip
SONAR-1974 inject manual violations into batch
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/persistence/model/Review.java45
-rw-r--r--sonar-core/src/main/java/org/sonar/persistence/model/ReviewQuery.java3
2 files changed, 34 insertions, 14 deletions
diff --git a/sonar-core/src/main/java/org/sonar/persistence/model/Review.java b/sonar-core/src/main/java/org/sonar/persistence/model/Review.java
index 24877895b66..54fb8ce2d96 100644
--- a/sonar-core/src/main/java/org/sonar/persistence/model/Review.java
+++ b/sonar-core/src/main/java/org/sonar/persistence/model/Review.java
@@ -25,6 +25,10 @@ import java.util.Date;
* @since 2.13
*/
public class Review {
+
+ public static final String STATUS_OPEN = "OPEN";
+ public static final String STATUS_CLOSED = "CLOSED";
+
private Long id;
private Integer userId;
private Integer assigneeId;
@@ -63,103 +67,116 @@ public class Review {
return assigneeId;
}
- public void setAssigneeId(Integer assigneeId) {
+ public Review setAssigneeId(Integer assigneeId) {
this.assigneeId = assigneeId;
+ return this;
}
public String getTitle() {
return title;
}
- public void setTitle(String title) {
+ public Review setTitle(String title) {
this.title = title;
+ return this;
}
public String getStatus() {
return status;
}
- public void setStatus(String status) {
+ public Review setStatus(String status) {
this.status = status;
+ return this;
}
public String getResolution() {
return resolution;
}
- public void setResolution(String resolution) {
+ public Review setResolution(String resolution) {
this.resolution = resolution;
+ return this;
}
public Integer getViolationPermanentId() {
return violationPermanentId;
}
- public void setViolationPermanentId(Integer violationPermanentId) {
+ public Review setViolationPermanentId(Integer violationPermanentId) {
this.violationPermanentId = violationPermanentId;
+ return this;
}
public Integer getProjectId() {
return projectId;
}
- public void setProjectId(Integer projectId) {
+ public Review setProjectId(Integer projectId) {
this.projectId = projectId;
+ return this;
}
public Integer getResourceId() {
return resourceId;
}
- public void setResourceId(Integer resourceId) {
+ public Review setResourceId(Integer resourceId) {
this.resourceId = resourceId;
+ return this;
}
public Integer getLine() {
return line;
}
- public void setLine(Integer line) {
+ public Review setLine(Integer line) {
this.line = line;
+ return this;
}
public Date getCreatedAt() {
return createdAt;
}
- public void setCreatedAt(Date createdAt) {
+ public Review setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
+ return this;
}
public Date getUpdatedAt() {
return updatedAt;
}
- public void setUpdatedAt(Date updatedAt) {
+ public Review setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
+ return this;
}
public String getSeverity() {
return severity;
}
- public void setSeverity(String severity) {
+ public Review setSeverity(String severity) {
this.severity = severity;
+ return this;
}
public Integer getRuleId() {
return ruleId;
}
- public void setRuleId(Integer ruleId) {
+ public Review setRuleId(Integer ruleId) {
this.ruleId = ruleId;
+ return this;
}
public Boolean getManualViolation() {
return manualViolation;
}
- public void setManualViolation(Boolean manualViolation) {
- this.manualViolation = manualViolation;
+ public Review setManualViolation(Boolean b) {
+ this.manualViolation = b;
+ return this;
}
}
diff --git a/sonar-core/src/main/java/org/sonar/persistence/model/ReviewQuery.java b/sonar-core/src/main/java/org/sonar/persistence/model/ReviewQuery.java
index 69ee246e600..ccb7cf7c5ee 100644
--- a/sonar-core/src/main/java/org/sonar/persistence/model/ReviewQuery.java
+++ b/sonar-core/src/main/java/org/sonar/persistence/model/ReviewQuery.java
@@ -19,6 +19,9 @@
*/
package org.sonar.persistence.model;
+/**
+ * @since 2.13
+ */
public final class ReviewQuery {
private Boolean manualViolation;
private Integer resourceId;