|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITaxonService
| Method Summary | |
|---|---|
void |
changeHomotypicalGroupOfSynonym(Synonym synonym,
HomotypicalGroup newHomotypicalGroup,
Taxon targetTaxon,
boolean removeFromOtherTaxa,
boolean setBasionymRelationIfApplicable)
Changes the homotypic group of a synonym into the new homotypic group. |
Taxon |
changeSynonymToAcceptedTaxon(Synonym synonym,
Taxon acceptedTaxon,
boolean deleteSynonym,
boolean copyCitationInfo,
Reference citation,
String microCitation)
Changes a synonym into an accepted taxon and removes the synonym relationship to the given accepted taxon. |
Taxon |
changeSynonymToRelatedTaxon(Synonym synonym,
Taxon toTaxon,
TaxonRelationshipType taxonRelationshipType,
Reference reference,
String microReference)
TODO still needed and correct? Change a synonym into a related concept |
int |
countAllRelationships()
|
List<Synonym> |
createAllInferredSynonyms(Taxon taxon,
Classification tree,
boolean doWithMisappliedNames)
Creates all inferred synonyms for the taxon in the classification, but do not insert it to the database |
List<Synonym> |
createInferredSynonyms(Taxon taxon,
Classification tree,
SynonymRelationshipType type,
boolean doWithMisappliedNames)
Creates the specified inferred synonyms for the taxon in the classification, but do not insert it to the database |
void |
deleteSynonym(Synonym synonym,
Taxon taxon,
boolean removeNameIfPossible,
boolean newHomotypicGroupIfNeeded)
Removes a synonym. In detail it removes all synonym relationship to the given taxon or to all taxa if taxon is null
the synonym concept if it is not referenced by any synonym relationship anymore
If removeNameIfPossible is true
it also removes the synonym name if it is not used in any other context
(part of a concept, in DescriptionElementSource, part of a name relationship, used inline, ...)If newHomotypicGroupIfNeeded is true and the synonym name is not deleted and
the name is homotypic to the taxon the name is moved to a new homotypical group.If synonym is null the method has no effect. |
long |
deleteSynonymRelationships(Synonym syn)
|
long |
deleteSynonymRelationships(Synonym syn,
Taxon taxon)
Deletes all synonym relationships of a given synonym. |
void |
deleteTaxon(Taxon taxon,
TaxonDeletionConfigurator config)
Deletes a taxon from the underlying database according to the given configurator. |
Synonym |
findBestMatchingSynonym(String taxonName)
|
Taxon |
findBestMatchingTaxon(MatchingTaxonConfigurator config)
|
Taxon |
findBestMatchingTaxon(String taxonName)
|
Pager<SearchResult<TaxonBase>> |
findByDescriptionElementFullText(Class<? extends DescriptionElementBase> clazz,
String queryString,
Classification classification,
List<Feature> features,
List<Language> languages,
boolean highlightFragments,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
This is an experimental feature, it may be moved, modified, or even removed in future releases!!! |
Pager<SearchResult<TaxonBase>> |
findByEverythingFullText(String queryString,
Classification classification,
List<Language> languages,
boolean highlightFragments,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
|
Pager<SearchResult<TaxonBase>> |
findByFullText(Class<? extends TaxonBase> clazz,
String queryString,
Classification classification,
List<Language> languages,
boolean highlightFragments,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
|
List<TaxonNameBase> |
findIdenticalTaxonNameIds(List<String> propertyPath)
|
List<TaxonNameBase> |
findIdenticalTaxonNames(List<String> propertyPath)
|
Pager<IdentifiableEntity> |
findTaxaAndNames(IFindTaxaAndNamesConfigurator configurator)
Returns a list of IdentifiableEntity instances (in particular, TaxonNameBase and TaxonBase instances) that match the properties specified in the configurator. |
List<UuidAndTitleCache<TaxonBase>> |
findTaxaAndNamesForEditor(IFindTaxaAndNamesConfigurator configurator)
|
List<TaxonBase> |
findTaxaByID(Set<Integer> listOfIDs)
|
Pager<TaxonBase> |
findTaxaByName(Class<? extends TaxonBase> clazz,
String uninomial,
String infragenericEpithet,
String specificEpithet,
String infraspecificEpithet,
Rank rank,
Integer pageSize,
Integer pageNumber)
Returns a list of TaxonBase instances where the taxon.name properties match the parameters passed. |
TaxonBase |
findTaxonByUuid(UUID uuid,
List<String> propertyPaths)
Returns the TaxonBase with the given UUID using the given match mode and initialization strategy |
List<MediaRepresentation> |
getAllMedia(Taxon taxon,
int size,
int height,
int widthOrDuration,
String[] mimeTypes)
Deprecated. use #listMedia(Taxon, Set, boolean, boolean, List) instead |
List<RelationshipBase> |
getAllRelationships(int limit,
int start)
Computes all relationships. |
List<Synonym> |
getAllSynonyms(int limit,
int start)
Computes all taxon bases. |
List<Taxon> |
getAllTaxa(int limit,
int start)
Computes all taxon bases. |
List<List<Synonym>> |
getHeterotypicSynonymyGroups(Taxon taxon,
List<String> propertyPaths)
Returns the ordered list of all homotypical groups
that contain synonyms that are heterotypic to the given taxon. |
List<Synonym> |
getHomotypicSynonymsByHomotypicGroup(Taxon taxon,
List<String> propertyPaths)
Returns the list of all synonyms that share the same homotypical group with the given taxon. |
String |
getPhylumName(TaxonNameBase name)
|
List<Taxon> |
getRootTaxa(Rank rank,
Reference sec,
boolean onlyWithChildren,
boolean withMisapplications,
List<String> propertyPaths)
Deprecated. obsolete when using classification |
List<Taxon> |
getRootTaxa(Reference sec,
CdmFetch cdmFetch,
boolean onlyWithChildren)
Deprecated. obsolete when using classification |
Pager<SynonymRelationship> |
getSynonyms(Synonym synonym,
SynonymRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Returns the SynonymRelationships (of where relationship.type == type, if this argument is supplied) where the supplied synonym is relatedFrom. |
Pager<SynonymRelationship> |
getSynonyms(Taxon taxon,
SynonymRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Returns the SynonymRelationships (of where relationship.type == type, if this argument is supplied) where the supplied taxon is relatedTo. |
OrderedTermVocabulary<TaxonRelationshipType> |
getTaxonRelationshipTypeVocabulary()
Deprecated. use TermService#getVocabulary(VocabularyType) instead |
List<UuidAndTitleCache<TaxonBase>> |
getUuidAndTitleCacheSynonym()
|
List<UuidAndTitleCache<TaxonBase>> |
getUuidAndTitleCacheTaxon()
|
List<Classification> |
listClassifications(TaxonBase taxonBase,
Integer limit,
Integer start,
List<String> propertyPaths)
lists all accepted taxa for the given Synonym |
List<TaxonRelationship> |
listFromTaxonRelationships(Taxon taxon,
TaxonRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Returns the TaxonRelationships (of where relationship.type == type, if this argument is supplied) where the supplied taxon is relatedFrom. |
List<Media> |
listMedia(Taxon taxon,
Set<TaxonRelationshipEdge> includeRelationships,
Boolean limitToGalleries,
Boolean includeTaxonDescriptions,
Boolean includeOccurrences,
Boolean includeTaxonNameDescriptions,
List<String> propertyPath)
Lists all Media found in an any TaxonDescription, NameDescription, SpecimenOrObservationBase, DnaSample Chromatograms, etc. |
Set<Taxon> |
listRelatedTaxa(Taxon taxon,
Set<TaxonRelationshipEdge> includeRelationships,
Integer maxDepth,
Integer limit,
Integer start,
List<String> propertyPaths)
lists all taxa which are related to the taxon given as
parameter. |
List<SynonymRelationship> |
listSynonymRelationships(TaxonBase taxonBase,
SynonymRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths,
RelationshipBase.Direction direction)
Returns the SynonymRelationships (of where relationship.type == type, if this argument is supplied) depending on direction, where the supplied taxon is relatedTo or the supplied synonym is relatedFrom. |
List<TaxonBase> |
listTaxaByName(Class<? extends TaxonBase> clazz,
String uninomial,
String infragenericEpithet,
String specificEpithet,
String infraspecificEpithet,
Rank rank,
Integer pageSize,
Integer pageNumber)
Returns a list of TaxonBase instances where the taxon.name properties match the parameters passed. |
List<Media> |
listTaxonDescriptionMedia(Taxon taxon,
Set<TaxonRelationshipEdge> includeRelationships,
boolean limitToGalleries,
List<String> propertyPath)
Deprecated. use #listMedia(Taxon, Set, boolean, boolean, List) instead |
List<TaxonRelationship> |
listToTaxonRelationships(Taxon taxon,
TaxonRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Returns the TaxonRelationships (of where relationship.type == type, if this argument is supplied) where the supplied taxon is relatedTo. |
SynonymRelationship |
moveSynonymToAnotherTaxon(SynonymRelationship oldSynonymRelation,
Taxon newTaxon,
boolean moveHomotypicGroup,
SynonymRelationshipType newSynonymRelationshipType,
Reference newReference,
String newReferenceDetail,
boolean keepReference)
Moves a synonym to another taxon and removes the old synonym relationship. |
Pager<TaxonRelationship> |
pageFromTaxonRelationships(Taxon taxon,
TaxonRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Returns the TaxonRelationships (of where relationship.type == type, if this argument is supplied) where the supplied taxon is relatedFrom. |
Pager<TaxonRelationship> |
pageToTaxonRelationships(Taxon taxon,
TaxonRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Returns the TaxonRelationships (of where relationship.type == type, if this arguement is supplied) where the supplied taxon is relatedTo. |
Pager<TaxonBase> |
search(Class<? extends TaxonBase> clazz,
String queryString,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Returns a Paged List of TaxonBase instances where the default field matches the String queryString (as interpreted by the Lucene QueryParser) |
List<TaxonBase> |
searchTaxaByName(String name,
Reference sec)
Returns a list of taxa that matches the name string and the sec reference |
void |
swapSynonymAndAcceptedTaxon(Synonym synonym,
Taxon acceptedTaxon)
Swaps given synonym and accepted taxon. |
| Methods inherited from interface eu.etaxonomy.cdm.api.service.IIdentifiableEntityService |
|---|
countByTitle, countByTitle, deduplicate, find, findByTitle, findByTitle, findTitleCache, getRights, getSourcedObjectByIdInSource, getSources, getUuidAndTitleCache, listByReferenceTitle, listByTitle, replace, updateTitleCache, updateTitleCache |
| Methods inherited from interface eu.etaxonomy.cdm.api.service.IAnnotatableService |
|---|
countMarkers, getAnnotations, getMarkers, groupMarkers |
| Methods inherited from interface eu.etaxonomy.cdm.api.service.IVersionableService |
|---|
getNextAuditEvent, getPreviousAuditEvent, pageAuditEvents, pageAuditEvents |
| Methods inherited from interface eu.etaxonomy.cdm.api.service.IService |
|---|
clear, count, delete, exists, find, find, find, findById, getSession, group, list, list, load, load, lock, merge, page, refresh, refresh, rows, save, save, saveOrUpdate, saveOrUpdate, update |
| Method Detail |
|---|
List<Synonym> getAllSynonyms(int limit,
int start)
limit - start -
List<Taxon> getAllTaxa(int limit,
int start)
limit - start -
@Deprecated
List<Taxon> getRootTaxa(Reference sec,
CdmFetch cdmFetch,
boolean onlyWithChildren)
sec - The concept reference that the taxon belongs toonlyWithChildren - if true only taxa are returned that have taxonomic children.
@Deprecated
List<Taxon> getRootTaxa(Rank rank,
Reference sec,
boolean onlyWithChildren,
boolean withMisapplications,
List<String> propertyPaths)
rank - The rank of the taxon namesec - The concept reference that the taxon belongs toonlyWithChildren - if true only taxa are returned that have taxonomic children. withMisapplications - if false taxa that have at least one misapplied name relationship in which they are
the misapplied name are not returned.propertyPaths - properties to be initialized, For detailed description and
examples please refer to:
IBeanInitializer.initialize(Object, List).
List<RelationshipBase> getAllRelationships(int limit,
int start)
limit - start -
@Deprecated OrderedTermVocabulary<TaxonRelationshipType> getTaxonRelationshipTypeVocabulary()
List<TaxonBase> searchTaxaByName(String name,
Reference sec)
name - the name string to search forsec - the taxons sec reference
void swapSynonymAndAcceptedTaxon(Synonym synonym,
Taxon acceptedTaxon)
synonym - acceptedTaxon - synonymRelationshipType - the relationship type the newly created synonym will have. Defaults to SYNONYM_OF
Taxon changeSynonymToAcceptedTaxon(Synonym synonym,
Taxon acceptedTaxon,
boolean deleteSynonym,
boolean copyCitationInfo,
Reference citation,
String microCitation)
throws HomotypicalGroupChangeException
synonym - the synonym to change into an accepted taxonacceptedTaxon - an accepted taxon, the synonym had a relationship todeleteSynonym - if true the method tries to delete the old synonym from the databasecopyCitationInfo - if true the citation and the microcitation of newly created synonyms
is taken from the old synonym relationships.citation - if given this citation is added to the newly created synonym
relationships as citation. Only used if copyCitationInfo is falsemicroCitation - if given this microCitation is added to the newly created synonym
relationships as microCitation.Only used if copyCitationInfo is false
IllegalArgumentException - if the given accepted taxon and the synonym are homotypic
to each other an exception may be thrown as taxonomically it doesn't
make sense to have two accepted taxa in the same homotypic group
but also it is than difficult to decide how to handle other names
in the homotypic group. It is up to the implementing class to
handle this situation via an exception or in another way.
HomotypicalGroupChangeException
Taxon changeSynonymToRelatedTaxon(Synonym synonym,
Taxon toTaxon,
TaxonRelationshipType taxonRelationshipType,
Reference reference,
String microReference)
synonym - the synonym to change into the concept taxontoTaxon - the taxon the newly created concept should be related totaxonRelationshipType - the type of relationshipreference - microReference -
long deleteSynonymRelationships(Synonym syn,
Taxon taxon)
syn - the synonymtaxon -
void deleteTaxon(Taxon taxon,
TaxonDeletionConfigurator config)
throws ReferencedObjectUndeletableException
configurator.
taxon - config -
ReferencedObjectUndeletableException
void changeHomotypicalGroupOfSynonym(Synonym synonym,
HomotypicalGroup newHomotypicalGroup,
Taxon targetTaxon,
boolean removeFromOtherTaxa,
boolean setBasionymRelationIfApplicable)
targetTaxon is defined, the synonym is
added to this taxon irrespctive of if it has been related to this
taxon before.removeFromOtherTaxa is true and targetTaxon is
defined all relationships to other taxa are deleted.setBasionymRelationIfApplicable is true a basionym relationship
between the existing basionym(s) of the new homotypic group and the synonyms name
is added.
synonym - newHomotypicalGroup - taxon - setBasionymRelationIfApplicable -
SynonymRelationship moveSynonymToAnotherTaxon(SynonymRelationship oldSynonymRelation,
Taxon newTaxon,
boolean moveHomotypicGroup,
SynonymRelationshipType newSynonymRelationshipType,
Reference newReference,
String newReferenceDetail,
boolean keepReference)
throws HomotypicalGroupChangeException
oldSynonymRelation - the old synonym relationship defining the synonym to move and the old accepted taxon.newTaxon - the taxon the synonym will be moved tomoveHomotypicGroup - if the synonym belongs to a homotypical group with other synonyms and
moveHomotypicGroup is true all these synonyms are moved to the new taxon,
if false a HomotypicalGroupChangeException is thrown.
MoveHomotypicGroup has no effect if the synonym is the only synonym in it's homotypic group.newSynonymRelationshipType - the synonym relationship type of the new synonym relations. Default is
heterotypic.newReference - The reference for the new synonym relation(s).newReferenceDetail - The reference detail for the new synonym relation(s).keepReference - if no newReference and/or no newReferenceDetail
is defined they are taken from the old synonym relation(s) if keepReference is
true. If false the reference and the reference detail will be taken
only from the newReference and newReferenceDetail.
moveHomotypicGroup is true additionally
created new synonym relationships must be retrieved separately from the new taxon.
HomotypicalGroupChangeException - Exception is thrown if (1) synonym is homotypic to the old accepted taxon or
(2) synonym is in homotypic group with other synonyms and moveHomotypicGroup is false
List<TaxonRelationship> listToTaxonRelationships(Taxon taxon,
TaxonRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
taxon - The taxon that is relatedTotype - The type of TaxonRelationship (can be null)pageSize - The maximum number of relationships returned (can be null for all relationships)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints - Properties to order bypropertyPaths - Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)
Pager<TaxonRelationship> pageToTaxonRelationships(Taxon taxon,
TaxonRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
taxon - The taxon that is relatedTotype - The type of TaxonRelationship (can be null)pageSize - The maximum number of relationships returned (can be null for all relationships)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints - Properties to order bypropertyPaths - Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)
List<TaxonRelationship> listFromTaxonRelationships(Taxon taxon,
TaxonRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
taxon - The taxon that is relatedFromtype - The type of TaxonRelationship (can be null)pageSize - The maximum number of relationships returned (can be null for all relationships)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints - Properties to order bypropertyPaths - Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)
Pager<TaxonRelationship> pageFromTaxonRelationships(Taxon taxon,
TaxonRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
taxon - The taxon that is relatedFromtype - The type of TaxonRelationship (can be null)pageSize - The maximum number of relationships returned (can be null for all relationships)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints - Properties to order bypropertyPaths - Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)
Set<Taxon> listRelatedTaxa(Taxon taxon,
Set<TaxonRelationshipEdge> includeRelationships,
Integer maxDepth,
Integer limit,
Integer start,
List<String> propertyPaths)
taxon given as
parameter.
taxon - includeRelationships - maxDepth - 1 for one level, null for infinite
depth, 0 will completely omit collecting related taxa.limit - start - propertyPaths -
List<Classification> listClassifications(TaxonBase taxonBase,
Integer limit,
Integer start,
List<String> propertyPaths)
Synonym
taxonBase - limit - start - propertyPaths -
Pager<SynonymRelationship> getSynonyms(Synonym synonym,
SynonymRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
taxon - The synonym that is relatedFromtype - The type of SynonymRelationship (can be null)pageSize - The maximum number of relationships returned (can be null for all relationships)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)
* @param orderHints Properties to order bypropertyPaths - Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)
Pager<SynonymRelationship> getSynonyms(Taxon taxon,
SynonymRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
taxon - The taxon that is relatedTotype - The type of SynonymRelationship (can be null)pageSize - The maximum number of relationships returned (can be null for all relationships)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)
* @param orderHints Properties to order bypropertyPaths - Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)
List<Synonym> getHomotypicSynonymsByHomotypicGroup(Taxon taxon,
List<String> propertyPaths)
taxon - propertyPaths -
List<List<Synonym>> getHeterotypicSynonymyGroups(Taxon taxon,
List<String> propertyPaths)
homotypical groups
that contain synonyms that are heterotypic to the given taxon.
Taxon names of heterotypic synonyms
belong to a homotypical group which cannot be the homotypical group to which the
taxon name of the given taxon belongs. This method does not return the homotypic group the given
taxon belongs to.
taxon - propertyPaths -
#getHeterotypicSynonymyGroups(),
#getSynonyms(),
SynonymRelationshipType.HETEROTYPIC_SYNONYM_OF(),
HomotypicalGroup
Pager<TaxonBase> search(Class<? extends TaxonBase> clazz,
String queryString,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
search in interface IIdentifiableEntityService<TaxonBase>clazz - filter the results by class (or pass null to return all TaxonBase instances)queryString - pageSize - The maximum number of taxa returned (can be null for all matching taxa)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints - Supports path like orderHints.propertyNames which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepropertyPaths - properties to be initialized
Pager<TaxonBase> findTaxaByName(Class<? extends TaxonBase> clazz,
String uninomial,
String infragenericEpithet,
String specificEpithet,
String infraspecificEpithet,
Rank rank,
Integer pageSize,
Integer pageNumber)
clazz - optionally filter by class (can be null to return all taxa)uninomial - infragenericEpithet - specificEpithet - infraspecificEpithet - rank - pageSize - The maximum number of taxa returned (can be null for all matching taxa)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)
List<TaxonBase> listTaxaByName(Class<? extends TaxonBase> clazz,
String uninomial,
String infragenericEpithet,
String specificEpithet,
String infraspecificEpithet,
Rank rank,
Integer pageSize,
Integer pageNumber)
clazz - optionally filter by classuninomial - infragenericEpithet - specificEpithet - infraspecificEpithet - rank - pageSize - The maximum number of taxa returned (can be null for all matching taxa)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)
Pager<IdentifiableEntity> findTaxaAndNames(IFindTaxaAndNamesConfigurator configurator)
configurator -
Pager<SearchResult<TaxonBase>> findByDescriptionElementFullText(Class<? extends DescriptionElementBase> clazz,
String queryString,
Classification classification,
List<Feature> features,
List<Language> languages,
boolean highlightFragments,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
throws org.apache.lucene.index.CorruptIndexException,
IOException,
org.apache.lucene.queryParser.ParseException
clazz - queryString - the query string to filter byclassification - If a taxonomic classification three is specified here the
result set will only contain taxa of the given classificationfeatures - TODOlanguages - Search only in these languages. Not all text fields in the cdm
model are multilingual, thus this setting will only apply to
the multilingiual fields. Other fields are searched
nevertheless if this parameter is set or not.highlightFragments - TODOpageSize - The maximum number of objects returned (can be null for all
objects)pageNumber - The offset (in pageSize chunks) from the start of the result
set (0 - based)orderHints - Supports path like orderHints.propertyNames which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepropertyPaths - properties to initialize - see
IBeanInitializer.initialize(Object, List)
IOException
org.apache.lucene.index.CorruptIndexException
org.apache.lucene.queryParser.ParseException
@Deprecated
List<MediaRepresentation> getAllMedia(Taxon taxon,
int size,
int height,
int widthOrDuration,
String[] mimeTypes)
#listMedia(Taxon, Set, boolean, boolean, List) instead
taxon - size - height - widthOrDuration - mimeTypes -
@Deprecated
List<Media> listTaxonDescriptionMedia(Taxon taxon,
Set<TaxonRelationshipEdge> includeRelationships,
boolean limitToGalleries,
List<String> propertyPath)
#listMedia(Taxon, Set, boolean, boolean, List) instead
taxon - includeRelationships - the given list of TaxonRelationshipEdges will be taken into
account when retrieving media associated with the given taxon.
Can be NULL.limitToGalleries - whether to take only TaxonDescription into account which are
marked as gallery
List<Media> listMedia(Taxon taxon,
Set<TaxonRelationshipEdge> includeRelationships,
Boolean limitToGalleries,
Boolean includeTaxonDescriptions,
Boolean includeOccurrences,
Boolean includeTaxonNameDescriptions,
List<String> propertyPath)
taxon - includeRelationships - the given list of TaxonRelationshipEdges will be taken into
account when retrieving media associated with the given taxon.
Can be NULL.limitToGalleries - whether to take only descriptions into account which are
marked as gallery, can be NULLincludeTaxonDescriptions - whether to take TaxonDescriptions into account, can be NULLincludeOccurrences - whether to take TaxonDescriptions into account, can be NULLincludeTaxonNameDescriptions - whether to take TaxonNameDescriptions into account, can be NULLpropertyPath -
List<TaxonBase> findTaxaByID(Set<Integer> listOfIDs)
TaxonBase findTaxonByUuid(UUID uuid,
List<String> propertyPaths)
uuid - propertyPaths -
int countAllRelationships()
List<TaxonNameBase> findIdenticalTaxonNames(List<String> propertyPath)
List<TaxonNameBase> findIdenticalTaxonNameIds(List<String> propertyPath)
String getPhylumName(TaxonNameBase name)
long deleteSynonymRelationships(Synonym syn)
void deleteSynonym(Synonym synonym,
Taxon taxon,
boolean removeNameIfPossible,
boolean newHomotypicGroupIfNeeded)
nullremoveNameIfPossible is true
it also removes the synonym name if it is not used in any other context
(part of a concept, in DescriptionElementSource, part of a name relationship, used inline, ...)newHomotypicGroupIfNeeded is true and the synonym name is not deleted and
the name is homotypic to the taxon the name is moved to a new homotypical group.null the method has no effect.
taxon - synonym - removeNameIfPossible -
DataChangeNoRollbackException
List<SynonymRelationship> listSynonymRelationships(TaxonBase taxonBase,
SynonymRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths,
RelationshipBase.Direction direction)
taxonBase - The taxon or synonym that is relatedTo or relatedFromtype - The type of SynonymRelationship (can be null)pageSize - The maximum number of relationships returned (can be null for all relationships)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints - Properties to order bypropertyPaths - Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)direction - The direction of the relationship
Taxon findBestMatchingTaxon(String taxonName)
tnb -
Taxon findBestMatchingTaxon(MatchingTaxonConfigurator config)
Synonym findBestMatchingSynonym(String taxonName)
List<UuidAndTitleCache<TaxonBase>> getUuidAndTitleCacheTaxon()
List<UuidAndTitleCache<TaxonBase>> getUuidAndTitleCacheSynonym()
List<UuidAndTitleCache<TaxonBase>> findTaxaAndNamesForEditor(IFindTaxaAndNamesConfigurator configurator)
List<Synonym> createInferredSynonyms(Taxon taxon,
Classification tree,
SynonymRelationshipType type,
boolean doWithMisappliedNames)
taxon - tree -
List<Synonym> createAllInferredSynonyms(Taxon taxon,
Classification tree,
boolean doWithMisappliedNames)
taxon - tree - iDatabase -
Pager<SearchResult<TaxonBase>> findByFullText(Class<? extends TaxonBase> clazz,
String queryString,
Classification classification,
List<Language> languages,
boolean highlightFragments,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
throws org.apache.lucene.index.CorruptIndexException,
IOException,
org.apache.lucene.queryParser.ParseException
org.apache.lucene.index.CorruptIndexException
IOException
org.apache.lucene.queryParser.ParseException
Pager<SearchResult<TaxonBase>> findByEverythingFullText(String queryString,
Classification classification,
List<Language> languages,
boolean highlightFragments,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
throws org.apache.lucene.index.CorruptIndexException,
IOException,
org.apache.lucene.queryParser.ParseException
org.apache.lucene.index.CorruptIndexException
IOException
org.apache.lucene.queryParser.ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||