Revision 4f0afd36
Added by Andreas Kohlbecker over 5 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java | ||
---|---|---|
24 | 24 |
import org.springframework.beans.factory.annotation.Autowired; |
25 | 25 |
import org.springframework.security.core.Authentication; |
26 | 26 |
import org.springframework.transaction.TransactionStatus; |
27 |
import org.vaadin.spring.events.EventScope; |
|
27 | 28 |
import org.vaadin.spring.events.annotation.EventBusListenerMethod; |
28 | 29 |
|
29 | 30 |
import com.vaadin.server.SystemError; |
... | ... | |
95 | 96 |
import eu.etaxonomy.vaadin.mvp.AbstractPresenter; |
96 | 97 |
import eu.etaxonomy.vaadin.mvp.AbstractView; |
97 | 98 |
import eu.etaxonomy.vaadin.mvp.BeanInstantiator; |
99 |
import eu.etaxonomy.vaadin.ui.navigation.NavigationEvent; |
|
98 | 100 |
import eu.etaxonomy.vaadin.ui.view.DoneWithPopupEvent; |
99 | 101 |
import eu.etaxonomy.vaadin.ui.view.DoneWithPopupEvent.Reason; |
100 | 102 |
|
... | ... | |
728 | 730 |
return; |
729 | 731 |
} |
730 | 732 |
if(Reference.class.isAssignableFrom(event.getEntityType())){ |
733 |
|
|
731 | 734 |
if(workingset.getCitationUuid().equals(event.getEntityUuid())){ |
732 |
refreshView(true); |
|
735 |
if(event.isRemovedType()){ |
|
736 |
viewEventBus.publish(EventScope.UI, this, new NavigationEvent(StartRegistrationViewBean.NAME)); |
|
737 |
} else { |
|
738 |
refreshView(true); |
|
739 |
} |
|
733 | 740 |
} |
741 |
|
|
734 | 742 |
} else |
735 | 743 |
if(Registration.class.isAssignableFrom(event.getEntityType())){ |
736 | 744 |
if(workingset.getRegistrations().stream().anyMatch(reg -> reg.getUuid() == event.getEntityUuid())){ |
Also available in: Unified diff
navigating to RegistrationStart after Reference deletion in empty registration sets