Revision 0844524a
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/reference/ReferenceEditorPresenter.java | ||
---|---|---|
10 | 10 |
|
11 | 11 |
import java.util.Arrays; |
12 | 12 |
import java.util.List; |
13 |
import java.util.UUID; |
|
13 | 14 |
|
14 | 15 |
import org.apache.log4j.Logger; |
15 | 16 |
import org.springframework.context.annotation.Scope; |
... | ... | |
84 | 85 |
* {@inheritDoc} |
85 | 86 |
*/ |
86 | 87 |
@Override |
87 |
protected Reference loadCdmEntityById(Integer identifier) {
|
|
88 |
protected Reference loadCdmEntity(UUID identifier) {
|
|
88 | 89 |
|
89 | 90 |
List<String> initStrategy = Arrays.asList(new String []{ |
90 | 91 |
|
... | ... | |
117 | 118 |
* {@inheritDoc} |
118 | 119 |
*/ |
119 | 120 |
@Override |
120 |
protected void guaranteePerEntityCRUDPermissions(Integer identifier) {
|
|
121 |
protected void guaranteePerEntityCRUDPermissions(UUID identifier) {
|
|
121 | 122 |
if(crud != null){ |
122 | 123 |
newAuthorityCreated = UserHelper.fromSession().createAuthorityForCurrentUser(Reference.class, identifier, crud, null); |
123 | 124 |
} |
... | ... | |
154 | 155 |
if(editorAction.isEditAction()){ |
155 | 156 |
inReferencePopup = getNavigationManager().showInPopup(ReferencePopupEditor.class, getView()); |
156 | 157 |
inReferencePopup.withDeleteButton(true); |
157 |
inReferencePopup.loadInEditor(editorAction.getEntityId());
|
|
158 |
inReferencePopup.loadInEditor(editorAction.getEntityUuid());
|
|
158 | 159 |
} |
159 | 160 |
} |
160 | 161 |
} |
Also available in: Unified diff
switching vom id based to uuid based ui navigation and entity references