diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-07-14 02:32:34 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-07-18 12:16:11 +0400 |
commit | a83c83f8e1f9c266d7c5e66fde5e2fd241a6e1d3 (patch) | |
tree | eb8295e2f7d26c6016756fc5d151a2d29490f6db /sonar-core | |
parent | caa29b24c0b5e61447ce9a788f022fa0cc08619c (diff) | |
download | sonarqube-a83c83f8e1f9c266d7c5e66fde5e2fd241a6e1d3.tar.gz sonarqube-a83c83f8e1f9c266d7c5e66fde5e2fd241a6e1d3.zip |
SONAR-2596 Add an event notification mechanism
For the moment works only on server-side and no data persisted into DB.
As a proof of concept - write message to log when comment was added to
review.
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/jpa/entity/Review.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/jpa/entity/Review.java b/sonar-core/src/main/java/org/sonar/jpa/entity/Review.java index 54984c4baf5..77dce349146 100644 --- a/sonar-core/src/main/java/org/sonar/jpa/entity/Review.java +++ b/sonar-core/src/main/java/org/sonar/jpa/entity/Review.java @@ -46,6 +46,10 @@ public final class Review { return id; } + public void setId(Long id) { + this.id = id; + } + /** * @return id of user, who created this review */ @@ -53,6 +57,11 @@ public final class Review { return userId; } + public Review setUserId(Integer userId) { + this.userId = userId; + return this; + } + /** * @return id of assigned user or null, if not assigned */ @@ -60,8 +69,18 @@ public final class Review { return assigneeId; } + public Review setAssigneeId(Integer assigneeId) { + this.assigneeId = assigneeId; + return this; + } + public String getTitle() { return title; } + public Review setTitle(String title) { + this.title = title; + return this; + } + } |