Project

General

Profile

Download (2.95 KB) Statistics
| Branch: | Tag: | Revision:
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
/**
16
 * @author pplitzner
17
 \* @since Nov 10, 2014
18
 *
19
 */
20
public class SpecimenDeleteConfigurator extends DeleteConfiguratorBase {
21

    
22
    /**
23
     * If <code>true</code> all sub derivates of the specimen are deleted.
24
     */
25
    private boolean deleteChildren;
26
    /**
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
30
     * the parent
31
     */
32
//    private boolean shiftHierarchyUp;
33
    /**
34
     * If <code>true</code> the {@link SpecimenTypeDesignation} which
35
     * uses the specimen.
36
     */
37
    private boolean deleteFromTypeDesignation;
38
    /**
39
     * If <code>true</code> the
40
     */
41
    private boolean deleteFromIndividualsAssociation;
42
    /**
43
     * If <code>true</code> the specimen is deleted
44
     * from a {@link DescriptionBase} if it is set as "described" specimen.<br>
45
     */
46
    private boolean deleteFromDescription;
47

    
48
    /**
49
     * If <code>true</code> then attached molecular data like amplification results
50
     * and sequences are deleted
51
     */
52
    private boolean isDeleteMolecularData;
53

    
54
    public boolean isDeleteChildren() {
55
        return deleteChildren;
56
    }
57

    
58
    public void setDeleteChildren(boolean deleteChildren) {
59
        this.deleteChildren = deleteChildren;
60
    }
61

    
62
//    public boolean isShiftHierarchyUp() {
63
//        return shiftHierarchyUp;
64
//    }
65
//
66
//    public void setShiftHierarchyUp(boolean shiftHierarchyUp) {
67
//        this.shiftHierarchyUp = shiftHierarchyUp;
68
//    }
69

    
70
    public boolean isDeleteFromTypeDesignation() {
71
        return deleteFromTypeDesignation;
72
    }
73

    
74
    public void setDeleteFromTypeDesignation(boolean deleteFromTypeDesignation) {
75
        this.deleteFromTypeDesignation = deleteFromTypeDesignation;
76
    }
77

    
78
    public boolean isDeleteFromIndividualsAssociation() {
79
        return deleteFromIndividualsAssociation;
80
    }
81

    
82
    public void setDeleteFromIndividualsAssociation(boolean deleteFromIndividualsAssociation) {
83
        this.deleteFromIndividualsAssociation = deleteFromIndividualsAssociation;
84
    }
85

    
86
    public boolean isDeleteFromDescription() {
87
        return deleteFromDescription;
88
    }
89

    
90
    public void setDeleteFromDescription(boolean deleteFromDescription) {
91
        this.deleteFromDescription = deleteFromDescription;
92
    }
93

    
94
    public boolean isDeleteMolecularData() {
95
        return isDeleteMolecularData;
96
    }
97

    
98
    public void setDeleteMolecularData(boolean isDeleteMolecularData) {
99
        this.isDeleteMolecularData = isDeleteMolecularData;
100
    }
101

    
102
}
(18-18/24)