1
|
package eu.dnetlib.uoaadmintools.entities;
|
2
|
|
3
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
4
|
import org.springframework.data.annotation.Id;
|
5
|
|
6
|
/**
|
7
|
* Created by argirok on 6/7/2018.
|
8
|
*/
|
9
|
public class Notifications {
|
10
|
@Id
|
11
|
@JsonProperty("_id")
|
12
|
private String id;
|
13
|
Boolean notifyForNewManagers = true;
|
14
|
Boolean notifyForNewSubscribers = true;
|
15
|
String managerEmail;
|
16
|
String portalPid;
|
17
|
public Notifications(){
|
18
|
|
19
|
}
|
20
|
public Notifications(String managerEmail, String portalPid){
|
21
|
this();
|
22
|
this.portalPid = portalPid;
|
23
|
this.managerEmail = managerEmail;
|
24
|
}
|
25
|
public String getId() {
|
26
|
return id;
|
27
|
}
|
28
|
|
29
|
public void setId(String id) {
|
30
|
this.id = id;
|
31
|
}
|
32
|
|
33
|
public Boolean getNotifyForNewManagers() {
|
34
|
return notifyForNewManagers;
|
35
|
}
|
36
|
|
37
|
public void setNotifyForNewManagers(Boolean notifyForNewManagers) {
|
38
|
this.notifyForNewManagers = notifyForNewManagers;
|
39
|
}
|
40
|
|
41
|
public Boolean getNotifyForNewSubscribers() {
|
42
|
return notifyForNewSubscribers;
|
43
|
}
|
44
|
|
45
|
public void setNotifyForNewSubscribers(Boolean notifyForNewSubscribers) {
|
46
|
this.notifyForNewSubscribers = notifyForNewSubscribers;
|
47
|
}
|
48
|
|
49
|
public String getManagerEmail() {
|
50
|
return managerEmail;
|
51
|
}
|
52
|
|
53
|
public void setManagerEmail(String managerEmail) {
|
54
|
this.managerEmail = managerEmail;
|
55
|
}
|
56
|
|
57
|
public String getPortalPid() {
|
58
|
return portalPid;
|
59
|
}
|
60
|
|
61
|
public void setPortalPid(String portalPid) {
|
62
|
this.portalPid = portalPid;
|
63
|
}
|
64
|
|
65
|
@Override
|
66
|
public String toString() {
|
67
|
return "Notifications{" +
|
68
|
"id='" + id + '\'' +
|
69
|
", notifyForNewManagers=" + notifyForNewManagers +
|
70
|
", notifyForNewSubscribers=" + notifyForNewSubscribers +
|
71
|
", managerEmail='" + managerEmail + '\'' +
|
72
|
", portalPid='" + portalPid + '\'' +
|
73
|
'}';
|
74
|
}
|
75
|
}
|