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
;
20 public class SpecimenDeleteConfigurator
extends DeleteConfiguratorBase
{
23 * If <code>true</code> all sub derivates of the specimen are deleted.
25 private boolean deleteChildren
;
27 * TODO: is this needed? For which use case?
28 * Shifts the sub derivates of the deleted specimen to the parents of the
29 * deleted specimen i.e. adds the sub derivates to the derivation event of
32 // private boolean shiftHierarchyUp;
34 * If <code>true</code> the {@link SpecimenTypeDesignation} which
37 private boolean deleteFromTypeDesignation
;
39 * If <code>true</code> the
41 private boolean deleteFromIndividualsAssociation
;
43 * If <code>true</code> the specimen is deleted
44 * from a {@link DescriptionBase} if it is set as "described" specimen.<br>
46 private boolean deleteFromDescription
;
49 * If <code>true</code> then attached molecular data like amplification results
50 * and sequences are deleted
52 private boolean isDeleteMolecularData
;
54 public boolean isDeleteChildren() {
55 return deleteChildren
;
58 public void setDeleteChildren(boolean deleteChildren
) {
59 this.deleteChildren
= deleteChildren
;
62 // public boolean isShiftHierarchyUp() {
63 // return shiftHierarchyUp;
66 // public void setShiftHierarchyUp(boolean shiftHierarchyUp) {
67 // this.shiftHierarchyUp = shiftHierarchyUp;
70 public boolean isDeleteFromTypeDesignation() {
71 return deleteFromTypeDesignation
;
74 public void setDeleteFromTypeDesignation(boolean deleteFromTypeDesignation
) {
75 this.deleteFromTypeDesignation
= deleteFromTypeDesignation
;
78 public boolean isDeleteFromIndividualsAssociation() {
79 return deleteFromIndividualsAssociation
;
82 public void setDeleteFromIndividualsAssociation(boolean deleteFromIndividualsAssociation
) {
83 this.deleteFromIndividualsAssociation
= deleteFromIndividualsAssociation
;
86 public boolean isDeleteFromDescription() {
87 return deleteFromDescription
;
90 public void setDeleteFromDescription(boolean deleteFromDescription
) {
91 this.deleteFromDescription
= deleteFromDescription
;
94 public boolean isDeleteMolecularData() {
95 return isDeleteMolecularData
;
98 public void setDeleteMolecularData(boolean isDeleteMolecularData
) {
99 this.isDeleteMolecularData
= isDeleteMolecularData
;