notfitionan controller oxh getAbsoluteURL
Change-Id: Ie73f92185c8978dffbeef1ffbccd884d7d184154
This commit is contained in:
parent
332391fc04
commit
5db061e81c
src/main/java/se/su/dsv/scipro/opponent/panels
@ -389,14 +389,14 @@ public class EditFinalSeminarFormPanel extends Panel {
|
||||
editSeminar = finalSeminarDao.reLoad(editSeminar);
|
||||
|
||||
for (ProjectFollower pf : editSeminar.getProject().getProjectFollowers()) {
|
||||
notificationController.createNotificationForFinalSeminarEdited(pf
|
||||
notificationController.notifyFinalSeminarEdited(pf
|
||||
.getFollower().getUser(), editSeminar,
|
||||
NotificationPriority.MEDIUM, SupervisorProjectsFinalSeminarPage
|
||||
.getAbsoluteURL());
|
||||
|
||||
}
|
||||
for (Student student : editSeminar.getProject().getProjectParticipants()) {
|
||||
notificationController.createNotificationForFinalSeminarEdited(student
|
||||
notificationController.notifyFinalSeminarEdited(student
|
||||
.getUser(), editSeminar, NotificationPriority.HIGH,
|
||||
ProjectStartPage.getAbsoluteURL());
|
||||
|
||||
@ -405,21 +405,21 @@ public class EditFinalSeminarFormPanel extends Panel {
|
||||
//This may not work dependent on matched by in data object hasnt updated
|
||||
for (FinalSeminarActiveParticipation pf : editSeminar
|
||||
.getActiveParticipations()) {
|
||||
notificationController.createNotificationForFinalSeminarEdited(pf
|
||||
notificationController.notifyFinalSeminarEdited(pf
|
||||
.getUser(), editSeminar, NotificationPriority.MEDIUM,
|
||||
ProjectOppositionPage.getAbsoluteURL());
|
||||
}
|
||||
|
||||
//This may not work dependent on matched by in data object hasnt updated
|
||||
for (FinalSeminarOpposition pf : editSeminar.getOppositions()) {
|
||||
notificationController.createNotificationForFinalSeminarEdited(pf
|
||||
notificationController.notifyFinalSeminarEdited(pf
|
||||
.getOpponent().getUser(), editSeminar,
|
||||
NotificationPriority.MEDIUM, ProjectOppositionPage.getAbsoluteURL());
|
||||
}
|
||||
|
||||
if (admin) {
|
||||
if (editSeminar.getProject().getHeadSupervisor() != null) {
|
||||
notificationController.createNotificationForFinalSeminarEdited(
|
||||
notificationController.notifyFinalSeminarEdited(
|
||||
editSeminar.getProject().getHeadSupervisor().getUser(),
|
||||
editSeminar, NotificationPriority.HIGH,
|
||||
SupervisorProjectsFinalSeminarPage.getAbsoluteURL());
|
||||
|
@ -349,20 +349,20 @@ public class OpponentPanel extends Panel {
|
||||
}
|
||||
seminar = finalSeminarDao.reLoad(seminar);
|
||||
for (Student student : project.getProjectParticipants()) {
|
||||
notificationController.createNotificationForCreateFinalSeminar(
|
||||
notificationController.notifyCreateFinalSeminar(
|
||||
student.getUser(), seminar, NotificationPriority.HIGH,
|
||||
ProjectStartPage.getAbsoluteURL(), false);
|
||||
}
|
||||
|
||||
for (ProjectFollower pf : project.getProjectFollowers()) {
|
||||
notificationController.createNotificationForCreateFinalSeminar(pf
|
||||
notificationController.notifyCreateFinalSeminar(pf
|
||||
.getFollower().getUser(), seminar, NotificationPriority.HIGH,
|
||||
SupervisorProjectsFinalSeminarPage.getAbsoluteURL(), false);
|
||||
}
|
||||
|
||||
// This doesn't load must reload seminar in som way to get it.
|
||||
for (FinalSeminarOpposition pf : seminar.getOppositions()) {
|
||||
notificationController.createNotificationForCreateFinalSeminar(pf
|
||||
notificationController.notifyCreateFinalSeminar(pf
|
||||
.getOpponent().getUser(), seminar, NotificationPriority.HIGH,
|
||||
ProjectOppositionPage.getAbsoluteURL(), true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user