merge trunk into model change 3.6
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / config / SpecimenDeleteConfigurator.java
index 27bfa48a1fd95718a725fe673c62b69c30ef5949..bb7b15ba26cd221cd53c02004e4e227276238ff3 100644 (file)
@@ -9,6 +9,10 @@
 */
 package eu.etaxonomy.cdm.api.service.config;
 
+import eu.etaxonomy.cdm.model.description.DescriptionBase;
+import eu.etaxonomy.cdm.model.description.SpecimenDescription;
+import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation;
+
 
 /**
  * @author pplitzner
@@ -18,7 +22,7 @@ package eu.etaxonomy.cdm.api.service.config;
 public class SpecimenDeleteConfigurator extends DeleteConfiguratorBase {
 
     /**
-     * Deletes all sub derivates of the specimen
+     * If <code>true</code> all sub derivates of the specimen are deleted.
      */
     private boolean deleteChildren;
     /**
@@ -28,8 +32,27 @@ public class SpecimenDeleteConfigurator extends DeleteConfiguratorBase {
      * the parent
      */
 //    private boolean shiftHierarchyUp;
+    /**
+     * If <code>true</code> the {@link SpecimenTypeDesignation} which
+     * uses the specimen.
+     */
     private boolean deleteFromTypeDesignation;
+    /**
+     * If <code>true</code> the
+     */
     private boolean deleteFromIndividualsAssociation;
+    /**
+     * If <code>true</code> the specimen is deleted
+     * from a {@link DescriptionBase} if it is set as "described" specimen.<br>
+     * If the description is a {@link SpecimenDescription} then it is also deleted
+     */
+    private boolean deleteFromDescription;
+
+    /**
+     * If <code>true</code> then attached molecular data like amplification results
+     * and sequences are deleted
+     */
+    private boolean isDeleteMolecularData;
 
     public boolean isDeleteChildren() {
         return deleteChildren;
@@ -63,4 +86,20 @@ public class SpecimenDeleteConfigurator extends DeleteConfiguratorBase {
         this.deleteFromIndividualsAssociation = deleteFromIndividualsAssociation;
     }
 
+    public boolean isDeleteFromDescription() {
+        return deleteFromDescription;
+    }
+
+    public void setDeleteFromDescription(boolean deleteFromDescription) {
+        this.deleteFromDescription = deleteFromDescription;
+    }
+
+    public boolean isDeleteMolecularData() {
+        return isDeleteMolecularData;
+    }
+
+    public void setDeleteMolecularData(boolean isDeleteMolecularData) {
+        this.isDeleteMolecularData = isDeleteMolecularData;
+    }
+
 }
\ No newline at end of file