public interface INameService extends IIdentifiableEntityService<TaxonName>
Modifier and Type | Method and Description |
---|---|
UpdateResult |
cloneTypeDesignation(java.util.UUID nameUuid,
SpecimenTypeDesignation baseDesignation,
java.lang.String accessionNumber,
java.lang.String barcode,
java.lang.String catalogNumber,
java.util.UUID collectionUuid,
SpecimenTypeDesignationStatus typeStatus)
Creates specimen duplicate based on the given type specimen which will be assigned as a type
of the given name.
The specimen will only differ in accession number, collection and type status and will be attached to the same FieldUnit |
DeleteResult |
delete(TaxonName name,
NameDeletionConfigurator config) |
DeleteResult |
delete(java.util.UUID nameUUID,
NameDeletionConfigurator config)
Deletes a name.
|
DeleteResult |
deleteTypeDesignation(TaxonName name,
TypeDesignationBase<?> typeDesignation)
Removes the given type designation from the given taxon name and deletes it from
the database if it is not connected to any other name.
|
DeleteResult |
deleteTypeDesignation(java.util.UUID nameUuid,
java.util.UUID typeDesignationUuid)
Removes the given type designation from the given taxon name and deletes it from
the database if it is not connected to any other name.
|
java.util.List<TaxonName> |
findByFullTitle(java.lang.Class<TaxonName> clazz,
java.lang.String queryString,
MatchMode matchmode,
java.util.List<org.hibernate.criterion.Criterion> criteria,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths) |
java.util.List<DocumentSearchResult> |
findByFuzzyNameCacheSearch(java.lang.String name,
float accuracy,
java.util.List<Language> languages,
boolean highlightFragments,
int maxNoOfResults)
Fuzzy matching against the name cache using only the lucene index.
|
Pager<TaxonName> |
findByName(java.lang.Class<TaxonName> clazz,
java.lang.String queryString,
MatchMode matchmode,
java.util.List<org.hibernate.criterion.Criterion> criteria,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Return a Pager of names matching the given query string, optionally filtered by class, optionally with a particular MatchMode
|
java.util.List<DocumentSearchResult> |
findByNameExactSearch(java.lang.String name,
boolean wildcard,
java.util.List<Language> languages,
boolean highlightFragments,
int maxNoOfResults)
Exact matching for the taxon name elements using only the lucene index.
|
java.util.List<DocumentSearchResult> |
findByNameFuzzySearch(java.lang.String name,
float accuracy,
java.util.List<Language> languages,
boolean highlightFragments,
int maxNoOfResults)
Fuzzy matching for the taxon name elements using only the lucene index.
|
java.util.List<SearchResult<TaxonName>> |
findByNameFuzzySearch(java.lang.String name,
float accuracy,
java.util.List<Language> languages,
boolean highlightFragments,
java.util.List<java.lang.String> propertyPaths,
int maxNoOfResults)
Fuzzy matching for the taxon name elements.
|
HomotypicalGroup |
findHomotypicalGroup(java.util.UUID uuid)
Returns a homotypical group with the given UUID or null if not homotypical group exists with that UUID
|
java.util.List<TaxonName> |
findNamesByNameCache(java.lang.String nameCache,
MatchMode matchMode,
java.util.List<java.lang.String> propertyPaths)
Returns all NonViralNames with a name cache that matches the given string
using the given match mode and initialization strategy
|
java.util.List<TaxonName> |
findNamesByTitleCache(java.lang.String titleCache,
MatchMode matchMode,
java.util.List<java.lang.String> propertyPaths)
Returns all NonViralNames with a title cache that matches the given string
using the given match mode and initialization strategy
|
Pager<TaxonNameParts> |
findTaxonNameParts(java.util.Optional<java.lang.String> genusOrUninomial,
java.util.Optional<java.lang.String> infraGenericEpithet,
java.util.Optional<java.lang.String> specificEpithet,
java.util.Optional<java.lang.String> infraSpecificEpithet,
Rank rank,
java.util.Set<java.util.UUID> excludedNamesUuids,
java.lang.Integer pageSize,
java.lang.Integer pageIndex,
java.util.List<OrderHint> orderHints)
Supports using wildcards in the query parameters.
|
Pager<TaxonNameParts> |
findTaxonNameParts(TaxonNamePartsFilter filter,
java.lang.String namePartQueryString,
java.lang.Integer pageSize,
java.lang.Integer pageIndex,
java.util.List<OrderHint> orderHints)
This method behaves differently compared to
#findTaxonNameParts(Optional, Optional, Optional, Optional, Rank, Integer, Integer, List) ! |
java.util.List<HomotypicalGroup> |
getAllHomotypicalGroups(int limit,
int start) |
java.util.List<NomenclaturalStatus> |
getAllNomenclaturalStatus(int limit,
int start)
Returns all nomenclatural status.
|
java.util.List<TypeDesignationBase<?>> |
getAllTypeDesignations(int limit,
int start)
Returns all type designations.
|
Pager<HybridRelationship> |
getHybridNames(INonViralName name,
HybridRelationshipType type,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Return a List of hybrids related to this name, optionally filtered
by hybrid relationship type
|
java.util.List<java.util.HashMap<java.lang.String,java.lang.String>> |
getNameRecords() |
java.util.List<TaxonName> |
getNamesByNameCache(java.lang.String nameCache)
Returns all NonViralNames with a name cache that matches the given string
|
java.util.List<TaggedText> |
getTaggedName(java.util.UUID uuid) |
Pager<TypeDesignationBase> |
getTypeDesignations(TaxonName name,
SpecimenTypeDesignationStatus status,
java.lang.Integer pageSize,
java.lang.Integer pageNumber)
Return a List of types related to this name, optionally filtered
by type designation status
|
Pager<TypeDesignationBase> |
getTypeDesignations(TaxonName name,
SpecimenTypeDesignationStatus status,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths) |
java.util.List<TypeDesignationBase> |
getTypeDesignationsInHomotypicalGroup(java.util.UUID nameUuid,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths) |
java.util.Collection<TypeDesignationStatusFilter> |
getTypeDesignationStatusFilterTerms(java.util.List<Language> preferredLanguages)
Provides a collection of the TypeDesignationStatusBase terms which are in use.
|
java.util.List<TypeDesignationStatusBase> |
getTypeDesignationStatusInUse() |
java.util.List<UuidAndTitleCache> |
getUuidAndTitleCacheOfNames(java.lang.Integer limit,
java.lang.String pattern)
Returns a map that holds uuid, titleCache pairs of all names in the current database
|
java.util.List<UuidAndTitleCache> |
getUuidAndTitleCacheOfSynonymy(java.lang.Integer limit,
java.util.UUID taxonUuid)
Returns a list of names belonging to the synonymy of the taxon
|
java.util.List<NameRelationship> |
listFromNameRelationships(TaxonName name,
NameRelationshipType type,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
|
java.util.List<HybridRelationship> |
listHybridRelationships(java.util.Set<HybridRelationshipType> types,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns all or a page of all hybrid relationships in the database.
|
java.util.List<NameRelationship> |
listNameRelationships(java.util.Set<NameRelationshipType> types,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns all or a page of all taxon name relationships in the database.
|
java.util.List<NameRelationship> |
listNameRelationships(TaxonName name,
RelationshipBase.Direction direction,
NameRelationshipType type,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Return a List of name relationships in which this name is related to
another name, optionally filtered by relationship type
|
java.util.List<NameRelationship> |
listToNameRelationships(TaxonName name,
NameRelationshipType type,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
|
NomenclaturalStatus |
loadNomenclaturalStatus(java.util.UUID uuid,
java.util.List<java.lang.String> propertyPaths) |
TypeDesignationBase<?> |
loadTypeDesignation(int id,
java.util.List<java.lang.String> propertyPaths) |
TypeDesignationBase<?> |
loadTypeDesignation(java.util.UUID uuid,
java.util.List<java.lang.String> propertyPaths) |
<S extends TaxonName> |
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<NameRelationship> |
pageFromNameRelationships(TaxonName name,
NameRelationshipType type,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
|
Pager<NameRelationship> |
pageNameRelationships(TaxonName name,
RelationshipBase.Direction direction,
NameRelationshipType type,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Return a List of name relationships in which this name is related to another name, optionally filtered
by relationship type
|
Pager<NameRelationship> |
pageToNameRelationships(TaxonName name,
NameRelationshipType type,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
|
java.util.Map<java.util.UUID,HomotypicalGroup> |
saveAllHomotypicalGroups(java.util.Collection<HomotypicalGroup> homotypicalGroups)
Saves the given homotypical groups.
|
java.util.Map<java.util.UUID,TypeDesignationBase<?>> |
saveTypeDesignationAll(java.util.Collection<TypeDesignationBase<?>> typeDesignationCollection)
Saves the given type designations.
|
Pager<TaxonName> |
search(java.lang.Class<? extends TaxonName> clazz,
java.lang.String queryString,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns a Paged List of TaxonName instances where the default field matches the String queryString (as interpreted by the Lucene QueryParser)
|
Pager<TaxonName> |
searchNames(java.lang.String uninomial,
java.lang.String infraGenericEpithet,
java.lang.String specificEpithet,
java.lang.String infraspecificEpithet,
Rank rank,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns a List of TaxonName instances that match the properties passed
|
UpdateResult |
setAsGroupsBasionym(java.util.UUID nameUuid) |
countByTitle, countByTitle, countByTitleWithRestrictions, deduplicate, find, findByIdentifier, findByMarker, findByTitle, findByTitle, findByTitleWithRestrictions, findTitleCache, findUuidAndTitleCacheByMarker, getRights, getSourcedObjectByIdInSource, getSources, getTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, listByIdentifier, listByReferenceTitle, listByReferenceTitleWithRestrictions, listByTitle, listByTitleWithRestrictions, replace, updateCaches, updateCaches
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
DeleteResult delete(java.util.UUID nameUUID, NameDeletionConfigurator config)
null
this method has no effect.name
- config
- UpdateResult cloneTypeDesignation(java.util.UUID nameUuid, SpecimenTypeDesignation baseDesignation, java.lang.String accessionNumber, java.lang.String barcode, java.lang.String catalogNumber, java.util.UUID collectionUuid, SpecimenTypeDesignationStatus typeStatus)
FieldUnit
name
- the name where this type designation will be added tobaseDesignation
- the type specimen of this designation is cloned to create the new specimenaccessionNumber
- the accession number of the cloned specimenbarcode
- the barcode of the cloned specimencatalogNumber
- the catalog number of the cloned specimencollectionUuid
- the collection the cloned specimen belongs totypeStatus
- the type status of the cloned specimenUpdateResult
DeleteResult deleteTypeDesignation(TaxonName name, TypeDesignationBase<?> typeDesignation)
typeDesignation
is null
all type designations are deleted
from the given taxon name. If name
is null
all names are removed from
the given type designation. If both are null
nothing happens.typeDesignation
- name
- DeleteResult deleteTypeDesignation(java.util.UUID nameUuid, java.util.UUID typeDesignationUuid)
typeDesignation
is null
all type designations are deleted
from the given taxon name. If name
is null
all names are removed from
the given type designation. If both are null
nothing happens.typeDesignation
- name
- java.util.Map<java.util.UUID,TypeDesignationBase<?>> saveTypeDesignationAll(java.util.Collection<TypeDesignationBase<?>> typeDesignationCollection)
typeDesignationCollection
- java.util.Map<java.util.UUID,HomotypicalGroup> saveAllHomotypicalGroups(java.util.Collection<HomotypicalGroup> homotypicalGroups)
homotypicalGroups
- java.util.List<NomenclaturalStatus> getAllNomenclaturalStatus(int limit, int start)
limit
- start
- java.util.List<TypeDesignationBase<?>> getAllTypeDesignations(int limit, int start)
limit
- start
- TypeDesignationBase<?> loadTypeDesignation(int id, java.util.List<java.lang.String> propertyPaths)
TypeDesignationBase<?> loadTypeDesignation(java.util.UUID uuid, java.util.List<java.lang.String> propertyPaths)
java.util.List<TaxonName> getNamesByNameCache(java.lang.String nameCache)
name
- java.util.List<TaxonName> findNamesByTitleCache(java.lang.String titleCache, MatchMode matchMode, java.util.List<java.lang.String> propertyPaths)
name
- matchMode
- must not be NULL
propertyPaths
- Pager<TaxonNameParts> findTaxonNameParts(java.util.Optional<java.lang.String> genusOrUninomial, java.util.Optional<java.lang.String> infraGenericEpithet, java.util.Optional<java.lang.String> specificEpithet, java.util.Optional<java.lang.String> infraSpecificEpithet, Rank rank, java.util.Set<java.util.UUID> excludedNamesUuids, java.lang.Integer pageSize, java.lang.Integer pageIndex, java.util.List<OrderHint> orderHints)
A query parameter which is passed as NULL
value will be ignored. A parameter passed as Optional
object containing a NULL
value will be used
to filter select taxon names where the according field is null
.
filter
- infraGenericEpithet
- specificEpithet
- infraSpecificEpithet
- rank
- Only names having the specified rank are taken into account.excludedNamesUuids
- Names to be excluded from the result setPager<TaxonNameParts> findTaxonNameParts(TaxonNamePartsFilter filter, java.lang.String namePartQueryString, java.lang.Integer pageSize, java.lang.Integer pageIndex, java.util.List<OrderHint> orderHints)
#findTaxonNameParts(Optional, Optional, Optional, Optional, Rank, Integer, Integer, List)
!
The TaxonNamePartsFilter
defines the rank and fixed name parts for the search process.
For example: In case the rank
is "genus", the genusOrUninomial
will be used as search parameter which needs to match exactly.
The namePartQueryString
will be used to do a wildcard search on the specificEpithet.
For name part lookup purposes the TaxonNameParts
in the result list can be asked to return the relavant name part by
calling TaxonNameParts#nameRankSpecificNamePart(TaxonName)
filter
- java.util.List<TaxonName> findNamesByNameCache(java.lang.String nameCache, MatchMode matchMode, java.util.List<java.lang.String> propertyPaths)
name
- matchMode
- propertyPaths
- java.util.List<SearchResult<TaxonName>> findByNameFuzzySearch(java.lang.String name, float accuracy, java.util.List<Language> languages, boolean highlightFragments, java.util.List<java.lang.String> propertyPaths, int maxNoOfResults) throws java.io.IOException, LuceneParseException
NonViralNameParserImpl
into its separate parts (genusOrUninomial,infraGenericEpithet,specificEpithet,infraGenericEpithet,authorshipCache).
Each field is then matched separately with the same accuracy parameter.name
- taxon name to fuzzy matchaccuracy
- value > 0.0 and < 1.0 which determines the accuracy of the result.languages
- list of languages to consider when matching (currently not used)highlightFragments
- propertyPaths
- maxNoOfResults
- java.io.IOException
LuceneParseException
java.util.List<DocumentSearchResult> findByNameFuzzySearch(java.lang.String name, float accuracy, java.util.List<Language> languages, boolean highlightFragments, int maxNoOfResults) throws java.io.IOException, LuceneParseException
NonViralNameParserImpl
into its separate parts (genusOrUninomial,infraGenericEpithet,specificEpithet,infraGenericEpithet,authorshipCache).
Each field is then matched separately with the same accuracy parameter.name
- taxon name to fuzzy matchaccuracy
- value > 0.0 and < 1.0 which determines the accuracy of the result.languages
- list of languages to consider when matching (currently not used)highlightFragments
- maxNoOfResults
- java.io.IOException
LuceneParseException
java.util.List<DocumentSearchResult> findByFuzzyNameCacheSearch(java.lang.String name, float accuracy, java.util.List<Language> languages, boolean highlightFragments, int maxNoOfResults) throws java.io.IOException, LuceneParseException
name
- taxon name to fuzzy matchaccuracy
- value > 0.0 and < 1.0 which determines the accuracy of the result.languages
- list of languages to consider when matching (currently not used)highlightFragments
- maxNoOfResults
- java.io.IOException
LuceneParseException
java.util.List<DocumentSearchResult> findByNameExactSearch(java.lang.String name, boolean wildcard, java.util.List<Language> languages, boolean highlightFragments, int maxNoOfResults) throws java.io.IOException, LuceneParseException
NonViralNameParserImpl
into its separate parts (genusOrUninomial,infraGenericEpithet,specificEpithet,infraGenericEpithet,authorshipCache).
Each field is then matched separately with the same accuracy parameter.name
- taxon name to fuzzy matchwildcard
- boolean flag to indicate whether a wildcard '*' should be added at the end of the querylanguages
- list of languages to consider when matching (currently not used)highlightFragments
- maxNoOfResults
- java.io.IOException
LuceneParseException
java.util.List<HomotypicalGroup> getAllHomotypicalGroups(int limit, int start)
java.util.List<NameRelationship> listNameRelationships(java.util.Set<NameRelationshipType> types, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
listHybridRelationships(Set, Integer, Integer, List, List)
)types
- The name relationship type filter, if null
no filter is set, if empty the result will also be emptypageSize
- the page sizepageStart
- the number of the pageorderHints
- the order hintspropertyPaths
- the property path to initialize the resulting objectsjava.util.List<HybridRelationship> listHybridRelationships(java.util.Set<HybridRelationshipType> types, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
listNameRelationships(Set, Integer, Integer, List, List)
)types
- The hybrid relationship type filter, if null
no filter is set, if empty the result will also be emptypageSize
- the page sizepageStart
- the number of the pageorderHints
- the order hintspropertyPaths
- the property path to initialize the resulting objectsjava.util.List<NameRelationship> listNameRelationships(TaxonName name, RelationshipBase.Direction direction, NameRelationshipType type, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
name
- the name on either the "from side" or on the
"to side" of the relationship, depending on the
direction
of the relationship.direction
- the direction of the NameRelationship, may be null to return all relationshipstype
- the relationship type (or null to return all relationships)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
- may be nullpropertyPaths
- properties to initialize - see
IBeanInitializer.initialize(Object, List)
Pager<NameRelationship> pageNameRelationships(TaxonName name, RelationshipBase.Direction direction, NameRelationshipType type, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
name
- the name on the "from side" of the relationshipdirection
- the direction of the NameRelationshiptype
- the relationship type (or null to return all relationships)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
- may be nullpropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
@Deprecated java.util.List<NameRelationship> listFromNameRelationships(TaxonName name, NameRelationshipType type, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
listNameRelationships(TaxonName, eu.etaxonomy.cdm.model.common.RelationshipBase.Direction, NameRelationshipType, Integer, Integer, List, List)
insteadname
- the name on the "from side" of the relationshiptype
- the relationship type (or null to return all relationships)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
- may be nullpropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
@Deprecated Pager<NameRelationship> pageFromNameRelationships(TaxonName name, NameRelationshipType type, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
pageNameRelationships(TaxonName, eu.etaxonomy.cdm.model.common.RelationshipBase.Direction, NameRelationshipType, Integer, Integer, List, List)
insteadname
- the name on the "from side" of the relationshiptype
- the relationship type (or null to return all relationships)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
- may be nullpropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
@Deprecated java.util.List<NameRelationship> listToNameRelationships(TaxonName name, NameRelationshipType type, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
listNameRelationships(TaxonName, eu.etaxonomy.cdm.model.common.RelationshipBase.Direction, NameRelationshipType, Integer, Integer, List, List)
insteadname
- the name on the "to side" of the relationshiptype
- the relationship type (or null to return all relationships)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
- may be nullpropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
@Deprecated Pager<NameRelationship> pageToNameRelationships(TaxonName name, NameRelationshipType type, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
pageNameRelationships(TaxonName, eu.etaxonomy.cdm.model.common.RelationshipBase.Direction, NameRelationshipType, Integer, Integer, List, List)
insteadname
- the name on the "to side" of the relationshiptype
- the relationship type (or null to return all relationships)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
- may be nullpropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
Pager<HybridRelationship> getHybridNames(INonViralName name, HybridRelationshipType type, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
name
- the nametype
- the hybrid relationship type (or null to return all hybrids)pageSize
- The maximum number of hybrid relationships returned (can be null for all relationships)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints
- may be nullpropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
Pager<TypeDesignationBase> getTypeDesignations(TaxonName name, SpecimenTypeDesignationStatus status, java.lang.Integer pageSize, java.lang.Integer pageNumber)
name
- the namestatus
- the type designation status (or null to return all types)pageSize
- The maximum number of types returned (can be null for all types)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)Pager<TypeDesignationBase> getTypeDesignations(TaxonName name, SpecimenTypeDesignationStatus status, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
java.util.List<TypeDesignationBase> getTypeDesignationsInHomotypicalGroup(java.util.UUID nameUuid, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
Pager<TaxonName> searchNames(java.lang.String uninomial, java.lang.String infraGenericEpithet, java.lang.String specificEpithet, java.lang.String infraspecificEpithet, Rank rank, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
uninomial
- infraGenericEpithet
- specificEpithet
- infraspecificEpithet
- rank
- pageSize
- The maximum number of names returned (can be null for all names)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints
- may be nullpropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
Pager<TaxonName> search(java.lang.Class<? extends TaxonName> clazz, java.lang.String queryString, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
search
in interface IIdentifiableEntityService<TaxonName>
clazz
- filter the results by class (or pass null to return all TaxonName instances)queryString
- pageSize
- The maximum number of names returned (can be null for all matching names)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 initializedjava.util.List<UuidAndTitleCache> getUuidAndTitleCacheOfNames(java.lang.Integer limit, java.lang.String pattern)
Map
containing uuid and titleCache of namesjava.util.List<UuidAndTitleCache> getUuidAndTitleCacheOfSynonymy(java.lang.Integer limit, java.util.UUID taxonUuid)
limit
- taxonUuid
- Pager<TaxonName> findByName(java.lang.Class<TaxonName> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criteria, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
clazz
- filter by class - can be null to include all instances of type TqueryString
- the query string to filter bymatchmode
- use a particular type of matching (can be null - defaults to exact matching)criteria
- additional criteria to filter bypageSize
- 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)propertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCacheHomotypicalGroup findHomotypicalGroup(java.util.UUID uuid)
uuid
- the uuid of the homotypical groupjava.util.List<TaggedText> getTaggedName(java.util.UUID uuid)
uuid
- UpdateResult setAsGroupsBasionym(java.util.UUID nameUuid)
nameUuid
- java.util.List<java.util.HashMap<java.lang.String,java.lang.String>> getNameRecords()
DeleteResult delete(TaxonName name, NameDeletionConfigurator config)
name
- config
- java.util.List<TypeDesignationStatusBase> getTypeDesignationStatusInUse()
java.util.Collection<TypeDesignationStatusFilter> getTypeDesignationStatusFilterTerms(java.util.List<Language> preferredLanguages)
preferredLanguage
- NomenclaturalStatus loadNomenclaturalStatus(java.util.UUID uuid, java.util.List<java.lang.String> propertyPaths)
uuid
- propertyPaths
- <S extends TaxonName> 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)
clazz
- restrictions
- pageSize
- pageIndex
- orderHints
- propertyPaths
- includeUnpublished
- java.util.List<TaxonName> findByFullTitle(java.lang.Class<TaxonName> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criteria, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
clazz
- queryString
- matchmode
- criteria
- pageSize
- pageNumber
- orderHints
- propertyPaths
- Copyright © 2007-2020 EDIT. All Rights Reserved.