Revision d4992817
Added by Andreas Kohlbecker about 13 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IPolytomousKeyService.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.cdm.api.service; |
11 | 11 |
|
12 |
import java.util.Collection; |
|
13 | 12 |
import java.util.List; |
14 |
import java.util.Map; |
|
15 | 13 |
import java.util.UUID; |
16 | 14 |
|
17 | 15 |
import eu.etaxonomy.cdm.model.description.PolytomousKey; |
18 |
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode; |
|
19 | 16 |
|
20 | 17 |
public interface IPolytomousKeyService extends IIdentifiableEntityService<PolytomousKey> { |
21 | 18 |
|
22 |
public List<PolytomousKeyNode> getPolytomousKeyNodesAll(); |
|
23 |
|
|
24 | 19 |
/** |
25 | 20 |
* Loads a polytomous key including all of its nodes (all the way down to the tips of the tree). |
26 | 21 |
* Because this method automatically adds key nodes recursively, adding "root" to property paths |
... | ... | |
31 | 26 |
* |
32 | 27 |
*/ |
33 | 28 |
public PolytomousKey loadWithNodes(UUID uuid, List<String> propertyPaths, List<String> nodePaths); |
34 |
|
|
35 |
public Map<UUID, PolytomousKeyNode> savePolytomousKeyNodesAll(Collection<PolytomousKeyNode> polytomousKeyNodeCollection); |
|
36 |
|
|
37 |
public Map<UUID, PolytomousKeyNode> saveOrUpdatePolytomousKeyNodesAll(Collection<PolytomousKeyNode> polytomousKeyNodeCollection); |
|
38 | 29 |
|
39 | 30 |
} |
Also available in: Unified diff
splitting PolytomousKeyNodeService from PolytomousKeyService & more methods for IdentificationKeyService