Revision 60521
Added by Konstantina Galouni about 3 years ago
CuratorResponse.java | ||
---|---|---|
6 | 6 |
|
7 | 7 |
public class CuratorResponse { |
8 | 8 |
|
9 |
private String email; |
|
10 | 9 |
private String name; |
11 | 10 |
private List<Affiliation> affiliations; |
12 | 11 |
private String photo; |
... | ... | |
16 | 15 |
} |
17 | 16 |
|
18 | 17 |
public CuratorResponse(Curator curator) { |
19 |
this.email = curator.getEmail(); |
|
20 | 18 |
this.name = curator.getName(); |
21 | 19 |
this.affiliations = curator.getAffiliations(); |
22 | 20 |
this.photo = curator.getPhoto(); |
23 | 21 |
this.bio = curator.getBio(); |
24 | 22 |
} |
25 | 23 |
|
26 |
public String getEmail() { |
|
27 |
return email; |
|
28 |
} |
|
29 |
|
|
30 |
public void setEmail(String email) { |
|
31 |
this.email = email; |
|
32 |
} |
|
33 |
|
|
34 | 24 |
public String getName() { |
35 | 25 |
return name; |
36 | 26 |
} |
Also available in: Unified diff
[Trunk | Admin Tools]:
1. CuratorResponse.java: Remove "email" field.
2. EmailController.java:
a.Replace methods "notifyNewManagers()" (/notifyForNewManagers/{pid}) and "notifyForNewSubscribers()" (/notifyForNewSuscribers/{pid})
with "notifyManagers()" (/notifyManagers/{pid}/{newRoleType}), where newRoleType is "manager" or "subscriber".
b. Method notifyManagers() finds manager emails by calling registry service - stop getting them from portals inside Email object.