\r
package eu.etaxonomy.cdm.api.service;\r
\r
-import java.util.Collection;\r
import java.util.List;\r
-import java.util.Map;\r
import java.util.UUID;\r
\r
+import eu.etaxonomy.cdm.api.service.pager.Pager;\r
+import eu.etaxonomy.cdm.model.description.IIdentificationKey;\r
import eu.etaxonomy.cdm.model.description.PolytomousKey;\r
-import eu.etaxonomy.cdm.model.description.PolytomousKeyNode;\r
+import eu.etaxonomy.cdm.model.taxon.TaxonBase;\r
\r
public interface IPolytomousKeyService extends IIdentifiableEntityService<PolytomousKey> {\r
\r
- public List<PolytomousKeyNode> getPolytomousKeyNodesAll();\r
- \r
/**\r
* Loads a polytomous key including all of its nodes (all the way down to the tips of the tree). \r
* Because this method automatically adds key nodes recursively, adding "root" to property paths\r
* \r
*/\r
public PolytomousKey loadWithNodes(UUID uuid, List<String> propertyPaths, List<String> nodePaths);\r
-\r
- public Map<UUID, PolytomousKeyNode> savePolytomousKeyNodesAll(Collection<PolytomousKeyNode> polytomousKeyNodeCollection);\r
\r
- public Map<UUID, PolytomousKeyNode> saveOrUpdatePolytomousKeyNodesAll(Collection<PolytomousKeyNode> polytomousKeyNodeCollection);\r
+ public Pager<PolytomousKey> findByTaxonomicScope(TaxonBase taxon, Integer pageSize,\r
+ Integer pageNumber, List<String> propertyPaths, List<String> nodePaths);\r
\r
}\r