ref #6925 Set conversation and cdmEntitySession to null for dispose
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / view / derivate / DerivateViewEditorInput.java
1 /**
2 * Copyright (C) 2013 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.taxeditor.editor.view.derivate;
10
11 import java.util.Collection;
12 import java.util.Collections;
13 import java.util.UUID;
14
15 import eu.etaxonomy.taxeditor.editor.l10n.Messages;
16
17 /**
18 * Editor input for the {@link DerivateView}
19 *
20 * @author pplitzner
21 * @date Nov 11, 2015
22 *
23 */
24 public class DerivateViewEditorInput {
25
26 private Collection<UUID> derivativeUuids;
27 private UUID taxonUuid;
28
29 public DerivateViewEditorInput() {
30 }
31
32 public DerivateViewEditorInput(UUID derivativeUuid, UUID taxonUuid) {
33 this(Collections.singleton(derivativeUuid), taxonUuid);
34 }
35
36 public DerivateViewEditorInput(Collection<UUID> derivativeUuids, UUID taxonUuid) {
37 this.derivativeUuids = derivativeUuids;
38 this.taxonUuid = taxonUuid;
39 }
40
41 public DerivateViewEditorInput(UUID derivativeUuid) {
42 this(derivativeUuid, null);
43 }
44
45 public DerivateViewEditorInput(Collection<UUID> derivativeUuids) {
46 this(derivativeUuids, null);
47 }
48
49 public Collection<UUID> getDerivativeUuids() {
50 return derivativeUuids;
51 }
52
53 public UUID getTaxonUuid() {
54 return taxonUuid;
55 }
56
57 private String getEditorName() {
58 return Messages.DerivateViewEditorInput_SPECIMEN_EDITOR;
59 }
60
61 }