diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-07-25 17:35:50 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-07-25 20:49:27 +0400 |
commit | e7675ba5c8c7d6bb7550fba092dfb1a9abd3ec5c (patch) | |
tree | 4aac8004869aaa3560847f39563b6291e0306446 /sonar-plugin-api | |
parent | df3a115737be44a003cff9a0289c34911cee8052 (diff) | |
download | sonarqube-e7675ba5c8c7d6bb7550fba092dfb1a9abd3ec5c.tar.gz sonarqube-e7675ba5c8c7d6bb7550fba092dfb1a9abd3ec5c.zip |
SONAR-2607 Provide email notifications on review changes
* Update CloseReviewsDecorator to send notifications
* Fix permalink in ReviewEmailTemplate
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/database/model/Review.java | 59 |
1 files changed, 58 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/database/model/Review.java b/sonar-plugin-api/src/main/java/org/sonar/api/database/model/Review.java index dc92a9851e6..927e96a4a8e 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/database/model/Review.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/database/model/Review.java @@ -19,7 +19,16 @@ */ package org.sonar.api.database.model; -import javax.persistence.*; +import java.util.Date; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.Table; + +import org.apache.commons.lang.builder.ToStringBuilder; +import org.apache.commons.lang.builder.ToStringStyle; @Entity @Table(name = "reviews") @@ -39,6 +48,33 @@ public final class Review { @Column(name = "title") private String title; + @Column(name = "status") + private String status; + + @Column(name = "resolution") + private String resolution; + + @Column(name = "rule_failure_permanent_id") + private Integer permanentId; + + @Column(name = "project_id") + private Integer projectId; + + @Column(name = "resource_id") + private Integer resourceId; + + @Column(name = "resource_line") + private Integer resourceLine; + + @Column(name = "created_at") + private Date createdAt; + + @Column(name = "updated_at") + private Date updatedAt; + + @Column(name = "severity") + private String severity; + /** * @return id of review */ @@ -83,4 +119,25 @@ public final class Review { return this; } + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getResolution() { + return resolution; + } + + public void setResolution(String resolution) { + this.resolution = resolution; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); + } + } |