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
|
String aaiId;
|
18
|
|
19
|
public Notifications(){
|
20
|
|
21
|
}
|
22
|
public Notifications(String managerEmail, String portalPid){
|
23
|
this();
|
24
|
this.portalPid = portalPid;
|
25
|
this.managerEmail = managerEmail;
|
26
|
}
|
27
|
public String getId() {
|
28
|
return id;
|
29
|
}
|
30
|
|
31
|
public void setId(String id) {
|
32
|
this.id = id;
|
33
|
}
|
34
|
|
35
|
public Boolean getNotifyForNewManagers() {
|
36
|
return notifyForNewManagers;
|
37
|
}
|
38
|
|
39
|
public void setNotifyForNewManagers(Boolean notifyForNewManagers) {
|
40
|
this.notifyForNewManagers = notifyForNewManagers;
|
41
|
}
|
42
|
|
43
|
public Boolean getNotifyForNewSubscribers() {
|
44
|
return notifyForNewSubscribers;
|
45
|
}
|
46
|
|
47
|
public void setNotifyForNewSubscribers(Boolean notifyForNewSubscribers) {
|
48
|
this.notifyForNewSubscribers = notifyForNewSubscribers;
|
49
|
}
|
50
|
|
51
|
public String getManagerEmail() {
|
52
|
return managerEmail;
|
53
|
}
|
54
|
|
55
|
public void setManagerEmail(String managerEmail) {
|
56
|
this.managerEmail = managerEmail;
|
57
|
}
|
58
|
|
59
|
public String getPortalPid() {
|
60
|
return portalPid;
|
61
|
}
|
62
|
|
63
|
public void setPortalPid(String portalPid) {
|
64
|
this.portalPid = portalPid;
|
65
|
}
|
66
|
|
67
|
public String getAaiId() {
|
68
|
return aaiId;
|
69
|
}
|
70
|
|
71
|
public void setAaiId(String aaiId) {
|
72
|
this.aaiId = aaiId;
|
73
|
}
|
74
|
|
75
|
@Override
|
76
|
public String toString() {
|
77
|
return "Notifications{" +
|
78
|
"id='" + id + '\'' +
|
79
|
", notifyForNewManagers=" + notifyForNewManagers +
|
80
|
", notifyForNewSubscribers=" + notifyForNewSubscribers +
|
81
|
", managerEmail='" + managerEmail + '\'' +
|
82
|
", portalPid='" + portalPid + '\'' +
|
83
|
'}';
|
84
|
}
|
85
|
}
|