Project

General

Profile

« Previous | Next » 

Revision cb7f0fab

Added by Andreas Müller over 1 year ago

cleanup

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/specimen/SpecimenImportConfiguratorBase.java
8 8
*/
9 9
package eu.etaxonomy.cdm.io.specimen;
10 10

  
11
import eu.etaxonomy.cdm.common.URI;
12 11
import java.util.HashMap;
13 12
import java.util.Map;
14 13
import java.util.UUID;
15 14

  
15
import eu.etaxonomy.cdm.common.URI;
16 16
import eu.etaxonomy.cdm.ext.occurrence.OccurenceQuery;
17 17
import eu.etaxonomy.cdm.io.common.ImportConfiguratorBase;
18 18
import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer;
......
23 23
/**
24 24
 * @author k.luther
25 25
 * @since 15.07.2016
26
 *
27 26
 */
28 27
public abstract class SpecimenImportConfiguratorBase<CONFIG extends SpecimenImportConfiguratorBase, STATE extends SpecimenImportStateBase<CONFIG,STATE>, InputStream>
29 28
        extends ImportConfiguratorBase<STATE, InputStream> {
30 29

  
31 30
    private static final long serialVersionUID = 4741134251527063988L;
32 31

  
33
    /**
34
     * @param transformer
35
     */
36 32
    public SpecimenImportConfiguratorBase(IInputTransformer transformer) {
37 33
        super(transformer);
38

  
39 34
    }
40 35

  
41 36
    private boolean ignoreImportOfExistingSpecimen = true;
42 37
    private boolean reuseExistingTaxaWhenPossible = true;
43
    private final Map<UUID, UUID> taxonToDescriptionMap = new HashMap<UUID, UUID>();
38
    private final Map<UUID, UUID> taxonToDescriptionMap = new HashMap<>();
44 39

  
45 40
    private Map<String, Team> titleCacheTeam;
46 41
    private Map<String, Person> titleCachePerson;
......
75 70

  
76 71
    private SpecimenOrObservationType type;
77 72

  
73
    private final SpecimenUserInteraction specimenUserInteraction = new SpecimenUserInteraction();
74

  
75
    protected Map<String,UUID> namedAreaDecisions = new HashMap<>();
76

  
77
    private URI reportUri;
78 78

  
79
    /**
80
     * @return the type
81
     */
82 79
    public SpecimenOrObservationType getType() {
83 80
        return type;
84 81
    }
85 82

  
86
    /**
87
     * @param type the type to set
88
     */
89 83
    public void setType(SpecimenOrObservationType type) {
90 84
        this.type = type;
91 85
    }
92 86

  
93
    private final SpecimenUserInteraction specimenUserInteraction = new SpecimenUserInteraction();
94

  
95
    protected Map<String,UUID> namedAreaDecisions = new HashMap<String,UUID>();
96

  
97
    private URI reportUri;
98

  
99

  
100 87
    public boolean isIgnoreImportOfExistingSpecimen() {
101 88
        return ignoreImportOfExistingSpecimen;
102 89
    }
......
129 116
        this.query = query;
130 117
    }
131 118

  
132

  
133

  
134

  
135

  
136 119
    public String getTaxonReference() {
137 120
        return taxonReference;
138 121
    }
......
273 256
        return overwriteExistingSpecimens;
274 257
    }
275 258

  
276

  
277

  
278

  
279
    /**
280
     * @return
281
     */
282 259
    public boolean isReuseExistingTaxaWhenPossible() {
283

  
284 260
        return reuseExistingTaxaWhenPossible;
285 261
    }
286 262

  
287
    /**
288
     * @param titleCacheTeam
289
     */
290 263
    public void setTeams(Map<String, Team> titleCacheTeam) {
291 264
       this.titleCacheTeam  = titleCacheTeam;
292

  
293 265
    }
294 266

  
295 267
    public Team getTeam(String titleCache){
......
299 271
    public Map<String, Team> getTeams(){
300 272
        return titleCacheTeam;
301 273
    }
302
    /**
303
     * @param titleCachePerson
304
     */
274

  
305 275
    public void setPersons(Map<String, Person> titleCachePerson) {
306 276
        this.titleCachePerson = titleCachePerson;
307 277
    }
......
322 292
       this.addMediaAsMediaSpecimen = addMediaAsMediaSpecimen;
323 293
    }
324 294

  
325

  
326
    /**
327
     * @return
328
     */
329 295
    public boolean isIgnoreAuthorship() {
330 296
        return ignoreAuthorship;
331 297
    }
332 298

  
333
    /**
334
     * @return
335
     */
336 299
    public boolean isRemoveCountryFromLocalityText() {
337 300
        return removeCountryFromLocalityText;
338 301
    }
......
345 308
        this.query = query;
346 309
    }
347 310

  
348

  
349

  
350
    /**
351
     * @return the reuseExistingMetaData
352
     */
353 311
    public boolean isReuseExistingMetaData() {
354 312
        return reuseExistingMetaData;
355 313
    }
356 314

  
357
    /**
358
     * @param reuseExistingMetaData the reuseExistingMetaData to set
359
     */
360 315
    public void setReuseExistingMetaData(boolean reuseExistingMetaData) {
361 316
        this.reuseExistingMetaData = reuseExistingMetaData;
362 317
    }
......
391 346
    public void setDownloadSequenceData(boolean downloadSequenceData) {
392 347
        this.downloadSequenceData = downloadSequenceData;
393 348
    }
394

  
395

  
396

  
397
}
349
}

Also available in: Unified diff