Project

General

Profile

Download (1.52 KB) Statistics
| Branch: | Tag: | Revision:
1 6268cff8 Patrick Plitzner
/**
2
* Copyright (C) 2018 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 5fec480a Katja Luther
package eu.etaxonomy.taxeditor.termtree.e4;
10 6268cff8 Patrick Plitzner
11 2e1c204d Katja Luther
import java.util.UUID;
12
13 edc4e5ae Katja Luther
import org.eclipse.jface.viewers.TreeViewer;
14
15 2e1c204d Katja Luther
import eu.etaxonomy.cdm.model.term.DefinedTermBase;
16
import eu.etaxonomy.cdm.model.term.TermNode;
17 422fbab5 Patrick Plitzner
import eu.etaxonomy.cdm.model.term.TermType;
18 2e1c204d Katja Luther
import eu.etaxonomy.cdm.persistence.dto.TermNodeDto;
19 e4a5c66f Katja Luther
import eu.etaxonomy.cdm.persistence.dto.TermTreeDto;
20 2e1c204d Katja Luther
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
21 6268cff8 Patrick Plitzner
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
22
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
23
import eu.etaxonomy.taxeditor.workbench.part.IE4SavablePart;
24
25
/**
26
 * @author pplitzner
27
 * @since Nov 22, 2018
28
 */
29 ad7201d3 Andreas Müller
public interface ITermTreeEditor<T extends DefinedTermBase> 
30
		extends IPostOperationEnabled, IE4SavablePart, ICdmEntitySessionEnabled {
31 6268cff8 Patrick Plitzner
32 422fbab5 Patrick Plitzner
    public TermType getTermType();
33
34 edc4e5ae Katja Luther
    public TermNodeDto getNodeDtoForUuid(UUID nodeUuid);
35 e4a5c66f Katja Luther
    public TermTreeDto getTreeDtoForUuid(UUID treeUuid);
36 21015b47 Katja Luther
    public void setNodeDtoForUuid(TermNodeDto node);
37
    public void setTreeDtoForUuid(TermTreeDto tree);
38 e4a5c66f Katja Luther
    public boolean checkDuplicates(UUID termUuid, UUID treeUuid) ;
39
40 2e1c204d Katja Luther
41
    public void addOperation(AbstractPostOperation<TermNode> operation);
42
43
    public void setDirty();
44
45 edc4e5ae Katja Luther
    public TreeViewer getViewer();
46 41963d8b Katja Luther
    public void refresh();
47 ad7201d3 Andreas Müller
}