Revision 9d5ae601
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/service/RegistrationWorkingSetService.java | ||
---|---|---|
97 | 97 |
return makeDTOs(pager.getRecords()); |
98 | 98 |
} |
99 | 99 |
|
100 |
/** |
|
101 |
* {@inheritDoc} |
|
102 |
* @throws RegistrationValidationException |
|
103 |
*/ |
|
104 |
@Override |
|
105 |
public RegistrationWorkingSet loadWorkingSetByReferenceID(Integer referenceID) throws RegistrationValidationException { |
|
106 |
Reference reference = repo.getReferenceService().find(referenceID); |
|
107 |
Pager<Registration> pager = repo.getRegistrationService().page(Optional.of(reference), null, null, null, null); |
|
108 |
return new RegistrationWorkingSet(makeDTOs(pager.getRecords())); |
|
109 |
} |
|
110 |
|
|
100 | 111 |
/** |
101 | 112 |
* @param id the CDM Entity id |
102 | 113 |
* @return |
103 | 114 |
* @throws RegistrationValidationException |
115 |
* @deprecated use other method working sets should only be addressed by the referenceID |
|
104 | 116 |
*/ |
117 |
@Deprecated |
|
105 | 118 |
@Override |
106 | 119 |
public RegistrationWorkingSet loadWorkingSetByRegistrationID(Integer id) throws RegistrationValidationException { |
107 | 120 |
|
108 | 121 |
RegistrationDTO dto = loadDtoById(id); |
109 |
|
|
110 | 122 |
Pager<Registration> pager = repo.getRegistrationService().page(Optional.of((Reference)dto.getCitation()), null, null, null, null); |
111 |
|
|
112 | 123 |
return new RegistrationWorkingSet(makeDTOs(pager.getRecords())); |
113 | 124 |
} |
114 | 125 |
|
... | ... | |
126 | 137 |
|
127 | 138 |
|
128 | 139 |
|
140 |
|
|
141 |
|
|
129 | 142 |
} |
Also available in: Unified diff
ref #6612 updating UI components on modified References