Revision 892efc69
Added by Andreas Kohlbecker almost 14 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/ITaxonService.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import java.util.List; |
14 | 14 |
import java.util.Set; |
15 |
import java.util.UUID; |
|
15 | 16 |
|
16 | 17 |
import eu.etaxonomy.cdm.api.service.config.ITaxonServiceConfigurator; |
17 | 18 |
import eu.etaxonomy.cdm.api.service.pager.Pager; |
18 | 19 |
import eu.etaxonomy.cdm.model.common.IdentifiableEntity; |
19 | 20 |
import eu.etaxonomy.cdm.model.common.OrderedTermVocabulary; |
20 | 21 |
import eu.etaxonomy.cdm.model.common.RelationshipBase; |
22 |
import eu.etaxonomy.cdm.model.common.RelationshipBase.Direction; |
|
21 | 23 |
import eu.etaxonomy.cdm.model.media.MediaRepresentation; |
22 | 24 |
import eu.etaxonomy.cdm.model.name.NonViralName; |
23 | 25 |
import eu.etaxonomy.cdm.model.name.Rank; |
... | ... | |
119 | 121 |
*/ |
120 | 122 |
public OrderedTermVocabulary<TaxonRelationshipType> getTaxonRelationshipTypeVocabulary(); |
121 | 123 |
|
122 |
/** */ |
|
124 |
/** |
|
125 |
* Returns a list of taxa that matches the name string and the sec reference |
|
126 |
* @param name the name string to search for |
|
127 |
* @param sec the taxons sec reference |
|
128 |
* @return a list of taxa matching the name and the sec reference |
|
129 |
*/ |
|
123 | 130 |
public List<TaxonBase> searchTaxaByName(String name, ReferenceBase sec); |
124 | 131 |
|
125 | 132 |
/** |
... | ... | |
199 | 206 |
*/ |
200 | 207 |
public List<TaxonRelationship> listToTaxonRelationships(Taxon taxon, TaxonRelationshipType type, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths); |
201 | 208 |
|
209 |
|
|
210 |
|
|
202 | 211 |
/** |
203 | 212 |
* Returns the TaxonRelationships (of where relationship.type == type, if this arguement is supplied) |
204 | 213 |
* where the supplied taxon is relatedTo. |
... | ... | |
227 | 236 |
*/ |
228 | 237 |
public List<TaxonRelationship> listFromTaxonRelationships(Taxon taxon, TaxonRelationshipType type, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths); |
229 | 238 |
|
239 |
|
|
230 | 240 |
/** |
231 | 241 |
* Returns the TaxonRelationships (of where relationship.type == type, if this argument is supplied) |
232 | 242 |
* where the supplied taxon is relatedFrom. |
... | ... | |
345 | 355 |
public int countAllRelationships(); |
346 | 356 |
|
347 | 357 |
public List<TaxonNameBase> findIdenticalTaxonNames(List<String> propertyPath); |
358 |
public List<TaxonNameBase> findIdenticalTaxonNameIds(List<String> propertyPath); |
|
348 | 359 |
public String getPhylumName(TaxonNameBase name); |
360 |
|
|
361 |
public long deleteSynonymRelationships(Synonym syn); |
|
362 |
/** |
|
363 |
* Returns the SynonymRelationships (of where relationship.type == type, if this argument is supplied) |
|
364 |
* depending on direction, where the supplied taxon is relatedTo or the supplied synonym is relatedFrom. |
|
365 |
* |
|
366 |
* @param taxonBase The taxon or synonym that is relatedTo or relatedFrom |
|
367 |
* @param type The type of SynonymRelationship (can be null) |
|
368 |
* @param pageSize The maximum number of relationships returned (can be null for all relationships) |
|
369 |
* @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based) |
|
370 |
* @param orderHints Properties to order by |
|
371 |
* @param propertyPaths Properties to initialize in the returned entities, following the syntax described in {@link BeanInitializer#initialize(Object, List)} |
|
372 |
* @param direction The direction of the relationship |
|
373 |
* @return a List of SynonymRelationship instances |
|
374 |
*/ |
|
375 |
public List<SynonymRelationship> listSynonymRelationships( |
|
376 |
TaxonBase taxonBase, SynonymRelationshipType type, Integer pageSize, Integer pageNumber, |
|
377 |
List<OrderHint> orderHints, List<String> propertyPaths, Direction direction); |
|
349 | 378 |
} |
Also available in: Unified diff
merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk