public interface IClassificationDao extends IIdentifiableDao<Classification>
Modifier and Type | Method and Description |
---|---|
ClassificationLookupDTO |
classificationLookup(Classification classification) |
java.lang.Long |
countChildrenOf(Taxon taxon,
Classification classification,
TaxonNode subtree,
boolean includeUnpublished) |
long[] |
countRankSpecificRootNodes(Classification classification,
TaxonNode subtree,
boolean includeUnpublished,
Rank rank) |
java.lang.Long |
countSiblingsOf(Taxon taxon,
Classification classification,
boolean includeUnpublished) |
java.util.Set<TreeIndex> |
getMarkedTreeIndexes(MarkerType markerType,
java.lang.Boolean value) |
TaxonNode |
getRootNode(java.util.UUID classificationUuid) |
java.util.Map<java.util.UUID,java.util.UUID> |
getTaxonNodeUuidByTaxonUuid(java.util.UUID classificationUuid,
java.util.List<java.util.UUID> taxonUuids)
Returns a map of taxon uuids mapping to taxon node uuids in the given classification
|
java.util.List<TaxonNode> |
listChildrenOf(Taxon taxon,
Classification classification,
TaxonNode subtree,
boolean includeUnpublished,
java.lang.Integer pageSize,
java.lang.Integer pageIndex,
java.util.List<java.lang.String> propertyPaths) |
java.util.List<TaxonNode> |
listRankSpecificRootNodes(Classification classification,
TaxonNode subtree,
Rank rank,
boolean includeUnpublished,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<java.lang.String> propertyPaths,
int queryIndex)
Lists all TaxonNodes of the specified tree for a given Rank.
|
java.util.List<TaxonNode> |
listSiblingsOf(Taxon taxon,
Classification classification,
boolean includeUnpublished,
java.lang.Integer pageSize,
java.lang.Integer pageIndex,
java.util.List<java.lang.String> propertyPaths) |
java.util.Map<java.util.UUID,TreeIndex> |
treeIndexForTaxonUuids(java.util.UUID classificationUuid,
java.util.List<java.util.UUID> originalTaxonUuids)
Returns the tree indexes for a given set of taxon uuids as a map.
|
countByIdentifier, countByMarker, countByReferenceTitle, countByReferenceTitleWithRestrictions, countByTitle, countByTitleWithRestrictions, countRights, countSources, countTitleCache, find, findByIdentifier, findByMarker, findByReferenceTitle, findByReferenceTitleWithRestrictions, findByTitle, findByTitleWithRestrictions, findOriginalSourceByIdInSource, findTitleCache, getRights, getSources, getTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, getUuidAndTitleCacheByMarker
countAnnotations, countMarkers, countMarkers, getAnnotations, getMarkers, groupMarkers
countAuditEvents, countAuditEvents, getAuditEvents, getAuditEvents, getNextAuditEvent, getPreviousAuditEvent
clear, count, count, count, count, countByParam, countByParamWithRestrictions, delete, exists, findById, findByParam, findByParam, findByParamWithRestrictions, findByUuid, findByUuidWithoutFlush, flush, getSession, getType, group, list, list, list, list, list, list, list, list, list, load, load, load, loadList, lock, merge, merge, refresh, refresh, replace, save, saveAll, saveOrUpdate, saveOrUpdateAll, update
countByTitle, countByTitle, countByTitle, findByTitle, findByTitle, findByTitle
count, optimizeIndex, purgeIndex, rebuildIndex, search, suggestQuery
java.util.List<TaxonNode> listRankSpecificRootNodes(Classification classification, TaxonNode subtree, Rank rank, boolean includeUnpublished, java.lang.Integer limit, java.lang.Integer start, java.util.List<java.lang.String> propertyPaths, int queryIndex)
Lists all TaxonNodes of the specified tree for a given Rank. If a branch
does not contain a TaxonNode with a TaxonName at the given Rank the node
associated with the next lower Rank is taken as root node. If the
rank
is null the absolute root nodes will be returned.
See http://dev.e-taxonomy.eu/trac/wiki/CdmClassificationRankSpecificRootnodes
Since this method is using two queries which need to be run sequentially the handling of limit and start is more complex and requires the total count of the items matched by the first query is known. Therefore the handling of limit and start must be managed in the service method that is using this dao method.
classification
- rank
- may be nulllimit
- The maximum number of objects returned (can be null for all
matching objects)start
- The offset from the start of the result set (0 - based, can be
null - equivalent of starting at the beginning of the
recordset)propertyPaths
- queryIndex
- 0: execute first query, 1: excute second query, the second
query is only available when parameter
rank != null
.long[] countRankSpecificRootNodes(Classification classification, TaxonNode subtree, boolean includeUnpublished, Rank rank)
java.util.List<TaxonNode> listChildrenOf(Taxon taxon, Classification classification, TaxonNode subtree, boolean includeUnpublished, java.lang.Integer pageSize, java.lang.Integer pageIndex, java.util.List<java.lang.String> propertyPaths)
java.lang.Long countChildrenOf(Taxon taxon, Classification classification, TaxonNode subtree, boolean includeUnpublished)
TaxonNode getRootNode(java.util.UUID classificationUuid)
ClassificationLookupDTO classificationLookup(Classification classification)
java.util.List<TaxonNode> listSiblingsOf(Taxon taxon, Classification classification, boolean includeUnpublished, java.lang.Integer pageSize, java.lang.Integer pageIndex, java.util.List<java.lang.String> propertyPaths)
java.lang.Long countSiblingsOf(Taxon taxon, Classification classification, boolean includeUnpublished)
java.util.Map<java.util.UUID,TreeIndex> treeIndexForTaxonUuids(java.util.UUID classificationUuid, java.util.List<java.util.UUID> originalTaxonUuids)
classificationUuid
- originalTaxonUuids
- java.util.Set<TreeIndex> getMarkedTreeIndexes(MarkerType markerType, java.lang.Boolean value)
java.util.Map<java.util.UUID,java.util.UUID> getTaxonNodeUuidByTaxonUuid(java.util.UUID classificationUuid, java.util.List<java.util.UUID> taxonUuids)
Copyright © 2007-2020 EDIT. All Rights Reserved.