3 * Copyright (C) 2014 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.api
.service
.config
;
12 import eu
.etaxonomy
.cdm
.model
.description
.DescriptionBase
;
13 import eu
.etaxonomy
.cdm
.model
.description
.SpecimenDescription
;
14 import eu
.etaxonomy
.cdm
.model
.name
.SpecimenTypeDesignation
;
22 public class SpecimenDeleteConfigurator
extends DeleteConfiguratorBase
{
25 * If <code>true</code> all sub derivates of the specimen are deleted.
27 private boolean deleteChildren
;
29 * TODO: is this needed? For which use case?
30 * Shifts the sub derivates of the deleted specimen to the parents of the
31 * deleted specimen i.e. adds the sub derivates to the derivation event of
34 // private boolean shiftHierarchyUp;
36 * If <code>true</code> the {@link SpecimenTypeDesignation} which
39 private boolean deleteFromTypeDesignation
;
41 * If <code>true</code> the
43 private boolean deleteFromIndividualsAssociation
;
45 * If <code>true</code> the specimen is deleted
46 * from a {@link DescriptionBase} if it is set as "described" specimen.<br>
47 * If the description is a {@link SpecimenDescription} then it is also deleted
49 private boolean deleteFromDescription
;
52 * If <code>true</code> then attached molecular data like amplification results
53 * and sequences are deleted
55 private boolean isDeleteMolecularData
;
57 public boolean isDeleteChildren() {
58 return deleteChildren
;
61 public void setDeleteChildren(boolean deleteChildren
) {
62 this.deleteChildren
= deleteChildren
;
65 // public boolean isShiftHierarchyUp() {
66 // return shiftHierarchyUp;
69 // public void setShiftHierarchyUp(boolean shiftHierarchyUp) {
70 // this.shiftHierarchyUp = shiftHierarchyUp;
73 public boolean isDeleteFromTypeDesignation() {
74 return deleteFromTypeDesignation
;
77 public void setDeleteFromTypeDesignation(boolean deleteFromTypeDesignation
) {
78 this.deleteFromTypeDesignation
= deleteFromTypeDesignation
;
81 public boolean isDeleteFromIndividualsAssociation() {
82 return deleteFromIndividualsAssociation
;
85 public void setDeleteFromIndividualsAssociation(boolean deleteFromIndividualsAssociation
) {
86 this.deleteFromIndividualsAssociation
= deleteFromIndividualsAssociation
;
89 public boolean isDeleteFromDescription() {
90 return deleteFromDescription
;
93 public void setDeleteFromDescription(boolean deleteFromDescription
) {
94 this.deleteFromDescription
= deleteFromDescription
;
97 public boolean isDeleteMolecularData() {
98 return isDeleteMolecularData
;
101 public void setDeleteMolecularData(boolean isDeleteMolecularData
) {
102 this.isDeleteMolecularData
= isDeleteMolecularData
;