Project

General

Profile

Revision cdbf50c2

IDcdbf50c2395386700c5f3be83bb73c1e597be164
Parent ec3938a6
Child 2952d237

Added by Andreas Kohlbecker over 2 years ago

avoiding LIE

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java
39 39
import eu.etaxonomy.cdm.api.service.dto.TypedEntityReference;
40 40
import eu.etaxonomy.cdm.api.service.exception.RegistrationValidationException;
41 41
import eu.etaxonomy.cdm.api.service.idminter.IdentifierMinter.Identifier;
42
import eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.TypeDesignationWorkingSetType;
43 42
import eu.etaxonomy.cdm.api.service.idminter.RegistrationIdentifierMinter;
43
import eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.TypeDesignationWorkingSetType;
44 44
import eu.etaxonomy.cdm.ext.common.ExternalServiceException;
45 45
import eu.etaxonomy.cdm.ext.registration.messages.IRegistrationMessageService;
46 46
import eu.etaxonomy.cdm.model.common.User;
......
96 96
@ViewScope
97 97
public class RegistrationWorkingsetPresenter extends AbstractPresenter<RegistrationWorkingsetView> {
98 98

  
99
    /**
100
     *
101
     */
102
    private static final List<String> REGISTRATION_INIT_STRATEGY = Arrays.asList(
103
            "$",
104
            "blockedBy",
105
            "name.combinationAuthorship.teamMembers",
106
            "name.exCombinationAuthorship.teamMembers",
107
            "name.basionymAuthorship.teamMembers",
108
            "name.exBasionymAuthorship.teamMembers"
109
            );
110

  
99 111
    private static final long serialVersionUID = 1L;
100 112

  
101 113
    @Autowired
......
622 634
                if(rootContext.getParentView().equals(getView())){
623 635
                    Registration blockingRegistration = createNewRegistrationForName(event.getEntityUuid());
624 636
                    TypedEntityReference<Registration> regReference = (TypedEntityReference<Registration>)rootContext.getParentEntity();
625
                    Registration registration = getRepo().getRegistrationService().load(regReference.getUuid(), Arrays.asList("$", "blockedBy"));
637
                    Registration registration = getRepo().getRegistrationService().load(regReference.getUuid(), REGISTRATION_INIT_STRATEGY);
626 638
                    registration.getBlockedBy().add(blockingRegistration);
627 639
                    getRepo().getRegistrationService().saveOrUpdate(registration);
628 640
                    logger.debug("Blocking registration created");

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)