Project

General

Profile

Download (2.89 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 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 java.io.Serializable;
12
import java.util.UUID;
13

    
14
import eu.etaxonomy.cdm.common.monitor.IProgressMonitor;
15

    
16
/**
17
 * Configurator for the setSecundumForSubtree operation.
18
 *
19
 * @author a.mueller
20
 * @date 06.01.2017
21
 *
22
 */
23
public abstract class ForSubtreeConfiguratorBase implements Serializable{//<CONFIG extends ImportConfiguratorBase>
24
//        extends ImportConfiguratorBase<DefaultImportState<CONFIG>, Object>
25
//        implements IImportConfigurator{
26

    
27
    private static final long serialVersionUID = 2756961021157678305L;
28

    
29
    private UUID subtreeUuid;
30
    private boolean includeAcceptedTaxa = true;
31
    private boolean includeSynonyms = true;
32
    private boolean includeSharedTaxa = true;
33
    private IProgressMonitor monitor;
34

    
35
    /**
36
     * @param monitor the monitor to set
37
     */
38
    public void setMonitor(IProgressMonitor monitor) {
39
        this.monitor = monitor;
40
    }
41

    
42
    /**
43
     * @param subtreeUuid
44
     * @param newSecundum
45
     */
46
    public ForSubtreeConfiguratorBase(UUID subtreeUuid, IProgressMonitor monitor) {
47
//        super(null);
48
        this.subtreeUuid = subtreeUuid;
49
        this.monitor = monitor;
50
    }
51

    
52
    /**
53
     * @param subtreeUuid
54
     * @param newSecundum
55
     */
56
    public ForSubtreeConfiguratorBase(UUID subtreeUuid) {
57
//        super(null);
58
        this.subtreeUuid = subtreeUuid;
59
    }
60

    
61
    public UUID getSubtreeUuid() {
62
        return subtreeUuid;
63
    }
64
    public void setSubtreeUuid(UUID subtreeUuid) {
65
        this.subtreeUuid = subtreeUuid;
66
    }
67

    
68

    
69
    public boolean isIncludeSynonyms() {
70
        return includeSynonyms;
71
    }
72
    public void setIncludeSynonyms(boolean includeSynonyms) {
73
        this.includeSynonyms = includeSynonyms;
74
    }
75

    
76
    public boolean isIncludeAcceptedTaxa() {
77
        return includeAcceptedTaxa;
78
    }
79
    public void setIncludeAcceptedTaxa(boolean includeAcceptedTaxa) {
80
        this.includeAcceptedTaxa = includeAcceptedTaxa;
81
    }
82

    
83
    public boolean isIncludeSharedTaxa() {
84
        return includeSharedTaxa;
85
    }
86
    public void setIncludeSharedTaxa(boolean includeSharedTaxa) {
87
        this.includeSharedTaxa = includeSharedTaxa;
88
    }
89

    
90
    /**
91
     * @return
92
     */
93
    public IProgressMonitor getMonitor() {
94

    
95
        return monitor;
96
    }
97

    
98
//    /**
99
//     * {@inheritDoc}
100
//     */
101
//    @SuppressWarnings("rawtypes")
102
//    @Override
103
//    public DefaultImportState getNewState() {
104
//      return new DefaultImportState(this);
105
//    }
106

    
107
//    /**
108
//     * {@inheritDoc}
109
//     */
110
//    @Override
111
//    public Reference getSourceReference() {
112
//        return null;
113
//    }
114
//
115
//    @Override
116
//    public boolean isValid(){
117
//        return true;
118
//    }
119

    
120
}
(6-6/24)