Project

General

Profile

« Previous | Next » 

Revision 699de23b

Added by Andreas Kohlbecker over 6 years ago

ref #7195 consistently displaying blocking registrations in list view and registration working set editor:

  • RegistrationWorkingSetService method to load blocking registrations
  • using ShowDetailsEvent to request presenters to show blocking registrations
  • adapting layout

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationDTO.java
58 58

  
59 59
    private List<String> messages = new ArrayList<>();
60 60

  
61
    private Set<RegistrationDTO> blockedBy;
61
    private Set<TypedEntityReference<Registration>> blockedBy;
62 62

  
63 63

  
64 64
    /**
......
366 366
    /**
367 367
     * @return the blockedBy
368 368
     */
369
    public Set<RegistrationDTO> getBlockedBy() {
369
    public Set<TypedEntityReference<Registration>> getBlockedBy() {
370 370

  
371 371
        if(blockedBy == null){
372 372
            blockedBy = new HashSet<>();
373 373
            if(reg.getBlockedBy() != null){
374 374
                for(Registration blockReg : reg.getBlockedBy()){
375
                    blockedBy.add(new RegistrationDTO(blockReg));
375
                    blockedBy.add(new TypedEntityReference<Registration>(Registration.class, blockReg.getId(), blockReg.getIdentifier()));
376 376
                }
377 377
            }
378 378
        }

Also available in: Unified diff