Revision 320ad9d6
Added by Andreas Kohlbecker almost 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/reference/ReferenceEditorPresenter.java | ||
---|---|---|
26 | 26 |
import eu.etaxonomy.cdm.model.reference.Reference; |
27 | 27 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory; |
28 | 28 |
import eu.etaxonomy.cdm.service.CdmFilterablePagingProvider; |
29 |
import eu.etaxonomy.cdm.service.UserHelperAccess; |
|
29 | 30 |
import eu.etaxonomy.cdm.vaadin.event.EntityChangeEvent; |
30 | 31 |
import eu.etaxonomy.cdm.vaadin.event.ReferenceEditorAction; |
31 | 32 |
import eu.etaxonomy.cdm.vaadin.event.ToOneRelatedEntityButtonUpdater; |
32 | 33 |
import eu.etaxonomy.cdm.vaadin.event.ToOneRelatedEntityReloader; |
33 |
import eu.etaxonomy.cdm.vaadin.permission.VaadinUserHelper; |
|
34 | 34 |
import eu.etaxonomy.vaadin.component.ToOneRelatedEntityField; |
35 | 35 |
import eu.etaxonomy.vaadin.mvp.AbstractCdmEditorPresenter; |
36 | 36 |
|
... | ... | |
120 | 120 |
@Override |
121 | 121 |
protected void guaranteePerEntityCRUDPermissions(UUID identifier) { |
122 | 122 |
if(crud != null){ |
123 |
newAuthorityCreated = VaadinUserHelper.fromSession().createAuthorityForCurrentUser(Reference.class, identifier, crud, null);
|
|
123 |
newAuthorityCreated = UserHelperAccess.userHelper().createAuthorityForCurrentUser(Reference.class, identifier, crud, null);
|
|
124 | 124 |
} |
125 | 125 |
|
126 | 126 |
} |
... | ... | |
131 | 131 |
@Override |
132 | 132 |
protected void guaranteePerEntityCRUDPermissions(Reference bean) { |
133 | 133 |
if(crud != null){ |
134 |
newAuthorityCreated = VaadinUserHelper.fromSession().createAuthorityForCurrentUser(bean, crud, null);
|
|
134 |
newAuthorityCreated = UserHelperAccess.userHelper().createAuthorityForCurrentUser(bean, crud, null);
|
|
135 | 135 |
} |
136 | 136 |
} |
137 | 137 |
|
Also available in: Unified diff
ref #7550 replacing the selfregisration of the VaadinUserHelper to the vaadin session by a UserHelperAccess bean