Revision 48477
Added by Alessia Bardi over 6 years ago
ProjectDetails.java | ||
---|---|---|
116 | 116 |
this.fundingPath = fundingPath; |
117 | 117 |
} |
118 | 118 |
|
119 |
public void setFundingPath(final List<String> fundingPath) { |
|
120 |
if(fundingPath != null && !fundingPath.isEmpty()) { |
|
121 |
this.fundingPath = fundingPath.toArray(new String[fundingPath.size()]); |
|
122 |
} |
|
123 |
} |
|
124 |
|
|
119 | 125 |
public static ProjectDetails fromJson(final String json) { |
120 | 126 |
return new Gson().fromJson(json, ProjectDetails.class); |
121 | 127 |
} |
Also available in: Unified diff
new setter with a list of funding info.
Controller test ignored as it requires a local postgres database.