made processnotifiaction private
Change-Id: Ifdc2116b2c97c3e32e1a6212895fb38978cce1cb
This commit is contained in:
parent
7589a2a6a9
commit
3c479a9998
src/main/java/se/su/dsv/scipro/data
controllers
dataobjects
@ -12,9 +12,6 @@ import se.su.dsv.scipro.data.enums.NotificationPriority;
|
||||
*/
|
||||
public interface NotificationController {
|
||||
|
||||
public void processNotification(User usertoNotify, NotificationMessage notificationMessage,
|
||||
String absoluteUrl, NotificationPriority notificationPriority);
|
||||
|
||||
public void createNotificationForPrivateMessage(final User user, final String message,
|
||||
final String url);
|
||||
|
||||
|
@ -48,8 +48,7 @@ public class NotificationControllerImpl implements NotificationController {
|
||||
@Autowired
|
||||
protected MailEventDao mailEventDao;
|
||||
|
||||
@Override
|
||||
public void processNotification(User usertoNotify, NotificationMessage notificationMessage,
|
||||
private void processNotification(User usertoNotify, NotificationMessage notificationMessage,
|
||||
String absoluteUrl, NotificationPriority notificationPriorityForEvent) {
|
||||
GeneralSystemSettings generalSystemSettings = generalSystemSettingsDao
|
||||
.getGeneralSystemSettingsInstance();
|
||||
|
@ -35,7 +35,6 @@ public class PrivateMessage extends LazyDeletableDomainObject{
|
||||
@Id
|
||||
@GeneratedValue
|
||||
private Long id;
|
||||
//TODO Fix column size and validate this in any page that uses it
|
||||
|
||||
@Lob
|
||||
private String subject;
|
||||
|
@ -3,6 +3,7 @@
|
||||
*/
|
||||
package se.su.dsv.scipro.data.dataobjects;
|
||||
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.Cacheable;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
@ -32,14 +33,17 @@ public class WebNotification extends DomainObject{
|
||||
private Long id;
|
||||
|
||||
@Lob
|
||||
@Basic(optional=false)
|
||||
private String infoText;
|
||||
|
||||
@Lob
|
||||
@Basic(optional=false)
|
||||
private String url;
|
||||
|
||||
@ManyToOne(optional=false)
|
||||
private User user;
|
||||
|
||||
@Basic(optional=false)
|
||||
private boolean readByUser = false;
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user