more code cleanup in ControllerImpl.

This commit is contained in:
Emil Siverhall 2011-08-05 10:39:36 +02:00
parent 9fe7bfc5be
commit d9cc046464

@ -117,6 +117,9 @@ public class NotificationControllerImpl implements NotificationController {
notificationDao.save(notification);
}
/*
* String resources is available in file SciProApplication.properties.
*/
private String generateMail(String userFirstName, String addMessage,
String absoluteUrl) {
return new StringResourceModel("mailNotification", null, new Object[] {
@ -307,10 +310,6 @@ public class NotificationControllerImpl implements NotificationController {
String webNotificationMessageForSupervisorOfReviewer = new StringResourceModel(
"reviewCompletedforReviewSupervisor.webNotification",
new Model<PeerReview>(review)).getString();
/*messageBody = supervisorMessageBody + review.getProject().getTitle()
+ commaWithLinebreak + review.getReviewer().getUser().toString()
+ supervisorMessageBody3;*/
User reviewSupervisor = review.getProject().getHeadSupervisor().getUser();
NotificationMessage notificationMessageSupervisorOfReviewer = new NotificationMessage(