2 * Copyright (C) 2014 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.cdm
.api
.service
.config
;
11 import eu
.etaxonomy
.cdm
.model
.description
.DescriptionBase
;
12 import eu
.etaxonomy
.cdm
.model
.name
.SpecimenTypeDesignation
;
18 public class SpecimenDeleteConfigurator
extends DeleteConfiguratorBase
{
20 private static final long serialVersionUID
= 5306732384161520246L;
23 * If <code>true</code> all sub derivates of the specimen are deleted.
25 private boolean deleteChildren
;
28 // * TODO: is this needed? For which use case?
29 // * Shifts the sub derivates of the deleted specimen to the parents of the
30 // * deleted specimen i.e. adds the sub derivates to the derivation event of
33 // private boolean shiftHierarchyUp;
35 * If <code>true</code> the {@link SpecimenTypeDesignation} which
38 private boolean deleteFromTypeDesignation
;
40 * If <code>true</code> the
42 private boolean deleteFromIndividualsAssociation
;
44 * If <code>true</code> the specimen is deleted
45 * from a {@link DescriptionBase} if it is set as "described" specimen.<br>
47 private boolean deleteFromDescription
;
50 * If <code>true</code> then attached molecular data like amplification results
51 * and sequences are deleted
53 private boolean isDeleteMolecularData
;
55 public boolean isDeleteChildren() {
56 return deleteChildren
;
58 public void setDeleteChildren(boolean deleteChildren
) {
59 this.deleteChildren
= deleteChildren
;
62 // public boolean isShiftHierarchyUp() {
63 // return shiftHierarchyUp;
65 // public void setShiftHierarchyUp(boolean shiftHierarchyUp) {
66 // this.shiftHierarchyUp = shiftHierarchyUp;
69 public boolean isDeleteFromTypeDesignation() {
70 return deleteFromTypeDesignation
;
72 public void setDeleteFromTypeDesignation(boolean deleteFromTypeDesignation
) {
73 this.deleteFromTypeDesignation
= deleteFromTypeDesignation
;
76 public boolean isDeleteFromIndividualsAssociation() {
77 return deleteFromIndividualsAssociation
;
79 public void setDeleteFromIndividualsAssociation(boolean deleteFromIndividualsAssociation
) {
80 this.deleteFromIndividualsAssociation
= deleteFromIndividualsAssociation
;
83 public boolean isDeleteFromDescription() {
84 return deleteFromDescription
;
86 public void setDeleteFromDescription(boolean deleteFromDescription
) {
87 this.deleteFromDescription
= deleteFromDescription
;
90 public boolean isDeleteMolecularData() {
91 return isDeleteMolecularData
;
93 public void setDeleteMolecularData(boolean isDeleteMolecularData
) {
94 this.isDeleteMolecularData
= isDeleteMolecularData
;