Project

General

Profile

« Previous | Next » 

Revision 37f70555

Added by Andreas Kohlbecker almost 6 years ago

ref #7550 moving the actual CdmUserHelper to cdmlib and making it available in cdm-vaadin by extending the UserHelper class and interface hierarchy

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/permission/PermissionDebugUtils.java
82 82
    public Button gainPerEntityPermissionButton(Class<? extends CdmBase> cdmType, UUID entitiyUuid, EnumSet<CRUD> crud, String property){
83 83

  
84 84
       Button button = new Button(FontAwesome.BOLT);
85
       button.addClickListener(e -> UserHelper.fromSession().createAuthorityFor(UserHelper.fromSession().userName(), cdmType, entitiyUuid, crud, property));
85
       button.addClickListener(e -> VaadinUserHelper.fromSession().createAuthorityFor(VaadinUserHelper.fromSession().userName(), cdmType, entitiyUuid, crud, property));
86 86
       button.addStyleName(ValoTheme.BUTTON_DANGER);
87 87
       return button;
88 88

  

Also available in: Unified diff