Project

General

Profile

Download (2.73 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.vaadin.view.registration;
10

    
11
import java.util.List;
12
import java.util.Map;
13
import java.util.Set;
14
import java.util.UUID;
15

    
16
import org.vaadin.viritin.fields.LazyComboBox;
17

    
18
import com.vaadin.ui.Button;
19

    
20
import eu.etaxonomy.cdm.api.service.dto.RegistrationDTO;
21
import eu.etaxonomy.cdm.model.name.TaxonName;
22
import eu.etaxonomy.cdm.vaadin.model.registration.RegistrationWorkingSet;
23
import eu.etaxonomy.vaadin.mvp.ApplicationView;
24

    
25
/**
26
 * @author a.kohlbecker
27
 * @since Mar 3, 2017
28
 *
29
 */
30
public interface RegistrationWorkingsetView extends ApplicationView{
31

    
32
    public static final String ACTION_NEW = "new";
33

    
34
    public static final String ACTION_EDIT = "edit";
35

    
36
    /**
37
     * Open a popup editor for an existing TaxonName if the nameUuid is
38
     * given otherwise a blank editor will open if the  nameUuid is null.
39
     *
40
     * @param nameUuid can be null
41
     */
42
    void openNameEditor(UUID nameUuid);
43

    
44
    /**
45
     * Open a popup editor for an existing Reference if the referenceUuid is
46
     * given otherwise a blank editor will open if the  referenceUuid is null.
47
     *
48
     * @param referenceUuid can be null
49
     */
50
    void openReferenceEditor(UUID referenceUuid);
51

    
52
    /**
53
     * @param subheaderText
54
     */
55
    void setSubheaderText(String subheaderText);
56

    
57
    /**
58
     * @param subheaderText
59
     */
60
    void setHeaderText(String subheaderText);
61

    
62
    /**
63
     * @param workingset
64
     */
65
    void setWorkingset(RegistrationWorkingSet workingset);
66

    
67
    @Deprecated // no longer needed
68
    void addBlockingRegistration(RegistrationDTO blocking);
69

    
70
    /**
71
     * @param messages
72
     */
73
    void openDetailsPopup(String caption, List<String> messages);
74

    
75
    Button getAddNewNameRegistrationButton();
76

    
77
    /**
78
     * @return
79
     */
80
    Button getAddExistingNameRegistrationButton();
81

    
82
    public LazyComboBox<TaxonName> getAddExistingNameCombobox();
83

    
84
    /**
85
     * @return
86
     */
87
    UUID getCitationUuid();
88

    
89
    /**
90
     * selecting a type will cause a {@link TypeDesignationWorkingsetEditorAction} to be emitted.
91
     * On Cancel .. TODO
92
     * @param registrationEntityUuid
93
     */
94
    void chooseNewTypeRegistrationWorkingset(UUID registrationEntityUuid);
95

    
96
    /**
97
     * @param registrationId
98
     * @param blockingRegDTOs
99
     */
100
    void setBlockingRegistrations(UUID registrationUuid, Set<RegistrationDTO> blockingRegDTOs);
101

    
102
    /**
103
     * Returns the registrationItemMap as unmodifiableMap.
104
     *
105
     * @return
106
     */
107
    Map<UUID, RegistrationDetailsItem> getRegistrationItemMap();
108

    
109

    
110
}
(14-14/20)