added a notificationpriority field
Change-Id: I4f45f106d3c8fa1ffebeb6182a4833957874a2d6
This commit is contained in:
parent
29726c28e3
commit
4cc172b512
@ -2,6 +2,8 @@ package se.su.dsv.scipro.data.dataobjects;
|
||||
|
||||
import javax.persistence.Cacheable;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.EnumType;
|
||||
import javax.persistence.Enumerated;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Lob;
|
||||
@ -11,6 +13,8 @@ import javax.persistence.Table;
|
||||
|
||||
import org.hibernate.annotations.Cache;
|
||||
import org.hibernate.annotations.CacheConcurrencyStrategy;
|
||||
|
||||
import se.su.dsv.scipro.data.enums.NotificationPriority;
|
||||
/**
|
||||
*
|
||||
* @author Martin Peters - mpeters@dsv.su.se
|
||||
@ -38,6 +42,9 @@ public class UserSettings extends DomainObject {
|
||||
private String iPhoneId;
|
||||
private boolean available = false;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private NotificationPriority notificationPriority = NotificationPriority.MEDIUM;
|
||||
|
||||
@Lob
|
||||
private String statusMessage = "";
|
||||
|
||||
@ -104,4 +111,19 @@ public class UserSettings extends DomainObject {
|
||||
this.activeProject = activeProject;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the notificationPriority
|
||||
*/
|
||||
public NotificationPriority getNotificationPriority() {
|
||||
return notificationPriority;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param notificationPriority the notificationPriority to set
|
||||
*/
|
||||
public void setNotificationPriority(NotificationPriority notificationPriority) {
|
||||
this.notificationPriority = notificationPriority;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user