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/view/registration/RegistrationEditorPresenter.java
21 21
import eu.etaxonomy.cdm.model.common.User;
22 22
import eu.etaxonomy.cdm.model.name.Registration;
23 23
import eu.etaxonomy.cdm.vaadin.component.CdmBeanItemContainerFactory;
24
import eu.etaxonomy.cdm.vaadin.permission.UserHelper;
24
import eu.etaxonomy.cdm.vaadin.permission.VaadinUserHelper;
25 25
import eu.etaxonomy.vaadin.mvp.AbstractCdmEditorPresenter;
26 26

  
27 27
/**
......
65 65
    @Override
66 66
    protected void guaranteePerEntityCRUDPermissions(UUID identifier) {
67 67
        if(crud != null){
68
            newAuthorityCreated = UserHelper.fromSession().createAuthorityForCurrentUser(Registration.class, identifier, crud, null);
68
            newAuthorityCreated = VaadinUserHelper.fromSession().createAuthorityForCurrentUser(Registration.class, identifier, crud, null);
69 69
        }
70 70

  
71 71
    }
......
76 76
    @Override
77 77
    protected void guaranteePerEntityCRUDPermissions(Registration bean) {
78 78
        if(crud != null){
79
            newAuthorityCreated = UserHelper.fromSession().createAuthorityForCurrentUser(bean, crud, null);
79
            newAuthorityCreated = VaadinUserHelper.fromSession().createAuthorityForCurrentUser(bean, crud, null);
80 80
        }
81 81
    }
82 82

  

Also available in: Unified diff