Revision 91f5b910
Added by Andreas Müller over 5 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelTaxonImport.java | ||
---|---|---|
18 | 18 |
import java.lang.reflect.Method; |
19 | 19 |
import java.sql.ResultSet; |
20 | 20 |
import java.sql.SQLException; |
21 |
import java.util.Arrays; |
|
21 | 22 |
import java.util.HashMap; |
22 | 23 |
import java.util.HashSet; |
24 |
import java.util.List; |
|
23 | 25 |
import java.util.Map; |
24 | 26 |
import java.util.Set; |
25 | 27 |
import java.util.UUID; |
... | ... | |
207 | 209 |
TaxonBase<?> taxonBase; |
208 | 210 |
Synonym synonym; |
209 | 211 |
Taxon taxon; |
210 |
Reference sec = lastScrutinyRef != null? lastScrutinyRef: reference;
|
|
212 |
Reference sec = (lastScrutinyRef != null && isRightAccessSec(refFkInt)) ? lastScrutinyRef: reference;
|
|
211 | 213 |
try { |
212 | 214 |
logger.debug(statusFk); |
213 | 215 |
if (statusFk == T_STATUS_ACCEPTED || statusFk == T_STATUS_UNRESOLVED |
... | ... | |
347 | 349 |
return success; |
348 | 350 |
} |
349 | 351 |
|
350 |
/** |
|
352 |
|
|
353 |
/** |
|
354 |
* @param refFkInt |
|
355 |
* @return |
|
356 |
*/ |
|
357 |
private boolean isRightAccessSec(Integer refFkInt) { |
|
358 |
List<Integer> rightAccessSecs = Arrays.asList(new Integer[]{7000000, 7100000, 7200000, 7300000, |
|
359 |
7400000, 7500000, 7600000, 7700000, 8000000, 8500000, 9000000}); |
|
360 |
return rightAccessSecs.contains(refFkInt); |
|
361 |
} |
|
362 |
|
|
363 |
/** |
|
351 | 364 |
* @param state |
352 | 365 |
* @param taxonBase |
353 | 366 |
* @param notes |
Also available in: Unified diff
ref #3992 fix sec/last scrutiny for MANs