2 * Copyright (C) 2007 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
.persistence
.dao
.taxon
;
12 import java
.util
.List
;
15 import java
.util
.UUID
;
17 import eu
.etaxonomy
.cdm
.model
.taxon
.Classification
;
18 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonNode
;
19 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonNodeAgentRelation
;
20 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.IAnnotatableDao
;
21 import eu
.etaxonomy
.cdm
.persistence
.dto
.UuidAndTitleCache
;
27 public interface ITaxonNodeDao
extends IAnnotatableDao
<TaxonNode
> {
29 public UUID
delete(TaxonNode persistentObject
, boolean deleteChildren
);
35 public List
<TaxonNode
> getTaxonOfAcceptedTaxaByClassification(Classification classification
, Integer start
, Integer end
);
38 * @param classification
41 public int countTaxonOfAcceptedTaxaByClassification(Classification classification
);
43 public List
<TaxonNode
> listChildrenOf(TaxonNode node
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
, boolean recursive
);
45 public abstract Long
countChildrenOf(TaxonNode node
, Classification classification
, boolean recursive
);
48 * Returns the of TaxonNodeAgentRelation entities which are associated with the TaxonNode for the
49 * given TaxonUuid in the specified Classification.
52 * @param agentUuid TODO
53 * @param relTypeUuid TODO
56 * @param propertyPaths
58 * @param classification
61 List
<TaxonNodeAgentRelation
> listTaxonNodeAgentRelations(UUID taxonUuid
, UUID classificationUuid
,
62 UUID agentUuid
, UUID rankUuid
, UUID relTypeUuid
, Integer start
, Integer limit
, List
<String
> propertyPaths
);
65 * Returns the number of TaxonNodeAgentRelation entities which are associated with the TaxonNode for the
66 * given TaxonUuid in the specified Classification.
69 * @param agentUuid TODO
70 * @param relTypeUuid TODO
72 * @param classification
75 long countTaxonNodeAgentRelations(UUID taxonUuid
, UUID classificationUuid
, UUID agentUuid
, UUID rankUuid
, UUID relTypeUuid
);
78 * @param treeIndexClosure
79 * @param minRankOrderIndex
80 * @param maxRankOrderIndex
83 Map
<String
, Integer
> rankOrderIndexForTreeIndex(List
<String
> treeIndexClosure
, Integer minRankOrderIndex
,
84 Integer maxRankOrderIndex
);
90 Map
<String
, UuidAndTitleCache
<?
>> taxonUuidsForTreeIndexes(Set
<String
> keySet
);