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