Revision b3e242fe
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/event/registration/RegistrationWorkflowEvent.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.cdm.vaadin.event.registration; |
10 | 10 |
|
11 |
import eu.etaxonomy.cdm.vaadin.view.registration.RegistrationType; |
|
12 |
|
|
13 | 11 |
/** |
14 | 12 |
* @author a.kohlbecker |
15 | 13 |
* @since Mar 3, 2017 |
... | ... | |
17 | 15 |
*/ |
18 | 16 |
public class RegistrationWorkflowEvent { |
19 | 17 |
|
20 |
private RegistrationType type = null; |
|
21 | 18 |
private Action action; |
22 | 19 |
private Integer citationID = null; |
23 | 20 |
|
... | ... | |
26 | 23 |
* @param citationID the id of a {@link Reference} denoting a |
27 | 24 |
* complete registration working set. |
28 | 25 |
*/ |
29 |
public RegistrationWorkflowEvent(int citationID){ |
|
30 |
this.action = Action.open;
|
|
26 |
public RegistrationWorkflowEvent(int citationID, Action action){
|
|
27 |
this.action = action;
|
|
31 | 28 |
this.citationID = citationID; |
32 | 29 |
} |
33 | 30 |
|
34 |
public RegistrationWorkflowEvent(RegistrationType type){ |
|
35 |
this.type = type; |
|
36 |
this.action = Action.start; |
|
37 |
} |
|
38 |
|
|
39 |
/** |
|
40 |
* @return the type |
|
41 |
*/ |
|
42 |
public RegistrationType getType() { |
|
43 |
return type; |
|
44 |
} |
|
45 |
|
|
46 | 31 |
/** |
47 | 32 |
* @return the action |
48 | 33 |
*/ |
... | ... | |
62 | 47 |
} |
63 | 48 |
|
64 | 49 |
|
65 |
enum Action { |
|
50 |
public enum Action {
|
|
66 | 51 |
start, open; |
67 | 52 |
} |
68 | 53 |
|
Also available in: Unified diff
fix #6810 View for starting new registrations implemented