getAbsoluteURL
Change-Id: I6888c5f28206710ac4663a8856ff7c80c0607887
This commit is contained in:
parent
325d31900b
commit
332391fc04
src/main/java/se/su/dsv/scipro/message
@ -74,7 +74,7 @@ public class PrivateMessageModel implements IClusterable {
|
|||||||
rec.setToUser(selectedUser);
|
rec.setToUser(selectedUser);
|
||||||
rec.setPrivateMessage(pm);
|
rec.setPrivateMessage(pm);
|
||||||
rec = recipientDao.save(rec);
|
rec = recipientDao.save(rec);
|
||||||
notificationController.createNotificationForPrivateMessage(selectedUser, subject +"\n\n" + textMessage, PrivateMessagesPage.getAbsoluteForPrivateMessageURL());
|
notificationController.notifyPrivateMessage(selectedUser, subject +"\n\n" + textMessage, PrivateMessagesPage.getAbsoluteURL());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ public class ReplyMessageModel implements IClusterable {
|
|||||||
r.setToUser(originalMessage.getFromUser());
|
r.setToUser(originalMessage.getFromUser());
|
||||||
r.setPrivateMessage(pm);
|
r.setPrivateMessage(pm);
|
||||||
r = recipientDao.save(r);
|
r = recipientDao.save(r);
|
||||||
notificationController.createNotificationForReplyPrivateMessage(originalMessage.getFromUser(), getReplySubject() +"\n\n" + getReplyText(), PrivateMessagesPage.getAbsoluteForPrivateMessageURL());
|
notificationController.notifyReplyPrivateMessage(originalMessage.getFromUser(), getReplySubject() +"\n\n" + getReplyText(), PrivateMessagesPage.getAbsoluteURL());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ public class PrivateMessagesPage extends MenuPage {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getAbsoluteForPrivateMessageURL() {
|
public static String getAbsoluteURL() {
|
||||||
PageParameters pageParameters = new PageParameters();
|
PageParameters pageParameters = new PageParameters();
|
||||||
return RequestUtils.toAbsolutePath(RequestCycle.get()
|
return RequestUtils.toAbsolutePath(RequestCycle.get()
|
||||||
.urlFor(PrivateMessagesPage.class, pageParameters).toString());
|
.urlFor(PrivateMessagesPage.class, pageParameters).toString());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user