Revision 07ac49bc
Added by Andreas Kohlbecker about 5 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/registration/RegistrationWorkingSetService.java | ||
---|---|---|
425 | 425 |
* @param regs |
426 | 426 |
* @return |
427 | 427 |
*/ |
428 |
private List<RegistrationDTO> makeDTOs(List<Registration> regs) { |
|
428 |
@Override |
|
429 |
public List<RegistrationDTO> makeDTOs(Collection<Registration> regs) { |
|
429 | 430 |
initializeSpecimens(regs); |
430 | 431 |
List<RegistrationDTO> dtos = new ArrayList<>(regs.size()); |
431 | 432 |
regs.forEach(reg -> {dtos.add(new RegistrationDTO(reg));}); |
... | ... | |
436 | 437 |
/** |
437 | 438 |
* @param regs |
438 | 439 |
*/ |
439 |
public void initializeSpecimens(List<Registration> regs) {
|
|
440 |
public void initializeSpecimens(Collection<Registration> regs) {
|
|
440 | 441 |
for(Registration reg : regs){ |
441 | 442 |
inititializeSpecimen(reg); |
442 | 443 |
} |
Also available in: Unified diff
ref #8059 fixing RegistrationServiceImpl.assureIsPersisted() for situations when the save does not persist immediately