Project

General

Profile

Download (2.96 KB) Statistics
| Branch: | Tag: | Revision:
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.name.SpecimenTypeDesignation;
14

    
15

    
16
/**
17
 * @author pplitzner
18
 * @date Nov 10, 2014
19
 *
20
 */
21
public class SpecimenDeleteConfigurator extends DeleteConfiguratorBase {
22

    
23
    /**
24
     * If <code>true</code> all sub derivates of the specimen are deleted.
25
     */
26
    private boolean deleteChildren;
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

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

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

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

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

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

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

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

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

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

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

    
103
}
(15-15/21)