Revision 37f70555
Added by Andreas Kohlbecker over 5 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/name/TaxonNameEditorPresenter.java | ||
---|---|---|
49 | 49 |
import eu.etaxonomy.cdm.vaadin.event.ToOneRelatedEntityButtonUpdater; |
50 | 50 |
import eu.etaxonomy.cdm.vaadin.event.ToOneRelatedEntityReloader; |
51 | 51 |
import eu.etaxonomy.cdm.vaadin.model.name.TaxonNameDTO; |
52 |
import eu.etaxonomy.cdm.vaadin.permission.UserHelper; |
|
52 |
import eu.etaxonomy.cdm.vaadin.permission.VaadinUserHelper;
|
|
53 | 53 |
import eu.etaxonomy.cdm.vaadin.ui.RegistrationUIDefaults; |
54 | 54 |
import eu.etaxonomy.cdm.vaadin.util.CdmTitleCacheCaptionGenerator; |
55 | 55 |
import eu.etaxonomy.cdm.vaadin.view.reference.ReferencePopupEditor; |
... | ... | |
256 | 256 |
@Override |
257 | 257 |
protected void guaranteePerEntityCRUDPermissions(UUID identifier) { |
258 | 258 |
if(crud != null){ |
259 |
newAuthorityCreated = UserHelper.fromSession().createAuthorityForCurrentUser(TaxonName.class, identifier, crud, null); |
|
259 |
newAuthorityCreated = VaadinUserHelper.fromSession().createAuthorityForCurrentUser(TaxonName.class, identifier, crud, null);
|
|
260 | 260 |
} |
261 | 261 |
|
262 | 262 |
} |
... | ... | |
267 | 267 |
@Override |
268 | 268 |
protected void guaranteePerEntityCRUDPermissions(TaxonName bean) { |
269 | 269 |
if(crud != null){ |
270 |
newAuthorityCreated = UserHelper.fromSession().createAuthorityForCurrentUser(bean, crud, null); |
|
270 |
newAuthorityCreated = VaadinUserHelper.fromSession().createAuthorityForCurrentUser(bean, crud, null);
|
|
271 | 271 |
} |
272 | 272 |
} |
273 | 273 |
|
Also available in: Unified diff
ref #7550 moving the actual CdmUserHelper to cdmlib and making it available in cdm-vaadin by extending the UserHelper class and interface hierarchy