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/registration/RegistrationMessagesPresenter.java
11 11
import java.util.Arrays;
12 12
import java.util.List;
13 13
import java.util.Stack;
14
import java.util.UUID;
14 15

  
15 16
import org.springframework.beans.factory.annotation.Autowired;
16 17
import org.springframework.context.annotation.Scope;
......
56 57
    /**
57 58
     * @param identifier
58 59
     */
59
    public void loadMessagesFor(Integer id) {
60
    public void loadMessagesFor(UUID uuid) {
60 61
        if(registration == null){
61
            registration = registrationService.load(id, Arrays.asList("submitter"));
62
            registration = registrationService.load(uuid, Arrays.asList("submitter"));
62 63
        }
63 64
        try {
64 65
            List<Message> messages = messageService.listMessages(registration);
......
99 100
        }
100 101
        try {
101 102
            messageService.postMessage(registration, message, user, toUser);
102
            loadMessagesFor(registration.getId());
103
            loadMessagesFor(registration.getUuid());
103 104
        } catch (ExternalServiceException e) {
104 105
            logger.error(e);
105 106
            throw new RuntimeException(e);

Also available in: Unified diff