2 * Copyright (C) 2019 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.taxeditor
.featuretree
.e4
;
11 import java
.util
.List
;
12 import java
.util
.stream
.Collectors
;
14 import eu
.etaxonomy
.cdm
.api
.service
.ITermTreeService
;
15 import eu
.etaxonomy
.cdm
.model
.term
.TermTree
;
16 import eu
.etaxonomy
.cdm
.model
.term
.TermType
;
17 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
24 public class FeatureTreeEditor
extends AbstractTermTreeEditor
{
27 protected List
<TermTree
> getTrees(){
28 List
<TermTree
> list
= CdmStore
.getService(ITermTreeService
.class).list(TermType
.Feature
, null, null, null, TREE_PROPERTY_PATH
);
29 return list
.stream().filter(tree
->tree
.getTermType().equals(TermType
.Feature
)).collect(Collectors
.toList());
33 public TermType
getTermType() {
34 return TermType
.Feature
;