X-Git-Url: https://dev.e-taxonomy.eu/gitweb/cdmlib.git/blobdiff_plain/f3ba008a16825a33ae07ac16a6bcaf02437bd411..96e3416d946aaf1d06e72ffbc83e2db8aa2e6045:/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IDescriptionService.java diff --git a/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IDescriptionService.java b/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IDescriptionService.java index e6611878fa..3dc5ac84dd 100644 --- a/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IDescriptionService.java +++ b/cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IDescriptionService.java @@ -36,73 +36,6 @@ import eu.etaxonomy.cdm.persistence.dao.BeanInitializer; import eu.etaxonomy.cdm.persistence.query.OrderHint; public interface IDescriptionService extends IIdentifiableEntityService { - - /** - * @return - */ - // FIXME candidate for harmonization? findByUuid - public DescriptionBase getDescriptionBaseByUuid(UUID uuid); - - /** - * Persists a Description - * @param description - * @return - */ - // FIXME candidate for harmonization? save - public UUID saveDescription(DescriptionBase description); - - /** - * Persists a FeatureTree - * @param tree - * @return - */ - public UUID saveFeatureTree(FeatureTree tree); - // FIXME could you handle the feature data elements using @Cascade? - public void saveFeatureDataAll(Collection featureData); - public Map saveFeatureTreeAll(Collection trees); - public Map saveFeatureNodeAll(Collection nodes); - - /** - * Gets a FeatureTree instance matching the supplied uuid - * - * @param uuid the uuid of the FeatureTree of interest - * @return a FeatureTree, or null if the FeatureTree does not exist - */ - public FeatureTree getFeatureTreeByUuid(UUID uuid); - - /** - * Finds the feature tree specified by the uuid parameter and - * recursively initializes all bean properties given in the - * propertyPaths parameter. - *

- * For detailed description and examples please refer to: - * {@link BeanInitializer#initialize(Object, List)} - * - * @param uuid - * @param propertyPaths properties to initialize - * @return - */ - public FeatureTree loadFeatureTree(UUID uuid, List propertyPaths); - - /** - * Finds the feature node specified by the uuid parameter and - * recursively initializes all bean properties given in the - * propertyPaths parameter. - *

- * For detailed description and examples please refer to: - * {@link BeanInitializer#initialize(Object, List)} - * - * @param uuid - * @param propertyPaths properties to initialize - * @return - */ - public FeatureNode loadFeatureNode(UUID uuid, List propertyPaths); - public List getFeatureNodesAll(); - public List getFeaturesAll(); - - public List getFeatureTreesAll(List propertyPaths); - public List getFeatureNodesAll(List propertyPaths); - public List getFeaturesAll(List propertyPaths); /** * @@ -110,7 +43,7 @@ public interface IDescriptionService extends IIdentifiableEntityService getDefaultFeatureVocabulary(); - //public TermVocabulary getFeatureVocabulary(); + /** * @deprecated use TermService#getVocabulary(VocabularyType) instead */ @@ -153,7 +86,7 @@ public interface IDescriptionService extends IIdentifiableEntityService, filtered using the following parameters + * List the descriptions of type , filtered using the following parameters * * @param type The type of description returned (Taxon, TaxonName, or Specimen) * @param hasMedia Restrict the description to those that do (true) or don't (false) contain elements that have one or more media (can be null) @@ -165,7 +98,7 @@ public interface IDescriptionService extends IIdentifiableEntityService Pager listDescriptions(Class type, Boolean hasMedia, Boolean hasText, Set feature, Integer pageSize, Integer pageNumber, List orderHints, List propertyPaths); + public Pager page(Class type, Boolean hasMedia, Boolean hasText, Set feature, Integer pageSize, Integer pageNumber, List orderHints, List propertyPaths); /** * Count the descriptions of type , filtered using the following parameters @@ -176,7 +109,7 @@ public interface IDescriptionService extends IIdentifiableEntityServiceelements which are scoped by one of the Features passed (can be null or empty) * @return a count of DescriptionBase instances */ - public int countDescriptions(Class type, Boolean hasImages, Boolean hasText, Set feature); + public int count(Class type, Boolean hasImages, Boolean hasText, Set feature); /** * Returns description elements of type , belonging to a given description, optionally filtered by one or more features @@ -184,12 +117,13 @@ public interface IDescriptionService extends IIdentifiableEntityService Pager getDescriptionElements(DescriptionBase description,Set features, Class type, Integer pageSize, Integer pageNumber, List propertyPaths); + public Pager getDescriptionElements(DescriptionBase description,Set features, Class type, Integer pageSize, Integer pageNumber, List propertyPaths); /** * Returns a List of TaxonDescription instances, optionally filtered by parameters passed to this method @@ -244,7 +178,7 @@ public interface IDescriptionService extends IIdentifiableEntityServiceApache Lucene - Query Parser Syntax */ - public Pager search(Class clazz, String queryString, Integer pageSize, Integer pageNumber, List orderHints, List propertyPaths); + public Pager searchElements(Class clazz, String queryString, Integer pageSize, Integer pageNumber, List orderHints, List propertyPaths); /** * Returns a List of Media that are associated with a given description element