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.io.bogota;
|
10
|
|
11
|
import java.net.URI;
|
12
|
|
13
|
import eu.etaxonomy.cdm.database.ICdmDataSource;
|
14
|
import eu.etaxonomy.cdm.io.common.ImportStateBase;
|
15
|
import eu.etaxonomy.cdm.io.excel.common.ExcelImportConfiguratorBase;
|
16
|
import eu.etaxonomy.cdm.io.mexico.SimpleExcelTaxonImportState;
|
17
|
import eu.etaxonomy.cdm.model.reference.Reference;
|
18
|
|
19
|
/**
|
20
|
* @author a.mueller
|
21
|
* @since 21.04.2017
|
22
|
*/
|
23
|
public class BogotaChecklistImportConfigurator extends ExcelImportConfiguratorBase{
|
24
|
|
25
|
private static final long serialVersionUID = 5988430626932820343L;
|
26
|
|
27
|
private Reference secReference;
|
28
|
|
29
|
/**
|
30
|
* @param source
|
31
|
* @param cdmDestination
|
32
|
* @return
|
33
|
*/
|
34
|
public static BogotaChecklistImportConfigurator NewInstance(URI source, ICdmDataSource destination) {
|
35
|
return new BogotaChecklistImportConfigurator(source, destination);
|
36
|
}
|
37
|
|
38
|
private BogotaChecklistImportConfigurator(URI uri, ICdmDataSource destination) {
|
39
|
super(uri, destination);
|
40
|
}
|
41
|
|
42
|
@Override
|
43
|
public ImportStateBase getNewState() {
|
44
|
return new SimpleExcelTaxonImportState<>(this);
|
45
|
}
|
46
|
|
47
|
@SuppressWarnings("unchecked")
|
48
|
@Override
|
49
|
protected void makeIoClassList() {
|
50
|
ioClassList = new Class[]{
|
51
|
BogotaChecklistTaxonImport.class,
|
52
|
};
|
53
|
}
|
54
|
|
55
|
public Reference getSecReference() {
|
56
|
return secReference;
|
57
|
}
|
58
|
public void setSecReference(Reference secReference) {
|
59
|
this.secReference = secReference;
|
60
|
}
|
61
|
|
62
|
}
|