Revision b6d3c69f
Added by Patrick Plitzner about 5 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IFeatureTreeService.java | ||
---|---|---|
5 | 5 |
* |
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 |
*/
|
|
8 |
*/ |
|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.cdm.api.service; |
11 | 11 |
|
... | ... | |
14 | 14 |
import java.util.Map; |
15 | 15 |
import java.util.UUID; |
16 | 16 |
|
17 |
import eu.etaxonomy.cdm.model.common.TermType; |
|
17 | 18 |
import eu.etaxonomy.cdm.model.description.FeatureNode; |
18 | 19 |
import eu.etaxonomy.cdm.model.description.FeatureTree; |
20 |
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache; |
|
19 | 21 |
|
20 | 22 |
public interface IFeatureTreeService extends IIdentifiableEntityService<FeatureTree> { |
21 |
|
|
23 |
|
|
22 | 24 |
public List<FeatureNode> getFeatureNodesAll(); |
23 |
|
|
25 |
|
|
24 | 26 |
/** |
25 |
* Loads a feature tree including all of its nodes (all the way down to the tips of the tree).
|
|
27 |
* Loads a feature tree including all of its nodes (all the way down to the tips of the tree). |
|
26 | 28 |
* Because this method automatically adds feature nodes recursively, adding "root" to property paths |
27 | 29 |
* is supurfluous - the propertyPaths argument should be used to initialize property paths <i>in addition</i> |
28 |
* to the feature nodes. The nodePaths argument is applied to each node in turn, so again, adding "children"
|
|
30 |
* to the feature nodes. The nodePaths argument is applied to each node in turn, so again, adding "children" |
|
29 | 31 |
* is also supurfluous. The nodePaths argument should be used to specify additional propertys of the featureNode |
30 | 32 |
* to initialize (e.g. feature). |
31 |
*
|
|
33 |
* |
|
32 | 34 |
*/ |
33 | 35 |
public FeatureTree loadWithNodes(UUID uuid, List<String> propertyPaths, List<String> nodePaths); |
34 | 36 |
|
35 | 37 |
public Map<UUID, FeatureNode> saveFeatureNodesAll(Collection<FeatureNode> featureNodeCollection); |
36 |
|
|
38 |
|
|
37 | 39 |
public Map<UUID, FeatureNode> saveOrUpdateFeatureNodesAll(Collection<FeatureNode> featureNodeCollection); |
38 |
|
|
40 |
|
|
39 | 41 |
public FeatureTree createTransientDefaultFeatureTree(); |
42 |
|
|
43 |
public <S extends FeatureTree> List<UuidAndTitleCache<S>> getUuidAndTitleCacheByTermType(Class<S> clazz, TermType termType, Integer limit, |
|
44 |
String pattern); |
|
40 | 45 |
} |
Also available in: Unified diff
ref #8146 Add service method for UuidAndTitleCache by termType for trees