Revision 91710ccd
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkflowPresenter.java | ||
---|---|---|
14 | 14 |
|
15 | 15 |
import org.apache.log4j.Logger; |
16 | 16 |
import org.springframework.beans.factory.annotation.Autowired; |
17 |
import org.springframework.beans.factory.annotation.Qualifier; |
|
18 | 17 |
import org.springframework.context.event.EventListener; |
19 | 18 |
import org.springframework.transaction.TransactionStatus; |
20 | 19 |
|
... | ... | |
49 | 48 |
private static final long serialVersionUID = 1L; |
50 | 49 |
|
51 | 50 |
@Autowired |
52 |
@Qualifier(IRegistrationWorkingSetService.ACTIVE_IMPL) |
|
53 | 51 |
private IRegistrationWorkingSetService workingSetService; |
54 | 52 |
|
55 | 53 |
private RegistrationWorkingSet workingset; |
... | ... | |
81 | 79 |
} |
82 | 80 |
getView().setWorkingset(workingset); |
83 | 81 |
} else { |
84 |
Integer registrationID = event.getRegistrationID();
|
|
85 |
presentWorkingSetByRegID(registrationID);
|
|
82 |
Integer citationID = event.getCitationID();
|
|
83 |
presentWorkingSetByRegID(citationID);
|
|
86 | 84 |
} |
87 | 85 |
|
88 | 86 |
} |
... | ... | |
92 | 90 |
* @deprecated use other method working sets should only be addressed by the referenceID |
93 | 91 |
*/ |
94 | 92 |
@Deprecated |
95 |
private void presentWorkingSetByRegID(Integer registrationID) {
|
|
93 |
private void presentWorkingSetByRegID(Integer citationID) {
|
|
96 | 94 |
try { |
97 |
workingset = workingSetService.loadWorkingSetByRegistrationID(registrationID);
|
|
95 |
workingset = workingSetService.loadWorkingSetByCitationID(citationID);
|
|
98 | 96 |
} catch (RegistrationValidationException error) { |
99 | 97 |
getView().getWorkflow().setComponentError(new SystemError(error)); |
100 | 98 |
} |
... | ... | |
178 | 176 |
} |
179 | 177 |
|
180 | 178 |
/** |
181 |
*
|
|
179 |
* |
|
182 | 180 |
*/ |
183 | 181 |
protected void refreshView() { |
184 | 182 |
presentWorkingSet(workingset.getCitationId()); |
Also available in: Unified diff
ref #6169 remoging service mock and loading ResgistrationSets by citationID