Revision 320ad9d6
Added by Andreas Kohlbecker almost 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/occurrence/CollectionEditorPresenter.java | ||
---|---|---|
20 | 20 |
import eu.etaxonomy.cdm.api.service.IService; |
21 | 21 |
import eu.etaxonomy.cdm.model.occurrence.Collection; |
22 | 22 |
import eu.etaxonomy.cdm.service.CdmFilterablePagingProvider; |
23 |
import eu.etaxonomy.cdm.service.UserHelperAccess; |
|
23 | 24 |
import eu.etaxonomy.cdm.vaadin.event.CollectionEditorAction; |
24 | 25 |
import eu.etaxonomy.cdm.vaadin.event.EditorActionTypeFilter; |
25 | 26 |
import eu.etaxonomy.cdm.vaadin.event.EntityChangeEvent; |
26 | 27 |
import eu.etaxonomy.cdm.vaadin.event.ToOneRelatedEntityReloader; |
27 |
import eu.etaxonomy.cdm.vaadin.permission.VaadinUserHelper; |
|
28 | 28 |
import eu.etaxonomy.vaadin.mvp.AbstractCdmEditorPresenter; |
29 | 29 |
import eu.etaxonomy.vaadin.mvp.BoundField; |
30 | 30 |
import eu.etaxonomy.vaadin.ui.view.PopupView; |
... | ... | |
70 | 70 |
@Override |
71 | 71 |
protected void guaranteePerEntityCRUDPermissions(UUID identifier) { |
72 | 72 |
if(crud != null){ |
73 |
newAuthorityCreated = VaadinUserHelper.fromSession().createAuthorityForCurrentUser(Collection.class, identifier, crud, null);
|
|
73 |
newAuthorityCreated = UserHelperAccess.userHelper().createAuthorityForCurrentUser(Collection.class, identifier, crud, null);
|
|
74 | 74 |
} |
75 | 75 |
|
76 | 76 |
} |
... | ... | |
81 | 81 |
@Override |
82 | 82 |
protected void guaranteePerEntityCRUDPermissions(Collection bean) { |
83 | 83 |
if(crud != null){ |
84 |
newAuthorityCreated = VaadinUserHelper.fromSession().createAuthorityForCurrentUser(bean, crud, null);
|
|
84 |
newAuthorityCreated = UserHelperAccess.userHelper().createAuthorityForCurrentUser(bean, crud, null);
|
|
85 | 85 |
} |
86 | 86 |
|
87 | 87 |
} |
Also available in: Unified diff
ref #7550 replacing the selfregisration of the VaadinUserHelper to the vaadin session by a UserHelperAccess bean