Project

General

Profile

« Previous | Next » 

Revision 3419b32d

Added by Andreas Kohlbecker over 6 years ago

ref #7035 unbinding ConversationHolder on access denied situations

View differences:

src/main/java/eu/etaxonomy/vaadin/mvp/AbstractView.java
11 11

  
12 12
import com.vaadin.ui.CustomComponent;
13 13

  
14
import eu.etaxonomy.cdm.vaadin.security.ReleasableResourcesView;
15

  
14 16
/**
15 17
 * AbstractView is the base class of all MVP views. It takes care of finding
16 18
 * appropriate presenter component for the view.
......
24 26
 */
25 27
@SuppressWarnings("serial")
26 28
public abstract class AbstractView<P extends AbstractPresenter> extends CustomComponent
27
		implements ApplicationContextAware {
29
		implements ApplicationContextAware, ReleasableResourcesView {
28 30

  
29 31

  
30 32
    public static final Logger logger = Logger.getLogger(AbstractView.class);
......
92 94
	public ApplicationEventPublisher getEventBus(){
93 95
	    return eventBus;
94 96
	}
97

  
98
   @Override
99
    public void releaseResourcesOnAccessDenied() {
100
        getPresenter().onViewExit();
101
    }
95 102
}

Also available in: Unified diff