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);
|
editSeminar = finalSeminarDao.reLoad(editSeminar);
|
||||||
|
|
||||||
for (ProjectFollower pf : editSeminar.getProject().getProjectFollowers()) {
|
for (ProjectFollower pf : editSeminar.getProject().getProjectFollowers()) {
|
||||||
notificationController.createNotificationForFinalSeminarEdited(pf
|
notificationController.notifyFinalSeminarEdited(pf
|
||||||
.getFollower().getUser(), editSeminar,
|
.getFollower().getUser(), editSeminar,
|
||||||
NotificationPriority.MEDIUM, SupervisorProjectsFinalSeminarPage
|
NotificationPriority.MEDIUM, SupervisorProjectsFinalSeminarPage
|
||||||
.getAbsoluteURL());
|
.getAbsoluteURL());
|
||||||
|
|
||||||
}
|
}
|
||||||
for (Student student : editSeminar.getProject().getProjectParticipants()) {
|
for (Student student : editSeminar.getProject().getProjectParticipants()) {
|
||||||
notificationController.createNotificationForFinalSeminarEdited(student
|
notificationController.notifyFinalSeminarEdited(student
|
||||||
.getUser(), editSeminar, NotificationPriority.HIGH,
|
.getUser(), editSeminar, NotificationPriority.HIGH,
|
||||||
ProjectStartPage.getAbsoluteURL());
|
ProjectStartPage.getAbsoluteURL());
|
||||||
|
|
||||||
@ -405,21 +405,21 @@ public class EditFinalSeminarFormPanel extends Panel {
|
|||||||
//This may not work dependent on matched by in data object hasnt updated
|
//This may not work dependent on matched by in data object hasnt updated
|
||||||
for (FinalSeminarActiveParticipation pf : editSeminar
|
for (FinalSeminarActiveParticipation pf : editSeminar
|
||||||
.getActiveParticipations()) {
|
.getActiveParticipations()) {
|
||||||
notificationController.createNotificationForFinalSeminarEdited(pf
|
notificationController.notifyFinalSeminarEdited(pf
|
||||||
.getUser(), editSeminar, NotificationPriority.MEDIUM,
|
.getUser(), editSeminar, NotificationPriority.MEDIUM,
|
||||||
ProjectOppositionPage.getAbsoluteURL());
|
ProjectOppositionPage.getAbsoluteURL());
|
||||||
}
|
}
|
||||||
|
|
||||||
//This may not work dependent on matched by in data object hasnt updated
|
//This may not work dependent on matched by in data object hasnt updated
|
||||||
for (FinalSeminarOpposition pf : editSeminar.getOppositions()) {
|
for (FinalSeminarOpposition pf : editSeminar.getOppositions()) {
|
||||||
notificationController.createNotificationForFinalSeminarEdited(pf
|
notificationController.notifyFinalSeminarEdited(pf
|
||||||
.getOpponent().getUser(), editSeminar,
|
.getOpponent().getUser(), editSeminar,
|
||||||
NotificationPriority.MEDIUM, ProjectOppositionPage.getAbsoluteURL());
|
NotificationPriority.MEDIUM, ProjectOppositionPage.getAbsoluteURL());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (admin) {
|
if (admin) {
|
||||||
if (editSeminar.getProject().getHeadSupervisor() != null) {
|
if (editSeminar.getProject().getHeadSupervisor() != null) {
|
||||||
notificationController.createNotificationForFinalSeminarEdited(
|
notificationController.notifyFinalSeminarEdited(
|
||||||
editSeminar.getProject().getHeadSupervisor().getUser(),
|
editSeminar.getProject().getHeadSupervisor().getUser(),
|
||||||
editSeminar, NotificationPriority.HIGH,
|
editSeminar, NotificationPriority.HIGH,
|
||||||
SupervisorProjectsFinalSeminarPage.getAbsoluteURL());
|
SupervisorProjectsFinalSeminarPage.getAbsoluteURL());
|
||||||
|
@ -349,20 +349,20 @@ public class OpponentPanel extends Panel {
|
|||||||
}
|
}
|
||||||
seminar = finalSeminarDao.reLoad(seminar);
|
seminar = finalSeminarDao.reLoad(seminar);
|
||||||
for (Student student : project.getProjectParticipants()) {
|
for (Student student : project.getProjectParticipants()) {
|
||||||
notificationController.createNotificationForCreateFinalSeminar(
|
notificationController.notifyCreateFinalSeminar(
|
||||||
student.getUser(), seminar, NotificationPriority.HIGH,
|
student.getUser(), seminar, NotificationPriority.HIGH,
|
||||||
ProjectStartPage.getAbsoluteURL(), false);
|
ProjectStartPage.getAbsoluteURL(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (ProjectFollower pf : project.getProjectFollowers()) {
|
for (ProjectFollower pf : project.getProjectFollowers()) {
|
||||||
notificationController.createNotificationForCreateFinalSeminar(pf
|
notificationController.notifyCreateFinalSeminar(pf
|
||||||
.getFollower().getUser(), seminar, NotificationPriority.HIGH,
|
.getFollower().getUser(), seminar, NotificationPriority.HIGH,
|
||||||
SupervisorProjectsFinalSeminarPage.getAbsoluteURL(), false);
|
SupervisorProjectsFinalSeminarPage.getAbsoluteURL(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// This doesn't load must reload seminar in som way to get it.
|
// This doesn't load must reload seminar in som way to get it.
|
||||||
for (FinalSeminarOpposition pf : seminar.getOppositions()) {
|
for (FinalSeminarOpposition pf : seminar.getOppositions()) {
|
||||||
notificationController.createNotificationForCreateFinalSeminar(pf
|
notificationController.notifyCreateFinalSeminar(pf
|
||||||
.getOpponent().getUser(), seminar, NotificationPriority.HIGH,
|
.getOpponent().getUser(), seminar, NotificationPriority.HIGH,
|
||||||
ProjectOppositionPage.getAbsoluteURL(), true);
|
ProjectOppositionPage.getAbsoluteURL(), true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user