public interface ITaxonNodeService extends IAnnotatableService<TaxonNode>
Modifier and Type | Method and Description |
---|---|
UpdateResult |
addTaxonNodeAgentRelation(java.util.UUID taxonNodeUUID,
java.util.UUID agentUUID,
DefinedTerm relationshipType) |
long |
count(TaxonNodeFilter filter)
Returns a list of taxon node
uuids according to the given filter. |
int |
countAllNodesForClassification(Classification classification)
Counts all TaxonNodes for a given Classification
|
UpdateResult |
createNewTaxonNode(java.util.UUID parentNodeUuid,
Taxon newTaxon,
Reference ref,
java.lang.String microref) |
UpdateResult |
createNewTaxonNode(java.util.UUID parentNodeUuid,
java.util.UUID taxonUuid,
Reference ref,
java.lang.String microref) |
DeleteResult |
deleteTaxonNode(TaxonNode node,
TaxonDeletionConfigurator config)
deletes the given taxon node the configurator defines whether the children will be deleted too or not
|
DeleteResult |
deleteTaxonNode(java.util.UUID nodeUuid,
TaxonDeletionConfigurator config) |
DeleteResult |
deleteTaxonNodes(java.util.Collection<java.util.UUID> nodeUuids,
TaxonDeletionConfigurator config) |
DeleteResult |
deleteTaxonNodes(java.util.List<TaxonNode> list,
TaxonDeletionConfigurator config)
deletes the given taxon nodes
|
TaxonNodeDto |
dto(java.util.UUID taxonNodeUuid) |
TaxonNodeDto |
findCommonParentDto(java.util.Collection<TaxonNodeDto> nodes)
Retrieves the first taxon node that is direct or indirect parent
to all nodes of the given list of nodes.
|
TaxonNodeDto |
getParentUuidAndTitleCache(ITaxonTreeNode child)
Retrieves the parent node of the child
TaxonNode |
TaxonNodeDto |
getParentUuidAndTitleCache(TaxonNodeDto child)
Retrieves the parent node of the
TaxonNode represented by the given UuidAndTitleCache . |
java.util.List<TaxonDistributionDTO> |
getTaxonDistributionDTO(java.util.List<java.util.UUID> nodeUuids,
java.util.List<java.lang.String> propertyPaths,
org.springframework.security.core.Authentication authentication,
boolean openChildren) |
java.util.List<TaxonDistributionDTO> |
getTaxonDistributionDTO(java.util.List<java.util.UUID> nodeUuids,
java.util.List<java.lang.String> propertyPaths,
boolean openChildren) |
java.util.List<TaxonNodeDto> |
getUuidAndTitleCache(java.lang.Integer limit,
java.lang.String pattern,
java.util.UUID classificationUuid)
Retrieves a list of
UuidAndTitleCache objects that have a matchin titleCache |
java.util.List<java.lang.Integer> |
idList(TaxonNodeFilter filter)
Returns a list of taxon node IDs according to the given filter.
|
java.util.List<TaxonNode> |
listAllNodesForClassification(Classification classification,
java.lang.Integer start,
java.lang.Integer end) |
java.util.List<TaxonNodeDto> |
listChildNodesAsTaxonNodeDto(ITaxonTreeNode parent) |
java.util.List<TaxonNodeDto> |
listChildNodesAsTaxonNodeDto(TaxonNodeDto parent) |
java.util.List<TaxonNode> |
listChildrenOf(TaxonNode node,
java.lang.Integer pageSize,
java.lang.Integer pageIndex,
boolean recursive,
boolean includeUnpublished,
java.util.List<java.lang.String> propertyPaths)
Lists all direct child nodes of the given
UuidAndTitleCache which
represents the parent TaxonNode |
java.util.List<TaxonNode> |
loadChildNodesOfTaxonNode(TaxonNode taxonNode,
java.util.List<java.lang.String> propertyPaths,
boolean recursive,
boolean includeUnpublished,
NodeSortMode sortMode)
returns the childnodes of the taxonNode, if recursive is true it returns all descendants, if sort is true the nodes are sorted
|
DeleteResult |
makeTaxonNodeASynonymOfAnotherTaxonNode(TaxonNode oldTaxonNode,
TaxonNode newAcceptedTaxonNode,
SynonymType synonymType,
Reference citation,
java.lang.String citationMicroReference,
boolean setNameInSource)
Changes the taxon associated with the given taxon node into a synonym of the new accepted taxon node.
|
UpdateResult |
makeTaxonNodeASynonymOfAnotherTaxonNode(java.util.UUID oldTaxonNodeUuid,
java.util.UUID newAcceptedTaxonNodeUUID,
SynonymType synonymType,
Reference citation,
java.lang.String citationMicroReference,
boolean setNameInSource) |
UpdateResult |
makeTaxonNodeSynonymsOfAnotherTaxonNode(java.util.Set<java.util.UUID> oldTaxonNodeUuids,
java.util.UUID newAcceptedTaxonNodeUUIDs,
SynonymType synonymType,
Reference citation,
java.lang.String citationMicroReference,
boolean setNameInSource)
Changes the taxa associated with the given taxon nodes into synonyms of the new accepted taxon node.
|
UpdateResult |
moveTaxonNode(TaxonNode taxonNode,
TaxonNode newParent,
int movingType) |
UpdateResult |
moveTaxonNode(java.util.UUID taxonNodeUuid,
java.util.UUID newParentTaxonNodeUuid,
int movingType) |
UpdateResult |
moveTaxonNodes(java.util.Set<java.util.UUID> taxonNodeUuids,
java.util.UUID newParentNodeUuid,
int movingType,
IProgressMonitor monitor) |
<S extends TaxonNode> |
page(java.lang.Class<S> clazz,
java.util.List<Restriction<?>> restrictions,
java.lang.Integer pageSize,
java.lang.Integer pageIndex,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths,
boolean includeUnpublished) |
Pager<TaxonNodeDto> |
pageChildNodesDTOs(java.util.UUID taxonNodeUuid,
boolean recursive,
boolean includeUnpublished,
boolean doSynonyms,
NodeSortMode sortMode,
java.lang.Integer pageSize,
java.lang.Integer pageIndex)
Returns the childnodes of the taxonNode, if recursive is true it returns all descendants, if sort is true the nodes are sorted
|
Pager<TaxonNodeAgentRelation> |
pageTaxonNodeAgentRelations(java.util.UUID taxonUuid,
java.util.UUID classificationUuid,
java.util.UUID agentUuid,
java.util.UUID rankUuid,
java.util.UUID relTypeUuid,
java.lang.Integer pageSize,
java.lang.Integer pageIndex,
java.util.List<java.lang.String> propertyPaths)
Returns the of TaxonNodeAgentRelation entities which are associated with the TaxonNode for the
given TaxonUuid in the specified Classification.
|
TaxonNodeDto |
parentDto(java.util.UUID taxonNodeUuid) |
UpdateResult |
saveNewTaxonNode(TaxonNode newTaxonNode) |
UpdateResult |
setPublishForSubtree(PublishForSubtreeConfigurator configurator)
Sets the publish flag for all taxa and/or synonyms of the subtree.
|
UpdateResult |
setSecundumForSubtree(SecundumForSubtreeConfigurator config)
Sets the secundum reference for all taxa of the given subtree.
|
java.util.List<TaxonNodeDto> |
taxonNodeDtoParentRank(Classification classification,
Rank rank,
TaxonBase<?> taxonBase) |
java.util.List<TaxonNodeDto> |
taxonNodeDtoParentRank(Classification classification,
Rank rank,
TaxonName name) |
java.util.List<java.util.UUID> |
uuidList(TaxonNodeFilter filter)
Returns a list of taxon node
uuids according to the given filter. |
countMarkers, getAnnotations, getMarkers, groupMarkers
getNextAuditEvent, getPreviousAuditEvent, isDeletable, pageAuditEvents, pageAuditEvents
clear, count, delete, delete, delete, exists, find, find, find, find, findById, findWithoutFlush, getSession, group, list, list, load, load, load, load, loadByIds, loadByIds, loadWithUpdate, lock, merge, merge, merge, merge, page, page, page, pageByParamWithRestrictions, refresh, refresh, save, save, saveOrUpdate, saveOrUpdate, update
java.util.List<TaxonNode> loadChildNodesOfTaxonNode(TaxonNode taxonNode, java.util.List<java.lang.String> propertyPaths, boolean recursive, boolean includeUnpublished, NodeSortMode sortMode)
taxonNode
- propertyPaths
- recursive
- java.util.List<TaxonNode> listChildrenOf(TaxonNode node, java.lang.Integer pageSize, java.lang.Integer pageIndex, boolean recursive, boolean includeUnpublished, java.util.List<java.lang.String> propertyPaths)
UuidAndTitleCache
which
represents the parent TaxonNode
parent
- a UuidAndTitleCache object which represents a parent TaxonNode
java.util.List<TaxonNodeDto> getUuidAndTitleCache(java.lang.Integer limit, java.lang.String pattern, java.util.UUID classificationUuid)
UuidAndTitleCache
objects that have a matchin titleCachelimit
- the maximum resultspattern
- the titleCache that is searched forclassificationUuid
- if specified only nodes of this classification are retrievedTaxonNodeDto getParentUuidAndTitleCache(ITaxonTreeNode child)
TaxonNode
child
- the child for which the parent should be retrievedTaxonNodeDto getParentUuidAndTitleCache(TaxonNodeDto child)
TaxonNode
represented by the given UuidAndTitleCache
.child
- the child for which the parent should be retrievedPager<TaxonNodeDto> pageChildNodesDTOs(java.util.UUID taxonNodeUuid, boolean recursive, boolean includeUnpublished, boolean doSynonyms, NodeSortMode sortMode, java.lang.Integer pageSize, java.lang.Integer pageIndex)
taxonNode
- recursive
- doSynonyms
- if true also synonyms are returned as childrensortMode
- pageSize
- pageIndex
- TaxonNodeDto parentDto(java.util.UUID taxonNodeUuid)
DeleteResult makeTaxonNodeASynonymOfAnotherTaxonNode(TaxonNode oldTaxonNode, TaxonNode newAcceptedTaxonNode, SynonymType synonymType, Reference citation, java.lang.String citationMicroReference, boolean setNameInSource)
UpdateResult makeTaxonNodeSynonymsOfAnotherTaxonNode(java.util.Set<java.util.UUID> oldTaxonNodeUuids, java.util.UUID newAcceptedTaxonNodeUUIDs, SynonymType synonymType, Reference citation, java.lang.String citationMicroReference, boolean setNameInSource)
UpdateResult makeTaxonNodeASynonymOfAnotherTaxonNode(java.util.UUID oldTaxonNodeUuid, java.util.UUID newAcceptedTaxonNodeUUID, SynonymType synonymType, Reference citation, java.lang.String citationMicroReference, boolean setNameInSource)
DeleteResult deleteTaxonNodes(java.util.Collection<java.util.UUID> nodeUuids, TaxonDeletionConfigurator config)
DeleteResult deleteTaxonNode(TaxonNode node, TaxonDeletionConfigurator config)
DeleteResult deleteTaxonNode(java.util.UUID nodeUuid, TaxonDeletionConfigurator config)
nodeUuid
- config
- java.util.List<TaxonNode> listAllNodesForClassification(Classification classification, java.lang.Integer start, java.lang.Integer end)
int countAllNodesForClassification(Classification classification)
classification
- - according to the given classification the TaxonNodes are filtered.UpdateResult moveTaxonNode(java.util.UUID taxonNodeUuid, java.util.UUID newParentTaxonNodeUuid, int movingType)
UpdateResult moveTaxonNode(TaxonNode taxonNode, TaxonNode newParent, int movingType)
UpdateResult moveTaxonNodes(java.util.Set<java.util.UUID> taxonNodeUuids, java.util.UUID newParentNodeUuid, int movingType, IProgressMonitor monitor)
DeleteResult deleteTaxonNodes(java.util.List<TaxonNode> list, TaxonDeletionConfigurator config)
Pager<TaxonNodeAgentRelation> pageTaxonNodeAgentRelations(java.util.UUID taxonUuid, java.util.UUID classificationUuid, java.util.UUID agentUuid, java.util.UUID rankUuid, java.util.UUID relTypeUuid, java.lang.Integer pageSize, java.lang.Integer pageIndex, java.util.List<java.lang.String> propertyPaths)
taxonUuid
- agentUuid
- TODOrankUuid
- TODOrelTypeUuid
- TODOclassification
- UpdateResult createNewTaxonNode(java.util.UUID parentNodeUuid, Taxon newTaxon, Reference ref, java.lang.String microref)
UpdateResult addTaxonNodeAgentRelation(java.util.UUID taxonNodeUUID, java.util.UUID agentUUID, DefinedTerm relationshipType)
UpdateResult createNewTaxonNode(java.util.UUID parentNodeUuid, java.util.UUID taxonUuid, Reference ref, java.lang.String microref)
parentNodeUuid
- taxonUuid
- ref
- microref
- UpdateResult setSecundumForSubtree(SecundumForSubtreeConfigurator config)
SetSecundumForSubtreeConfigurator
for further configuration
options.UpdateResult setPublishForSubtree(PublishForSubtreeConfigurator configurator)
long count(TaxonNodeFilter filter)
uuids
according to the given filter.java.util.List<java.util.UUID> uuidList(TaxonNodeFilter filter)
uuids
according to the given filter.java.util.List<java.lang.Integer> idList(TaxonNodeFilter filter)
java.util.List<TaxonNodeDto> listChildNodesAsTaxonNodeDto(TaxonNodeDto parent)
java.util.List<TaxonNodeDto> listChildNodesAsTaxonNodeDto(ITaxonTreeNode parent)
TaxonNodeDto findCommonParentDto(java.util.Collection<TaxonNodeDto> nodes)
null
is returned.nodes
- the direct/indirect child taxon nodes for which the common
parent should be retrievedTaxonNodeDto dto(java.util.UUID taxonNodeUuid)
UpdateResult saveNewTaxonNode(TaxonNode newTaxonNode)
<S extends TaxonNode> Pager<S> page(java.lang.Class<S> clazz, java.util.List<Restriction<?>> restrictions, java.lang.Integer pageSize, java.lang.Integer pageIndex, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths, boolean includeUnpublished)
java.util.List<TaxonNodeDto> taxonNodeDtoParentRank(Classification classification, Rank rank, TaxonName name)
java.util.List<TaxonNodeDto> taxonNodeDtoParentRank(Classification classification, Rank rank, TaxonBase<?> taxonBase)
java.util.List<TaxonDistributionDTO> getTaxonDistributionDTO(java.util.List<java.util.UUID> nodeUuids, java.util.List<java.lang.String> propertyPaths, org.springframework.security.core.Authentication authentication, boolean openChildren)
nodeUuids
- propertyPaths
- authentication
- openChildren
- java.util.List<TaxonDistributionDTO> getTaxonDistributionDTO(java.util.List<java.util.UUID> nodeUuids, java.util.List<java.lang.String> propertyPaths, boolean openChildren)
nodeUuids
- propertyPaths
- Copyright © 2007-2020 EDIT. All Rights Reserved.