Revision 49d3c2dd
Added by Katja Luther over 1 year ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/ChecklistEditorInput.java | ||
---|---|---|
42 | 42 |
|
43 | 43 |
private Classification classification = null; |
44 | 44 |
|
45 |
private final ConversationHolder conversation; |
|
46 |
|
|
47 | 45 |
private List<TaxonBase> taxaToSave = new ArrayList<>(); |
48 | 46 |
|
49 | 47 |
|
... | ... | |
54 | 52 |
*/ |
55 | 53 |
public ChecklistEditorInput(TaxonNode taxonNode){ |
56 | 54 |
super(false); |
57 |
this.conversation = CdmStore.createConversation(); |
|
58 | 55 |
initSession(); |
59 | 56 |
this.taxonNode =CdmStore.getService(ITaxonNodeService.class).load(taxonNode.getUuid(), getTaxonNodePropertyPaths()); |
60 | 57 |
getChildTaxa(taxonNode); |
... | ... | |
79 | 76 |
*/ |
80 | 77 |
public ChecklistEditorInput(Classification classification) { |
81 | 78 |
super(true); |
82 |
this.conversation = CdmStore.createConversation(); |
|
83 | 79 |
initSession(); |
84 | 80 |
this.classification = CdmStore.getCurrentApplicationConfiguration().getClassificationService().load(classification.getUuid()); |
85 | 81 |
getChildTaxa(classification.getRootNode()); |
... | ... | |
106 | 102 |
return classification; |
107 | 103 |
} |
108 | 104 |
|
109 |
// public ConversationHolder getConversationHolder() { |
|
110 |
// return conversationHolder; |
|
111 |
// } |
|
112 |
|
|
113 |
// @Override |
|
114 |
// public int hashCode() { |
|
115 |
// final int prime = 31; |
|
116 |
// int result = 1; |
|
117 |
// result = prime * result + ((classification == null) ? 0 : classification.hashCode()); |
|
118 |
// result = prime * result + ((taxonNode == null) ? 0 : taxonNode.hashCode()); |
|
119 |
// return result; |
|
120 |
// } |
|
121 |
|
|
122 | 105 |
@Override |
123 | 106 |
public boolean equals(Object obj) { |
124 | 107 |
if (this == obj) { |
... | ... | |
167 | 150 |
} |
168 | 151 |
|
169 | 152 |
public ConversationHolder getConversation() { |
170 |
return conversation;
|
|
153 |
return null;
|
|
171 | 154 |
} |
172 | 155 |
|
173 | 156 |
private List<String> getTaxonNodePropertyPaths() { |
Also available in: Unified diff
ref #10186: remove conversation holder