Revision 486ae8a3
Added by Andreas Müller almost 4 years ago
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/PolytomousKeyPortalController.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.cdm.remote.controller; |
10 | 10 |
|
11 |
import io.swagger.annotations.Api; |
|
12 |
import io.swagger.annotations.ApiOperation; |
|
13 |
|
|
14 | 11 |
import java.io.IOException; |
15 | 12 |
import java.util.ArrayList; |
16 | 13 |
import java.util.List; |
... | ... | |
29 | 26 |
|
30 | 27 |
import eu.etaxonomy.cdm.api.service.IPolytomousKeyService; |
31 | 28 |
import eu.etaxonomy.cdm.model.description.PolytomousKey; |
29 |
import io.swagger.annotations.Api; |
|
30 |
import io.swagger.annotations.ApiOperation; |
|
32 | 31 |
|
33 | 32 |
/** |
34 | 33 |
* @author a.kohlbecker |
... | ... | |
68 | 67 |
|
69 | 68 |
ModelAndView mv = new ModelAndView(); |
70 | 69 |
|
71 |
List<String> nodePaths = new ArrayList<String>();
|
|
70 |
List<String> nodePaths = new ArrayList<>(); |
|
72 | 71 |
nodePaths.add("subkey"); |
73 | 72 |
nodePaths.add("taxon.name.nomenclaturalSource.citation"); |
74 | 73 |
|
75 |
List<String> propertyPaths = new ArrayList<String>();
|
|
74 |
List<String> propertyPaths = new ArrayList<>(); |
|
76 | 75 |
propertyPaths.add("sources"); |
77 | 76 |
propertyPaths.add("annotations"); |
78 | 77 |
|
79 | 78 |
PolytomousKey key = service.loadWithNodes(uuid, propertyPaths, nodePaths); |
80 | 79 |
mv.addObject(key); |
81 | 80 |
return mv; |
82 |
|
|
83 | 81 |
} |
84 |
|
|
85 |
} |
|
86 |
|
|
82 |
} |
Also available in: Unified diff
cleanup