Project

General

Profile

« Previous | Next » 

Revision a77d57ae

Added by Andreas Müller about 4 years ago

cleanup

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/greece/FloraHellenicaImportBase.java
63 63
        }
64 64
    }
65 65

  
66

  
67
    /**
68
     * @param state
69
     * @return
70
     */
71 66
    protected Reference getSourceCitation(SimpleExcelTaxonImportState<CONFIG> state) {
72 67
        if (this.sourceReference == null){
73 68
            this.sourceReference = getPersistentReference(state.getConfig().getSourceReference());
......
75 70
        return this.sourceReference;
76 71
    }
77 72

  
78

  
79 73
    protected Reference getSecReference(SimpleExcelTaxonImportState<CONFIG> state) {
80 74
        if (this.secReference == null){
81 75
            this.secReference = getPersistentReference(state.getConfig().getSecReference());
......
90 84
        return this.secReference2;
91 85
    }
92 86

  
93
    /**
94
     * @param reference
95
     * @return
96
     */
97 87
    private Reference getPersistentReference(Reference reference) {
98 88
        Reference result = getReferenceService().find(reference.getUuid());
99 89
        if (result == null){
......
102 92
        return result;
103 93
    }
104 94

  
105

  
106
    /**
107
     * @param record
108
     * @param state
109
     * @return
110
     */
111 95
    protected Taxon getAcceptedTaxon(Map<String, String> record,
112 96
            SimpleExcelTaxonImportState<CONFIG> state, String key) {
113 97

  
......
176 160
        return name;
177 161
    }
178 162

  
179

  
180
    /**
181
     * @param state
182
     * @param name
183
     * @return
184
     */
185 163
    protected <NAME extends INonViralName> NAME replaceNameAuthorsAndReferences(SimpleExcelTaxonImportState<CONFIG> state, NAME name) {
186 164
        NAME result = deduplicationHelper.getExistingName(state, name);
187 165
        deduplicationHelper.replaceAuthorNamesAndNomRef(state, result);
188 166
        return result;
189 167
    }
190 168

  
191

  
192
    /**
193
     * @param state
194
     * @return
195
     */
196 169
    @Override
197 170
    protected IdentifiableSource makeOriginalSource(SimpleExcelTaxonImportState<CONFIG> state) {
198 171
        return IdentifiableSource.NewDataImportInstance("line: " + state.getCurrentLine(), null, getSourceCitation(state));

Also available in: Unified diff