Revision 56174
Added by Konstantina Galouni almost 5 years ago
CommunityPage.java | ||
---|---|---|
19 | 19 |
private List<Entity> entities; |
20 | 20 |
private Boolean isEnabled; |
21 | 21 |
private Boolean connect; |
22 |
private Boolean communities; |
|
22 | 23 |
private Boolean openaire; |
23 | 24 |
|
24 | 25 |
public CommunityPage() {} |
... | ... | |
29 | 30 |
this.setName(page.getName()); |
30 | 31 |
this.setType(page.getType()); |
31 | 32 |
this.setConnect(page.getConnect()); |
33 |
this.setCommunities(page.getCommunities()); |
|
32 | 34 |
this.setOpenaire(page.getOpenaire()); |
33 | 35 |
} |
34 | 36 |
|
... | ... | |
76 | 78 |
return connect; |
77 | 79 |
} |
78 | 80 |
|
79 |
public void setConnect(Boolean connect) { |
|
80 |
this.connect = connect; |
|
81 |
public void setConnect(Boolean connect) { this.connect = connect; } |
|
82 |
|
|
83 |
public Boolean getCommunities() { |
|
84 |
return communities; |
|
81 | 85 |
} |
82 | 86 |
|
87 |
public void setCommunities(Boolean communities) { |
|
88 |
this.communities = communities; |
|
89 |
} |
|
90 |
|
|
83 | 91 |
public Boolean getOpenaire() { |
84 | 92 |
return openaire; |
85 | 93 |
} |
Also available in: Unified diff
1. CommunityController.java: Add check for pid: "connect"
2. DivIdController.java: Bug fix: Save and Update methods should get parameter DivIdResponse
3. PageController.java: pid == "connect" case - get pages that are enabled in connect
4. CommunityPage.java & Page.java & PageDAO.java & MongoDBPageDAO.java: Rename "connect" field to "communities" and use "connect" field for connect general pages (not community specific)
5. update_db.js: Add function to set "communities" field in each page with value from "connect" field, and make "connect" false.