Project

General

Profile

« Previous | Next » 

Revision d98c0473

Added by Andreas Müller over 3 years ago

cleanup

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/registration/RegistrationWorkingSetService.java
180 180
        return convertToDTOPager(regPager);
181 181
    }
182 182

  
183

  
184
    /**
185
     * @param regPager
186
     * @return
187
     */
188 183
    @Override
189 184
    public Pager<RegistrationDTO> convertToDTOPager(Pager<Registration> regPager) {
190 185
        return new DefaultPagerImpl<RegistrationDTO>(regPager.getCurrentIndex(), regPager.getCount(), regPager.getPageSize(), makeDTOs(regPager.getRecords()));
191 186
    }
192 187

  
193

  
194 188
    @Override
195 189
    public Pager<RegistrationDTO> pageDTOs(Integer pageSize, Integer pageIndex) {
196

  
197 190
        return pageDTOs((UUID)null, null, null, null, null, null, pageSize, pageIndex, null);
198

  
199 191
    }
200 192

  
201 193
    /**
......
421 413
        return blockingSet;
422 414
    }
423 415

  
424
    /**
425
     * @param regs
426
     * @return
427
     */
428 416
    @Override
429 417
    public List<RegistrationDTO> makeDTOs(Collection<Registration> regs) {
430 418
        initializeSpecimens(regs);
......
433 421
        return dtos;
434 422
    }
435 423

  
436

  
437
    /**
438
     * @param regs
439
     */
440 424
    public void initializeSpecimens(Collection<Registration> regs) {
441 425
        for(Registration reg : regs){
442 426
            inititializeSpecimen(reg);
443 427
        }
444

  
445 428
    }
446 429

  
447

  
448
    /**
449
     * @param reg
450
     */
451 430
    public void inititializeSpecimen(Registration reg) {
452 431

  
453 432
        for(TypeDesignationBase<?> td : reg.getTypeDesignations()){

Also available in: Unified diff