Project

General

Profile

« Previous | Next » 

Revision 96c10a88

Added by Andreas Müller over 7 years ago

fix #5957 fix IndexOutOfBound exception and some other improvements for groupByHigherTaxon

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/taxon/ITaxonNodeDao.java
75 75
    long countTaxonNodeAgentRelations(UUID taxonUuid, UUID classificationUuid, UUID agentUuid, UUID rankUuid, UUID relTypeUuid);
76 76

  
77 77
    /**
78
     * @param treeIndexClosure
79
     * @param minRankOrderIndex
80
     * @param maxRankOrderIndex
78
     * Computes a map treeIndex->rank(sortIndex) for each given taxon node treeIndex. Required by #5957.
79
     * If the taxon represented by the treeindex is not in the given rank range no record is returned for the given
80
     * treeindex.
81
     *
82
     * @param treeIndex the list of treeIndexes
83
     * @param minRankOrderIndex min rank
84
     * @param maxRankOrderIndex max rank
81 85
     * @return
82 86
     */
83
    Map<String, Integer> rankOrderIndexForTreeIndex(List<String> treeIndexClosure, Integer minRankOrderIndex,
87
    Map<String, Integer> rankOrderIndexForTreeIndex(List<String> treeIndex, Integer minRankOrderIndex,
84 88
            Integer maxRankOrderIndex);
85 89

  
86 90
    /**
87
     * @param keySet
88
     * @return
91
     * For a given set of taxon node tree indexes the uuid and title cache of the taxon represented
92
     * by this treeindex is returned.
93
     * @param treeIndexSet set of taxon node tree indexes
94
     * @return map with treeindex and uuidAndTitleCache of the represented taxon
89 95
     */
90
    Map<String, UuidAndTitleCache<?>> taxonUuidsForTreeIndexes(Set<String> keySet);
96
    Map<String, UuidAndTitleCache<?>> taxonUuidsForTreeIndexes(Set<String> treeIndexSet);
91 97

  
92 98
}

Also available in: Unified diff