Revision 51531
Added by Konstantina Galouni about 6 years ago
CommunityPage.java | ||
---|---|---|
18 | 18 |
private String type; |
19 | 19 |
private List<Entity> entities; |
20 | 20 |
private Boolean isEnabled; |
21 |
private Boolean connect; |
|
22 |
private Boolean openaire; |
|
21 | 23 |
|
22 | 24 |
public CommunityPage() {} |
23 | 25 |
|
... | ... | |
26 | 28 |
this.setRoute(page.getRoute()); |
27 | 29 |
this.setName(page.getName()); |
28 | 30 |
this.setType(page.getType()); |
31 |
this.setConnect(page.getConnect()); |
|
32 |
this.setOpenaire(page.getOpenaire()); |
|
29 | 33 |
} |
30 | 34 |
|
31 | 35 |
public String getId() { |
... | ... | |
67 | 71 |
public Boolean getIsEnabled() { return isEnabled; } |
68 | 72 |
|
69 | 73 |
public void setIsEnabled(Boolean isEnabled) { this.isEnabled = isEnabled; } |
74 |
|
|
75 |
public Boolean getConnect() { |
|
76 |
return connect; |
|
77 |
} |
|
78 |
|
|
79 |
public void setConnect(Boolean connect) { |
|
80 |
this.connect = connect; |
|
81 |
} |
|
82 |
|
|
83 |
public Boolean getOpenaire() { |
|
84 |
return openaire; |
|
85 |
} |
|
86 |
|
|
87 |
public void setOpenaire(Boolean openaire) { |
|
88 |
this.openaire = openaire; |
|
89 |
} |
|
70 | 90 |
} |
Also available in: Unified diff
1. Bug fixes in updata_db.js.
2. ExceptionsHandler.java: Handler added for NullPointerException.
3. CommunityPage.java: 'connect' and 'openaire' fields (with getters and setters) added.
4. PageController.java: in '/page' method, RequestParam 'pid' is not required.
5. PageController.java: in 'getPageByCommunityPage' method (used by '/page/save' and '/page/update'), get and set properly 'connect' and 'openaire' fields.