Project

General

Profile

Download (926 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2019 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.featuretree.e4;
10

    
11
import java.util.List;
12

    
13
import eu.etaxonomy.cdm.api.service.ITermTreeService;
14
import eu.etaxonomy.cdm.model.term.TermTree;
15
import eu.etaxonomy.cdm.model.term.TermType;
16
import eu.etaxonomy.taxeditor.store.CdmStore;
17

    
18
/**
19
 * @author pplitzner
20
 * @since Aug 19, 2019
21
 *
22
 */
23
public class StructureTreeEditor extends AbstractTermTreeEditor {
24

    
25
    @Override
26
    protected List<TermTree> getTrees(){
27
        return CdmStore.getService(ITermTreeService.class).list(TermType.Structure, null, null, null, TREE_PROPERTY_PATH);
28
    }
29

    
30
    @Override
31
    public TermType getTermType() {
32
        return TermType.Structure;
33
    }
34

    
35
}
(9-9/9)