Revision 60657
Added by Michele Artini about 3 years ago
AffiliationsAjaxController.java | ||
---|---|---|
9 | 9 |
import org.springframework.web.bind.annotation.RequestBody; |
10 | 10 |
import org.springframework.web.bind.annotation.RequestMapping; |
11 | 11 |
import org.springframework.web.bind.annotation.RequestMethod; |
12 |
import org.springframework.web.bind.annotation.RestController; |
|
13 | 12 |
|
14 | 13 |
import eu.dnetlib.data.db.Affiliation; |
15 | 14 |
import eu.dnetlib.data.db.AffiliationsDao; |
16 | 15 |
import eu.dnetlib.data.db.Group; |
17 | 16 |
import eu.dnetlib.data.db.Person; |
18 | 17 |
|
19 |
@RestController |
|
18 |
// @RestController |
|
19 |
@Deprecated |
|
20 | 20 |
public class AffiliationsAjaxController { |
21 | 21 |
|
22 | 22 |
@Autowired |
... | ... | |
24 | 24 |
|
25 | 25 |
@RequestMapping(value = "/ui/portal/aff_view", method = RequestMethod.GET) |
26 | 26 |
public Map<String, List<Person>> persons() { |
27 |
return dao.listPersonsWithAffiliations().stream().collect(Collectors.groupingBy(Person::getName, TreeMap::new, Collectors.toList()));
|
|
27 |
return dao.listPersonsWithAffiliations().stream().collect(Collectors.groupingBy(Person::getFullname, TreeMap::new, Collectors.toList()));
|
|
28 | 28 |
} |
29 | 29 |
|
30 | 30 |
@RequestMapping(value = "/ui/portal/groups", method = RequestMethod.GET) |
Also available in: Unified diff
author format: surname, name