Fix sequence and single read deletion #5200
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / IOccurrenceService.java
index f57b7239fb42762d960cfa991055abc6d6d7e38b..3a10ff2eebfecbe5704250834fc98ba35503103e 100644 (file)
@@ -29,7 +29,6 @@ import eu.etaxonomy.cdm.api.service.dto.PreservedSpecimenDTO;
 import eu.etaxonomy.cdm.api.service.pager.Pager;\r
 import eu.etaxonomy.cdm.api.service.search.SearchResult;\r
 import eu.etaxonomy.cdm.api.service.util.TaxonRelationshipEdge;\r
-import eu.etaxonomy.cdm.model.common.CdmBase;\r
 import eu.etaxonomy.cdm.model.common.ICdmBase;\r
 import eu.etaxonomy.cdm.model.common.Language;\r
 import eu.etaxonomy.cdm.model.description.DescriptionBase;\r
@@ -38,10 +37,8 @@ import eu.etaxonomy.cdm.model.description.IndividualsAssociation;
 import eu.etaxonomy.cdm.model.description.TaxonDescription;\r
 import eu.etaxonomy.cdm.model.location.Country;\r
 import eu.etaxonomy.cdm.model.media.Media;\r
-import eu.etaxonomy.cdm.model.molecular.AmplificationResult;\r
 import eu.etaxonomy.cdm.model.molecular.DnaSample;\r
 import eu.etaxonomy.cdm.model.molecular.Sequence;\r
-import eu.etaxonomy.cdm.model.molecular.SingleRead;\r
 import eu.etaxonomy.cdm.model.name.HomotypicalGroup;\r
 import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation;\r
 import eu.etaxonomy.cdm.model.occurrence.DerivationEvent;\r
@@ -390,24 +387,6 @@ public interface IOccurrenceService extends IIdentifiableEntityService<SpecimenO
      */\r
     public DeleteResult delete(SpecimenOrObservationBase<?> specimen, SpecimenDeleteConfigurator config);\r
 \r
-    /**\r
-     * Deletes the specified specimen and all sub derivates.<br>\r
-     * <b>Note:</b> Be sure to allow child deletion in the config.\r
-     * @param from the specimen which should be deleted with all its sub derivates\r
-     * @param config the {@link SpecimenDeleteConfigurator} to specify how the deletion should be handled\r
-     * @return the {@link DeleteResult} which holds information about the outcome of this operation\r
-     */\r
-    public DeleteResult deleteDerivateHierarchy(CdmBase from, SpecimenDeleteConfigurator config);\r
-\r
-    /**\r
-     * Deletes the specified specimen and all sub derivates by first loading the corresponding uuids\r
-     * and then calling {@link #deleteDerivateHierarchy(CdmBase, SpecimenDeleteConfigurator) deleteDerivateHierarchy}\r
-     * @param fromUuid uuid of the specimen which should be deleted with all its sub derivates\r
-     * @param config the {@link SpecimenDeleteConfigurator} to specify how the deletion should be handled\r
-     * @return {@link DeleteResult} which holds information about the outcome of this operation\r
-     */\r
-    public DeleteResult deleteDerivateHierarchy(UUID fromUuid, SpecimenDeleteConfigurator config);\r
-\r
     /**\r
      * Retrieves all {@link IndividualsAssociation} with the given specimen.<br>\r
      * @param specimen the specimen for which the associations are retrieved\r
@@ -521,21 +500,4 @@ public interface IOccurrenceService extends IIdentifiableEntityService<SpecimenO
      */\r
     public List<DerivedUnit> getAllChildDerivatives(SpecimenOrObservationBase<?> specimen);\r
 \r
-    /**\r
-     * Deletes a {@link SingleRead} from the given {@link Sequence} and its {@link AmplificationResult}.\r
-     * @param singleRead the single read to delete\r
-     * @param sequence the sequence to which the single read belongs\r
-     * @return the {@link DeleteResult} which holds information about the outcome of this operation\r
-     */\r
-    public DeleteResult deleteSingleRead(SingleRead singleRead, Sequence sequence);\r
-\r
-    /**\r
-     * Deletes a {@link SingleRead} from the given {@link Sequence} and its {@link AmplificationResult},\r
-     * by first loading the corresponding uuids and then calling {@link #deleteSingleRead(SingleRead, Sequence) deleteSingleRead}\r
-     * @param singleReadUuid uuid of the single read to delete\r
-     * @param sequenceUuid uuid of the sequence to which the single read belongs\r
-     * @return the {@link DeleteResult} which holds information about the outcome of this operation\r
-     */\r
-    public DeleteResult deleteSingleRead(UUID singleReadUuid, UUID sequenceUuid);\r
-\r
 }\r