Revision dd3f7f9d
Added by Andreas Kohlbecker over 5 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/event/TypeDesignationWorkingsetEditorAction.java | ||
---|---|---|
38 | 38 |
private TypedEntityReference<IdentifiableEntity<?>> baseEntityRef; |
39 | 39 |
|
40 | 40 |
/** |
41 |
* Constructor for {@link EditorActionType#EDIT EDIT} actions |
|
41 | 42 |
* |
42 |
* @param action |
|
43 | 43 |
* @param baseEntityRef |
44 | 44 |
* @param workingSetType |
45 | 45 |
* @param registrationId |
46 | 46 |
* @param source |
47 | 47 |
* @param sourceView |
48 | 48 |
*/ |
49 |
public TypeDesignationWorkingsetEditorAction(EditorActionType action, TypedEntityReference<IdentifiableEntity<?>> baseEntityRef,
|
|
49 |
public TypeDesignationWorkingsetEditorAction(TypedEntityReference<IdentifiableEntity<?>> baseEntityRef, |
|
50 | 50 |
TypeDesignationWorkingSetType workingSetType, |
51 | 51 |
UUID registrationUuid, UUID typifiedNameUuid, |
52 | 52 |
Button source, Field<TypeDesignationWorkingSet> target, AbstractView sourceView, Stack<EditorActionContext> context) { |
53 |
super(action, null, source, target, sourceView);
|
|
53 |
super(EditorActionType.EDIT, null, source, target, sourceView);
|
|
54 | 54 |
this.baseEntityRef = baseEntityRef; |
55 | 55 |
this.registrationUuid = registrationUuid; |
56 | 56 |
this.typifiedNameUuid = typifiedNameUuid; |
... | ... | |
60 | 60 |
} |
61 | 61 |
|
62 | 62 |
/** |
63 |
* Constructor for {@link EditorActionType#ADD ADD} actions |
|
63 | 64 |
* |
64 |
* @param action |
|
65 | 65 |
* @param workingSetType |
66 | 66 |
* @param registrationUuid |
67 | 67 |
* @param source |
68 | 68 |
* @param sourceView |
69 | 69 |
*/ |
70 |
public TypeDesignationWorkingsetEditorAction(EditorActionType action, TypeDesignationWorkingSetType workingSetType,
|
|
70 |
public TypeDesignationWorkingsetEditorAction(TypeDesignationWorkingSetType workingSetType, |
|
71 | 71 |
UUID registrationUuid, UUID typifiedNameUuid, |
72 | 72 |
Button source, Field<TypeDesignationWorkingSet> target, AbstractView sourceView) { |
73 |
super(action, null, source, target, sourceView);
|
|
73 |
super(EditorActionType.ADD, null, source, target, sourceView);
|
|
74 | 74 |
this.workingSetType = workingSetType; |
75 | 75 |
this.registrationUuid = registrationUuid; |
76 | 76 |
this.typifiedNameUuid = typifiedNameUuid; |
Also available in: Unified diff
ref #7622 persisting new registrations only when typeDesignations have been added