Project

General

Profile

« Previous | Next » 

Revision 0844524a

Added by Andreas Kohlbecker about 6 years ago

switching vom id based to uuid based ui navigation and entity references

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/occurrence/CollectionEditorPresenter.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.springframework.context.annotation.Scope;
15 16
import org.vaadin.spring.events.annotation.EventBusListenerMethod;
......
43 44
     * {@inheritDoc}
44 45
     */
45 46
    @Override
46
    protected Collection loadCdmEntityById(Integer identifier) {
47
    protected Collection loadCdmEntity(UUID identifier) {
47 48

  
48 49
        List<String> initStrategy = Arrays.asList(new String []{
49 50

  
......
66 67
     * {@inheritDoc}
67 68
     */
68 69
    @Override
69
    protected void guaranteePerEntityCRUDPermissions(Integer identifier) {
70
    protected void guaranteePerEntityCRUDPermissions(UUID identifier) {
70 71
        if(crud != null){
71 72
            newAuthorityCreated = UserHelper.fromSession().createAuthorityForCurrentUser(Collection.class, identifier, crud, null);
72 73
        }
......
130 131

  
131 132
        collectionPopuEditor.grantToCurrentUser(this.crud);
132 133
        collectionPopuEditor.withDeleteButton(true);
133
        collectionPopuEditor.loadInEditor(event.getEntityId());
134
        collectionPopuEditor.loadInEditor(event.getEntityUuid());
134 135
    }
135 136

  
136 137
    @EventBusListenerMethod()

Also available in: Unified diff