Project

General

Profile

Download (2.44 KB) Statistics
| Branch: | Revision:
1
/**
2
* Copyright (C) 2019 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.io.pesi.fauEu2Cdm;
10

    
11
import eu.etaxonomy.cdm.database.ICdmDataSource;
12
import eu.etaxonomy.cdm.filter.TaxonNodeFilter;
13
import eu.etaxonomy.cdm.io.common.ITaxonNodeOutStreamPartitioner;
14
import eu.etaxonomy.cdm.io.common.ImportConfiguratorBase;
15
import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer;
16
import eu.etaxonomy.cdm.model.reference.Reference;
17

    
18
/**
19
 * @author a.mueller
20
 * @since 17.08.2019
21
 */
22
public class FauEu2CdmImportConfigurator
23
        extends ImportConfiguratorBase<FauEu2CdmImportState, ICdmDataSource>{
24

    
25
    private static final long serialVersionUID = -5452466831212722546L;
26

    
27
    private static IInputTransformer myTransformer = null;
28

    
29
    private TaxonNodeFilter taxonNodeFilter = new TaxonNodeFilter();
30
    private ITaxonNodeOutStreamPartitioner partitioner;
31
    private boolean concurrent = false;
32

    
33
    public static FauEu2CdmImportConfigurator NewInstance(ICdmDataSource source, ICdmDataSource destination) {
34
        return new FauEu2CdmImportConfigurator(source, destination);
35
    }
36

    
37
    public FauEu2CdmImportConfigurator(ICdmDataSource source, ICdmDataSource destination) {
38
        super(myTransformer);
39
        this.setSource(source);
40
        this.setDestination(destination);
41
    }
42

    
43
    @Override
44
    public FauEu2CdmImportState getNewState() {
45
        return new FauEu2CdmImportState(this);
46
    }
47

    
48
    @SuppressWarnings("unchecked")
49
    @Override
50
    protected void makeIoClassList() {
51
        ioClassList = new Class[]{
52
                FauEu2CdmImport.class ,
53
        };
54
    }
55

    
56
    @Override
57
    @Deprecated
58
    public Reference getSourceReference() {
59
        return null;
60
    }
61

    
62

    
63
    public TaxonNodeFilter getTaxonNodeFilter() {
64
        return taxonNodeFilter;
65
    }
66
    public void setTaxonNodeFilter(TaxonNodeFilter taxonNodeFilter) {
67
        this.taxonNodeFilter = taxonNodeFilter;
68
    }
69

    
70
    public ITaxonNodeOutStreamPartitioner getPartitioner() {
71
        return partitioner;
72
    }
73
    public void setPartitioner(ITaxonNodeOutStreamPartitioner partitioner) {
74
        this.partitioner = partitioner;
75
    }
76

    
77
    public boolean isConcurrent() {
78
        return concurrent;
79
    }
80
    public void setConcurrent(boolean concurrent) {
81
        this.concurrent = concurrent;
82
    }
83

    
84

    
85
}
(3-3/4)