Project

General

Profile

Download (2.92 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.component.registration.RegistrationStatusFieldInstantiator;
23
import eu.etaxonomy.cdm.vaadin.model.registration.RegistrationWorkingSet;
24
import eu.etaxonomy.vaadin.mvp.ApplicationView;
25

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

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

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

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

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

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

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

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

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

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

    
76
    Button getAddNewNameRegistrationButton();
77

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

    
83
    public LazyComboBox<TaxonName> getAddExistingNameCombobox();
84

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

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

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

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

    
110
    void setStatusComponentInstantiator(RegistrationStatusFieldInstantiator statusComponentInstantiator);
111

    
112
}
(14-14/20)