more code cleanup in ControllerImpl.
This commit is contained in:
parent
9fe7bfc5be
commit
d9cc046464
@ -117,6 +117,9 @@ public class NotificationControllerImpl implements NotificationController {
|
|||||||
notificationDao.save(notification);
|
notificationDao.save(notification);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* String resources is available in file SciProApplication.properties.
|
||||||
|
*/
|
||||||
private String generateMail(String userFirstName, String addMessage,
|
private String generateMail(String userFirstName, String addMessage,
|
||||||
String absoluteUrl) {
|
String absoluteUrl) {
|
||||||
return new StringResourceModel("mailNotification", null, new Object[] {
|
return new StringResourceModel("mailNotification", null, new Object[] {
|
||||||
@ -308,10 +311,6 @@ public class NotificationControllerImpl implements NotificationController {
|
|||||||
"reviewCompletedforReviewSupervisor.webNotification",
|
"reviewCompletedforReviewSupervisor.webNotification",
|
||||||
new Model<PeerReview>(review)).getString();
|
new Model<PeerReview>(review)).getString();
|
||||||
|
|
||||||
/*messageBody = supervisorMessageBody + review.getProject().getTitle()
|
|
||||||
+ commaWithLinebreak + review.getReviewer().getUser().toString()
|
|
||||||
+ supervisorMessageBody3;*/
|
|
||||||
|
|
||||||
User reviewSupervisor = review.getProject().getHeadSupervisor().getUser();
|
User reviewSupervisor = review.getProject().getHeadSupervisor().getUser();
|
||||||
NotificationMessage notificationMessageSupervisorOfReviewer = new NotificationMessage(
|
NotificationMessage notificationMessageSupervisorOfReviewer = new NotificationMessage(
|
||||||
webNotificationMessageForSupervisorOfReviewer, mailSubject, webNotificationMessageForSupervisorOfReviewer);
|
webNotificationMessageForSupervisorOfReviewer, mailSubject, webNotificationMessageForSupervisorOfReviewer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user