1
|
/**
|
2
|
* Copyright (C) 2007 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.key;
|
10
|
|
11
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
12
|
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
|
13
|
import eu.etaxonomy.cdm.model.description.IIdentificationKey;
|
14
|
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
|
15
|
import eu.etaxonomy.taxeditor.editor.CdmEntitySessionInput;
|
16
|
|
17
|
/**
|
18
|
* @author n.hoffmann
|
19
|
*/
|
20
|
public abstract class AbstractIdentificationEditorInput<T extends IIdentificationKey>
|
21
|
extends CdmEntitySessionInput implements IConversationEnabled {
|
22
|
|
23
|
private final ConversationHolder conversation;
|
24
|
|
25
|
protected AbstractIdentificationEditorInput(ConversationHolder conversation) {
|
26
|
super(true);
|
27
|
this.conversation = conversation;
|
28
|
}
|
29
|
|
30
|
@Override
|
31
|
public ConversationHolder getConversationHolder() {
|
32
|
return conversation;
|
33
|
}
|
34
|
|
35
|
public abstract T getKey();
|
36
|
|
37
|
@Override
|
38
|
public void update(CdmDataChangeMap changeEvents) {
|
39
|
}
|
40
|
|
41
|
@Override
|
42
|
public boolean equals(Object obj) {
|
43
|
// TODO Auto-generated method stub
|
44
|
boolean result = super.equals(obj);
|
45
|
return result;
|
46
|
}
|
47
|
}
|