Revision fe785c1e
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/ListPresenter.java | ||
---|---|---|
48 | 48 |
@Autowired |
49 | 49 |
private IRegistrationWorkingSetService workingSetService; |
50 | 50 |
|
51 |
/** |
|
52 |
* @return the workingSetService |
|
53 |
*/ |
|
54 |
public IRegistrationWorkingSetService getWorkingSetService() { |
|
55 |
ensureBoundConversation(); |
|
56 |
return workingSetService; |
|
57 |
} |
|
58 |
|
|
51 | 59 |
@Override |
52 | 60 |
public void handleViewEntered() { |
53 | 61 |
getView().populate(listRegistrations()); |
... | ... | |
77 | 85 |
// no parameter provided: IGNORE |
78 | 86 |
} |
79 | 87 |
|
80 |
Collection<RegistrationDTO> dtos = workingSetService.listDTOs(submitter, includeStatus);
|
|
88 |
Collection<RegistrationDTO> dtos = getWorkingSetService().listDTOs(submitter, includeStatus);
|
|
81 | 89 |
return dtos; |
82 | 90 |
} |
83 | 91 |
|
84 | 92 |
@EventListener(classes=ShowDetailsEvent.class, condition = "#event.type == T(eu.etaxonomy.cdm.vaadin.view.registration.RegistrationDTO)") |
85 | 93 |
public void onShowDetailsEvent(ShowDetailsEvent<?,?> event) { // WARNING don't use more specific generic type arguments |
86 |
RegistrationDTO regDto = workingSetService.loadDtoById((Integer)event.getIdentifier());
|
|
94 |
RegistrationDTO regDto = getWorkingSetService().loadDtoById((Integer)event.getIdentifier());
|
|
87 | 95 |
if(event.getProperty().equals("messages")){ |
88 | 96 |
if(getView() != null){ |
89 | 97 |
getView().openDetailsPopup("Messages", regDto.getMessages()); |
Also available in: Unified diff
fix #6687 per view implementation of the 'session-per-conversation' pattern