Revision 0bbede91
Added by Andreas Müller over 2 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/utils/ImportDeduplicationHelper.java | ||
---|---|---|
111 | 111 |
public ImportDeduplicationHelper(ICdmRepository repository, STATE state) { |
112 | 112 |
this.repository = repository; |
113 | 113 |
if (repository == null){ |
114 |
logger.warn("Repository is null. Deduplication does not work against database"); |
|
114 |
logger.warn("Repository is null. Deduplication does not work against database.");
|
|
115 | 115 |
} |
116 | 116 |
if (state == null){ |
117 | 117 |
logger.warn("State is null. Deduplication works without state."); |
... | ... | |
166 | 166 |
|
167 | 167 |
private <T extends ICdmBase> Map<String, Set<T>> refreshSetMap(Map<String, Set<T>> oldMap, |
168 | 168 |
IService<T> service, ImportResult importResult) { |
169 |
|
|
169 | 170 |
Map<String, Set<T>> newMap = new HashMap<>(); |
170 | 171 |
logger.debug("Start loading map"); //TODO debug only |
171 | 172 |
//create UUID set |
... | ... | |
206 | 207 |
return newMap; |
207 | 208 |
} |
208 | 209 |
|
209 |
|
|
210 | 210 |
//************************ PUTTER / GETTER *****************************/ |
211 | 211 |
|
212 | 212 |
//REFERENCES |
... | ... | |
626 | 626 |
} |
627 | 627 |
copyrightMapIsInitialized = true; |
628 | 628 |
} |
629 |
|
|
630 | 629 |
} |
631 | 630 |
|
632 | 631 |
private void putCopyright(String key, Rights right) { |
... | ... | |
636 | 635 |
copyrightMap.put(key, rights); |
637 | 636 |
} |
638 | 637 |
rights.add(CdmBase.deproxy(right)); |
639 |
|
|
640 | 638 |
} |
641 | 639 |
|
642 | 640 |
private String makeCopyrightKey(Rights right) { |
... | ... | |
649 | 647 |
return right.getUuid().toString(); |
650 | 648 |
} |
651 | 649 |
} |
650 |
|
|
652 | 651 |
} |
Also available in: Unified diff
cleanup