X-Git-Url: https://dev.e-taxonomy.eu/gitweb/cdmlib.git/blobdiff_plain/a625a6598f9c902891c7cfe022eac02efe12b3a8..8c1dd6181fd3fb247ddb85247d3a1ea3d35f84a5:/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IReferenceService.java diff --git a/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IReferenceService.java b/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IReferenceService.java index a731a432a0..a92543e516 100644 --- a/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IReferenceService.java +++ b/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IReferenceService.java @@ -14,16 +14,17 @@ import java.util.List; import eu.etaxonomy.cdm.api.service.pager.Pager; import eu.etaxonomy.cdm.model.common.UuidAndTitleCache; -import eu.etaxonomy.cdm.model.reference.ReferenceBase; +import eu.etaxonomy.cdm.model.reference.Reference; +import eu.etaxonomy.cdm.model.taxon.TaxonBase; import eu.etaxonomy.cdm.persistence.query.OrderHint; -public interface IReferenceService extends IIdentifiableEntityService { +public interface IReferenceService extends IIdentifiableEntityService { /** - * Returns a Paged List of ReferenceBase instances where the default field matches the String queryString (as interpreted by the Lucene QueryParser) + * Returns a Paged List of Reference instances where the default field matches the String queryString (as interpreted by the Lucene QueryParser) * - * @param clazz filter the results by class (or pass null to return all ReferenceBase instances) + * @param clazz filter the results by class (or pass null to return all Reference instances) * @param queryString * @param pageSize The maximum number of references returned (can be null for all matching references) * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based) @@ -32,10 +33,10 @@ public interface IReferenceService extends IIdentifiableEntityServiceApache Lucene - Query Parser Syntax */ - public Pager search(Class clazz, String queryString, Integer pageSize, Integer pageNumber, List orderHints, List propertyPaths); + public Pager search(Class clazz, String queryString, Integer pageSize, Integer pageNumber, List orderHints, List propertyPaths); /** * Returns a map that holds uuid, titleCache pairs of all references in the current database @@ -43,8 +44,41 @@ public interface IReferenceService extends IIdentifiableEntityServiceMap containing uuid and titleCache of references */ - public List> getUuidAndTitle(); + public List> getUuidAndTitle(); - public List getAllReferencesForPublishing(); - public List getAllNomenclaturalReferences(); + /** + * TODO candidate for harmonization: rename to listForPublishing + * @return + */ + public List getAllReferencesForPublishing(); + + /** + * TODO candidate for harmonization: rename to listNomenclaturalReferences + * @return + */ + public List getAllNomenclaturalReferences(); + + /** + * returns + * + *
    + *
  1. all taxa directly covered by this reference
  2. + *
  3. all taxa covered by the according in references of this reference
  4. + *
+ * + * searches for taxa using the following relations: + *
    + *
  • taxon.name.nomenclaturalreference
  • + *
  • taxon.descriptions.descriptionElement.sources.citation
  • + *
  • taxon.descriptions.descriptionSources
  • + *
  • taxon.name.descriptions.descriptionElement.sources
  • + *
  • taxon.name.descriptions.descriptionSources
  • + *
+ * + * @param reference + * @param includeSubordinateReferences TODO + * @param propertyPaths + * @return + */ + public List listCoveredTaxa(Reference reference, boolean includeSubordinateReferences, List propertyPaths); }