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.UUID;
|
13
|
|
14
|
import com.vaadin.ui.CssLayout;
|
15
|
|
16
|
import eu.etaxonomy.cdm.vaadin.model.registration.RegistrationWorkingSet;
|
17
|
import eu.etaxonomy.cdm.vaadin.view.registration.RegistrationWorkflowViewBean.ViewParameters;
|
18
|
import eu.etaxonomy.vaadin.mvp.ApplicationView;
|
19
|
|
20
|
/**
|
21
|
* @author a.kohlbecker
|
22
|
* @since Mar 3, 2017
|
23
|
*
|
24
|
*/
|
25
|
public interface RegistrationWorkflowView extends ApplicationView{
|
26
|
|
27
|
public static final String ACTION_NEW = "new";
|
28
|
|
29
|
public static final String ACTION_EDIT = "edit";
|
30
|
|
31
|
|
32
|
CssLayout getWorkflow();
|
33
|
|
34
|
|
35
|
/**
|
36
|
* Open a popup editor for an existing TaxonName if the nameUuid is
|
37
|
* given otherwise a blank editor will open if the nameUuid is null.
|
38
|
*
|
39
|
* @param nameUuid can be null
|
40
|
*/
|
41
|
void openNameEditor(UUID nameUuid);
|
42
|
|
43
|
/**
|
44
|
* Open a popup editor for an existing Reference if the referenceUuid is
|
45
|
* given otherwise a blank editor will open if the referenceUuid is null.
|
46
|
*
|
47
|
* @param referenceUuid can be null
|
48
|
*/
|
49
|
void openReferenceEditor(UUID referenceUuid);
|
50
|
|
51
|
/**
|
52
|
* @param subheaderText
|
53
|
*/
|
54
|
void setSubheaderText(String subheaderText);
|
55
|
|
56
|
/**
|
57
|
* @param subheaderText
|
58
|
*/
|
59
|
void setHeaderText(String subheaderText);
|
60
|
|
61
|
/**
|
62
|
* @param workingset
|
63
|
*/
|
64
|
void setWorkingset(RegistrationWorkingSet workingset);
|
65
|
|
66
|
void addBlockingRegistration(RegistrationDTO blocking);
|
67
|
|
68
|
/**
|
69
|
* @param messages
|
70
|
*/
|
71
|
void openDetailsPopup(String caption, List<String> messages);
|
72
|
|
73
|
|
74
|
ViewParameters getViewParameters();
|
75
|
|
76
|
|
77
|
|
78
|
}
|