Revision 2720ea2c
Added by Andreas Müller over 3 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/distribution/excelupdate/ExcelDistributionUpdateConfigurator.java | ||
---|---|---|
20 | 20 |
/** |
21 | 21 |
* @author a.mueller |
22 | 22 |
* @since 06.04.2017 |
23 |
* |
|
24 | 23 |
*/ |
25 | 24 |
public class ExcelDistributionUpdateConfigurator extends ExcelImportConfiguratorBase{ |
26 | 25 |
|
... | ... | |
35 | 34 |
return result; |
36 | 35 |
} |
37 | 36 |
|
38 |
/** |
|
39 |
* @param uri |
|
40 |
* @param destination |
|
41 |
* @param transformer |
|
42 |
*/ |
|
43 | 37 |
protected ExcelDistributionUpdateConfigurator(URI uri, ICdmDataSource destination, UUID areaVocabularyUuid) { |
44 | 38 |
super(uri, destination, null); |
45 | 39 |
this.areaVocabularyUuid = areaVocabularyUuid; |
46 | 40 |
} |
47 | 41 |
|
48 |
/** |
|
49 |
* {@inheritDoc} |
|
50 |
*/ |
|
51 | 42 |
@Override |
52 | 43 |
public <STATE extends ImportStateBase> STATE getNewState() { |
53 | 44 |
return (STATE)new ExcelDistributionUpdateState(this); |
54 | 45 |
} |
55 | 46 |
|
56 |
/** |
|
57 |
* {@inheritDoc} |
|
58 |
*/ |
|
59 | 47 |
@Override |
60 | 48 |
protected void makeIoClassList() { |
61 | 49 |
ioClassList = new Class[]{ |
... | ... | |
63 | 51 |
}; |
64 | 52 |
} |
65 | 53 |
|
66 |
|
|
67 | 54 |
@Override |
68 | 55 |
public boolean isValid(){ |
69 | 56 |
if (this.areaVocabularyUuid != null && (this.getStream() != null || this.getSource() != null)){ |
... | ... | |
73 | 60 |
} |
74 | 61 |
} |
75 | 62 |
|
76 |
|
|
77 | 63 |
@Override |
78 | 64 |
public Reference getSourceReference() { |
79 | 65 |
if (this.sourceReference == null){ |
... | ... | |
108 | 94 |
public void setCreateNewDistribution(boolean createNewDistribution) { |
109 | 95 |
this.createNewDistribution = createNewDistribution; |
110 | 96 |
} |
111 |
|
|
112 | 97 |
} |
Also available in: Unified diff
cleanup