Project

General

Profile

Download (3.02 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
    private static final long serialVersionUID = 5306732384161520246L;
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
     */
48
    private boolean deleteFromDescription;
49

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

    
56
    public boolean isDeleteChildren() {
57
        return deleteChildren;
58
    }
59

    
60
    public void setDeleteChildren(boolean deleteChildren) {
61
        this.deleteChildren = deleteChildren;
62
    }
63

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

    
72
    public boolean isDeleteFromTypeDesignation() {
73
        return deleteFromTypeDesignation;
74
    }
75

    
76
    public void setDeleteFromTypeDesignation(boolean deleteFromTypeDesignation) {
77
        this.deleteFromTypeDesignation = deleteFromTypeDesignation;
78
    }
79

    
80
    public boolean isDeleteFromIndividualsAssociation() {
81
        return deleteFromIndividualsAssociation;
82
    }
83

    
84
    public void setDeleteFromIndividualsAssociation(boolean deleteFromIndividualsAssociation) {
85
        this.deleteFromIndividualsAssociation = deleteFromIndividualsAssociation;
86
    }
87

    
88
    public boolean isDeleteFromDescription() {
89
        return deleteFromDescription;
90
    }
91

    
92
    public void setDeleteFromDescription(boolean deleteFromDescription) {
93
        this.deleteFromDescription = deleteFromDescription;
94
    }
95

    
96
    public boolean isDeleteMolecularData() {
97
        return isDeleteMolecularData;
98
    }
99

    
100
    public void setDeleteMolecularData(boolean isDeleteMolecularData) {
101
        this.isDeleteMolecularData = isDeleteMolecularData;
102
    }
103

    
104
}
(22-22/30)