Merge branch 'release/5.45.0'
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / config / SpecimenDeleteConfigurator.java
1 /**
2 * Copyright (C) 2014 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9 package eu.etaxonomy.cdm.api.service.config;
10
11 import eu.etaxonomy.cdm.model.description.DescriptionBase;
12 import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation;
13
14 /**
15 * @author pplitzner
16 * @since Nov 10, 2014
17 */
18 public class SpecimenDeleteConfigurator extends DeleteConfiguratorBase {
19
20 private static final long serialVersionUID = 5306732384161520246L;
21
22 /**
23 * If <code>true</code> all sub derivates of the specimen are deleted.
24 */
25 private boolean deleteChildren;
26
27 // /**
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
31 // * the parent
32 // */
33 // private boolean shiftHierarchyUp;
34 /**
35 * If <code>true</code> the {@link SpecimenTypeDesignation} which
36 * uses the specimen.
37 */
38 private boolean deleteFromTypeDesignation;
39 /**
40 * If <code>true</code> the
41 */
42 private boolean deleteFromIndividualsAssociation;
43 /**
44 * If <code>true</code> the specimen is deleted
45 * from a {@link DescriptionBase} if it is set as "described" specimen.<br>
46 */
47 private boolean deleteFromDescription;
48
49 /**
50 * If <code>true</code> then attached molecular data like amplification results
51 * and sequences are deleted
52 */
53 private boolean isDeleteMolecularData;
54
55 public boolean isDeleteChildren() {
56 return deleteChildren;
57 }
58 public void setDeleteChildren(boolean deleteChildren) {
59 this.deleteChildren = deleteChildren;
60 }
61
62 // public boolean isShiftHierarchyUp() {
63 // return shiftHierarchyUp;
64 // }
65 // public void setShiftHierarchyUp(boolean shiftHierarchyUp) {
66 // this.shiftHierarchyUp = shiftHierarchyUp;
67 // }
68
69 public boolean isDeleteFromTypeDesignation() {
70 return deleteFromTypeDesignation;
71 }
72 public void setDeleteFromTypeDesignation(boolean deleteFromTypeDesignation) {
73 this.deleteFromTypeDesignation = deleteFromTypeDesignation;
74 }
75
76 public boolean isDeleteFromIndividualsAssociation() {
77 return deleteFromIndividualsAssociation;
78 }
79 public void setDeleteFromIndividualsAssociation(boolean deleteFromIndividualsAssociation) {
80 this.deleteFromIndividualsAssociation = deleteFromIndividualsAssociation;
81 }
82
83 public boolean isDeleteFromDescription() {
84 return deleteFromDescription;
85 }
86 public void setDeleteFromDescription(boolean deleteFromDescription) {
87 this.deleteFromDescription = deleteFromDescription;
88 }
89
90 public boolean isDeleteMolecularData() {
91 return isDeleteMolecularData;
92 }
93 public void setDeleteMolecularData(boolean isDeleteMolecularData) {
94 this.isDeleteMolecularData = isDeleteMolecularData;
95 }
96 }