minor
[cdmlib-apps.git] / cdm-eflora / src / main / java / eu / etaxonomy / cdm / io / eflora / centralAfrica / checklist / CentralAfricaChecklistImportConfigurator.java
1 /**
2 * Copyright (C) 2007 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.eflora.centralAfrica.checklist;
10
11 import java.util.UUID;
12
13 import org.apache.logging.log4j.LogManager;
14 import org.apache.logging.log4j.Logger;
15
16 import eu.etaxonomy.cdm.database.ICdmDataSource;
17 import eu.etaxonomy.cdm.io.common.DbImportConfiguratorBase;
18 import eu.etaxonomy.cdm.io.common.Source;
19 import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer;
20 import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
21
22
23 /**
24 * @author a.mueller
25 * @since 20.03.2008
26 */
27 public class CentralAfricaChecklistImportConfigurator
28 extends DbImportConfiguratorBase<CentralAfricaChecklistImportState> {
29
30 private static final long serialVersionUID = 3575836691256409349L;
31 @SuppressWarnings("unused")
32 private static Logger logger = LogManager.getLogger();
33
34 private UUID uuidGenevaReference = UUID.fromString("cf3fd13d-6cad-430c-ab70-7ea841b7159f");
35
36 private String genevaReferenceTitle = null;
37
38 public static CentralAfricaChecklistImportConfigurator NewInstance(Source ermsSource, ICdmDataSource destination){
39 return new CentralAfricaChecklistImportConfigurator(ermsSource, destination);
40 }
41
42 private boolean doVernaculars = true;
43 private boolean doLinks = true;
44 private boolean doNotes = true;
45 private boolean doImages = true;
46 private DO_REFERENCES doReferences = DO_REFERENCES.ALL;
47 private boolean doTaxa = true;
48
49
50 private static IInputTransformer defaultTransformer = new CentralAfricaChecklistTransformer();
51
52 @Override
53 protected void makeIoClassList(){
54 ioClassList = new Class[]{
55 //ErmsGeneralImportValidator.class
56 CentralAfricaChecklistReferenceImport.class ,
57 CentralAfricaChecklistTaxonImport.class,
58 CentralAfricaChecklistSynonymImport.class
59 };
60 }
61
62
63 /* (non-Javadoc)
64 * @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getNewState()
65 */
66 @Override
67 public CentralAfricaChecklistImportState getNewState() {
68 return new CentralAfricaChecklistImportState(this);
69 }
70
71
72
73 private CentralAfricaChecklistImportConfigurator(Source source, ICdmDataSource destination) {
74 super(source, destination,NomenclaturalCode.ICNAFP, defaultTransformer); //default for FdAC
75 }
76
77
78 @Override
79 public Source getSource() {
80 return super.getSource();
81 }
82 @Override
83 public void setSource(Source berlinModelSource) {
84 super.setSource(berlinModelSource);
85 }
86
87 /**
88 * @param doVernaculars the doVernaculars to set
89 */
90 public void setDoVernaculars(boolean doVernaculars) {
91 this.doVernaculars = doVernaculars;
92 }
93
94 /**
95 * @return the doVernaculars
96 */
97 public boolean isDoVernaculars() {
98 return doVernaculars;
99 }
100
101
102
103 /**
104 * @param doLinks the doLinks to set
105 */
106 public void setDoLinks(boolean doLinks) {
107 this.doLinks = doLinks;
108 }
109
110
111
112 /**
113 * @return the doLinks
114 */
115 public boolean isDoLinks() {
116 return doLinks;
117 }
118
119
120
121 /**
122 * @param doNotes the doNotes to set
123 */
124 public void setDoNotes(boolean doNotes) {
125 this.doNotes = doNotes;
126 }
127
128
129
130 /**
131 * @return the doNotes
132 */
133 public boolean isDoNotes() {
134 return doNotes;
135 }
136
137
138
139 /**
140 * @param doImages the doImages to set
141 */
142 public void setDoImages(boolean doImages) {
143 this.doImages = doImages;
144 }
145
146
147
148 /**
149 * @return the doImages
150 */
151 public boolean isDoImages() {
152 return doImages;
153 }
154
155
156 public void setUuidGenevaReference(UUID uuidGenevaReference) {
157 this.uuidGenevaReference = uuidGenevaReference;
158 }
159
160
161 public UUID getUuidGenevaReference() {
162 return uuidGenevaReference;
163 }
164
165
166 public void setGenevaReferenceTitle(String genevaReferenceTitle) {
167 this.genevaReferenceTitle = genevaReferenceTitle;
168 }
169
170
171 public String getGenevaReferenceTitle() {
172 return genevaReferenceTitle;
173 }
174
175
176 public DO_REFERENCES getDoReferences() {
177 return doReferences;
178 }
179 public void setDoReferences(DO_REFERENCES doReferences) {
180 this.doReferences = doReferences;
181 }
182
183 public boolean isDoTaxa() {
184 return doTaxa;
185 }
186 public void setDoTaxa(boolean doTaxa) {
187 this.doTaxa = doTaxa;
188 }
189
190
191
192 }