2 * Copyright (C) 2009 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.
10 package eu
.etaxonomy
.cdm
.api
.service
;
12 import java
.util
.Collection
;
13 import java
.util
.List
;
15 import java
.util
.UUID
;
17 import eu
.etaxonomy
.cdm
.model
.term
.TermNode
;
18 import eu
.etaxonomy
.cdm
.model
.term
.TermTree
;
19 import eu
.etaxonomy
.cdm
.model
.term
.TermType
;
20 import eu
.etaxonomy
.cdm
.persistence
.dto
.UuidAndTitleCache
;
23 * @deprecated use {@link ITermTreeService} instead
26 public interface IFeatureTreeService
extends IIdentifiableEntityService
<TermTree
> {
29 * @deprecated use {@link ITermTreeService#list(Class, Integer, Integer, List, List)} instead
32 public List
<TermNode
> getFeatureNodesAll();
35 * Loads a feature tree including all of its nodes (all the way down to the tips of the tree).
36 * Because this method automatically adds feature nodes recursively, adding "root" to property paths
37 * is supurfluous - the propertyPaths argument should be used to initialize property paths <i>in addition</i>
38 * to the feature nodes. The nodePaths argument is applied to each node in turn, so again, adding "children"
39 * is also supurfluous. The nodePaths argument should be used to specify additional propertys of the featureNode
40 * to initialize (e.g. feature).
43 public TermTree
loadWithNodes(UUID uuid
, List
<String
> propertyPaths
, List
<String
> nodePaths
);
45 public Map
<UUID
, TermNode
> saveFeatureNodesAll(Collection
<TermNode
> featureNodeCollection
);
47 public Map
<UUID
, TermNode
> saveOrUpdateFeatureNodesAll(Collection
<TermNode
> featureNodeCollection
);
49 public TermTree
createTransientDefaultFeatureTree();
51 public <S
extends TermTree
> List
<UuidAndTitleCache
<S
>> getUuidAndTitleCacheByTermType(Class
<S
> clazz
, TermType termType
, Integer limit
,