Revision 3b17b230
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java | ||
---|---|---|
82 | 82 |
private static final long serialVersionUID = 1L; |
83 | 83 |
|
84 | 84 |
@Autowired |
85 |
private IRegistrationWorkingSetService workingSetService;
|
|
85 |
private IRegistrationWorkingSetService regWorkingSetService;
|
|
86 | 86 |
|
87 | 87 |
@Autowired |
88 | 88 |
private RegistrationIdentifierMinter minter; |
89 | 89 |
|
90 | 90 |
/** |
91 |
* @return the workingSetService
|
|
91 |
* @return the regWorkingSetService
|
|
92 | 92 |
*/ |
93 | 93 |
public IRegistrationWorkingSetService getWorkingSetService() { |
94 |
return workingSetService;
|
|
94 |
return regWorkingSetService;
|
|
95 | 95 |
} |
96 | 96 |
|
97 | 97 |
private RegistrationWorkingSet workingset; |
... | ... | |
396 | 396 |
} else { |
397 | 397 |
NameTypeDesignationPopupEditor popup = getNavigationManager().showInPopup(NameTypeDesignationPopupEditor.class); |
398 | 398 |
popup.withDeleteButton(true); |
399 |
popup.loadInEditor(event.getEntityId());
|
|
399 |
popup.loadInEditor(new TypeDesignationWorkingsetEditorIdSet(event.getRegistrationId(), event.getEntityId()));
|
|
400 | 400 |
|
401 | 401 |
popup.getCitationCombobox().setEnabled(false); |
402 | 402 |
popup.getTypifiedNamesComboboxSelect().setEnabled(false); |
... | ... | |
530 | 530 |
|
531 | 531 |
@EventListener(classes=ShowDetailsEvent.class, condition = "#event.type == T(eu.etaxonomy.cdm.vaadin.view.registration.RegistrationDTO)") |
532 | 532 |
public void onShowRegistrationMessages(ShowDetailsEvent<?,?> event) { // WARNING don't use more specific generic type arguments |
533 |
RegistrationDTO regDto = workingSetService.loadDtoById((Integer)event.getIdentifier());
|
|
533 |
RegistrationDTO regDto = regWorkingSetService.loadDtoById((Integer)event.getIdentifier());
|
|
534 | 534 |
if(event.getProperty().equals("messages")){ |
535 | 535 |
if(getView() != null){ |
536 | 536 |
getView().openDetailsPopup("Messages", regDto.getMessages()); |
Also available in: Unified diff
ref #6740 service methods to load NameTypeDesignations for Registrations