Revision a94f8d8f
Added by Andreas Müller over 5 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/operation/CacheUpdater.java | ||
---|---|---|
15 | 15 |
import eu.etaxonomy.cdm.model.common.TermBase; |
16 | 16 |
import eu.etaxonomy.cdm.model.common.TermVocabulary; |
17 | 17 |
import eu.etaxonomy.cdm.model.description.DescriptionBase; |
18 |
import eu.etaxonomy.cdm.model.description.DescriptiveDataSet; |
|
18 | 19 |
import eu.etaxonomy.cdm.model.description.FeatureTree; |
19 | 20 |
import eu.etaxonomy.cdm.model.description.PolytomousKey; |
20 | 21 |
import eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity; |
... | ... | |
97 | 98 |
//TermBase |
98 | 99 |
if (DefinedTermBase.class.isAssignableFrom(clazz)){ |
99 | 100 |
getTermService().updateCaches((Class) clazz, null, null, null); |
100 |
}else if (FeatureTree.class.isAssignableFrom(clazz)){ |
|
101 |
getFeatureTreeService().updateCaches((Class) clazz, null, null, null); |
|
102 | 101 |
}else if (TermVocabulary.class.isAssignableFrom(clazz)){ |
103 | 102 |
getVocabularyService().updateCaches((Class) clazz, null, null, null); |
104 | 103 |
} |
... | ... | |
120 | 119 |
getCollectionService().updateCaches((Class) clazz, null, null, null); |
121 | 120 |
}else if (Reference.class.isAssignableFrom(clazz)){ |
122 | 121 |
getReferenceService().updateCaches((Class) clazz, null, null, null); |
122 |
//Occurrence |
|
123 | 123 |
}else if (SpecimenOrObservationBase.class.isAssignableFrom(clazz)){ |
124 | 124 |
getOccurrenceService().updateCaches((Class) clazz, null, null, null); |
125 | 125 |
} |
... | ... | |
139 | 139 |
//Polytomous Key |
140 | 140 |
else if (PolytomousKey.class.isAssignableFrom(clazz)){ |
141 | 141 |
getPolytomousKeyService().updateCaches((Class) clazz, null, null, null); |
142 |
} |
|
143 |
//DescriptiveDataSet |
|
144 |
else if (DescriptiveDataSet.class.isAssignableFrom(clazz)){ |
|
145 |
getDescriptiveDataSetService().updateCaches((Class) clazz, null, null, null); |
|
146 |
} |
|
147 |
//FeatureTree |
|
148 |
else if (FeatureTree.class.isAssignableFrom(clazz)){ |
|
149 |
getFeatureTreeService().updateCaches((Class) clazz, null, null, null); |
|
142 | 150 |
} |
143 | 151 |
//unknown class |
144 | 152 |
else { |
Also available in: Unified diff
fix CacheUpdater