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