Revision 49990
Added by Michele Artini over 6 years ago
DatasourceFunctions.java | ||
---|---|---|
141 | 141 |
return null; |
142 | 142 |
} |
143 | 143 |
|
144 |
public static Map<String, Object> orgToMap(final Organization<?> org) { |
|
145 |
// TODO Auto-generated method stub |
|
146 |
return null; |
|
144 |
public static Map<String, Object> orgToMap(final String dsId, final Organization<?> org) { |
|
145 |
final Map<String, Object> map = new HashMap<>(); |
|
146 |
map.put("dsId", dsId); |
|
147 |
map.put("orgId", org.getId()); |
|
148 |
map.put("legalname", org.getLegalname()); |
|
149 |
map.put("legalshortname", org.getLegalshortname()); |
|
150 |
map.put("websiteurl", org.getWebsiteurl()); |
|
151 |
map.put("logourl", org.getLogourl()); |
|
152 |
map.put("country", org.getCountry()); |
|
153 |
return map; |
|
147 | 154 |
} |
148 | 155 |
|
149 | 156 |
public static Map<String, Object> apiToMap(final Api<?> api) { |
Also available in: Unified diff