*/
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
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;
/**
* 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;
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