Project

General

Profile

« Previous | Next » 

Revision 68b2628a

Added by Andreas Kohlbecker over 6 years ago

  • ID 68b2628aa8d5a04a8ce343e1298b0ca7f462e722
  • Parent 5613f613

ref #6999 fixing permission evaluation and adding debug button to gain per entitiy permissions

View differences:

src/main/java/eu/etaxonomy/vaadin/ui/navigation/NavigationManagerBean.java
22 22
import com.vaadin.ui.UI;
23 23
import com.vaadin.ui.Window;
24 24

  
25
import eu.etaxonomy.cdm.vaadin.security.PermissionDebugUtils;
25 26
import eu.etaxonomy.cdm.vaadin.security.UserHelper;
26 27
import eu.etaxonomy.vaadin.mvp.AbstractEditorPresenter;
27 28
import eu.etaxonomy.vaadin.mvp.AbstractPopupEditor;
......
52 53
	@Autowired
53 54
	private PopupEditorFactory popupEditorFactory;
54 55

  
56
	/**
57
	 * This reference will cause the scoped UserHelper being initialized
58
	 * It is not used in this class but attaches itself to the vaadin session
59
	 * from where it will be accessible via UserHelper.fromSession()
60
	 */
55 61
	@Autowired
56 62
    private UserHelper userHelper;
57 63

  
64
    /**
65
     * This reference will cause the scoped PermissionDebugUtils being initialized.
66
     * It is not used in this class but attaches itself to the vaadin session
67
     * from where it will be accessible via UserHelper.fromSession()
68
     *
69
     * <b>NOTE:</b> PermissionDebugUtils is only available if the spring profile "debug" is active,
70
     * See
71
     */
72
    @Autowired(required=false)
73
    private PermissionDebugUtils permissionDebugUtils;
74

  
58 75
	private Map<PopupView, Window> popupMap;
59 76

  
60 77
	public NavigationManagerBean() {
......
179 196
     *
180 197
     * @return the current view name or <code>null</code>
181 198
     */
199
    @Override
182 200
    public String getCurrentViewName() {
183 201
        SpringView springViewAnnotation = getCurrentView().getClass().getAnnotation(SpringView.class);
184 202
        if(springViewAnnotation != null){

Also available in: Unified diff