import eu.etaxonomy.cdm.model.name.TaxonNameBase;\r
import eu.etaxonomy.cdm.model.occurrence.Collection;\r
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;\r
-import eu.etaxonomy.cdm.model.reference.ReferenceBase;\r
+import eu.etaxonomy.cdm.model.reference.Reference;\r
import eu.etaxonomy.cdm.model.taxon.TaxonBase;\r
-import eu.etaxonomy.cdm.model.taxon.TaxonomicTree;\r
+import eu.etaxonomy.cdm.model.taxon.Classification;\r
\r
\r
@Component\r
private static final Logger logger = Logger.getLogger(CacheUpdater.class);\r
\r
@Override\r
- protected boolean doInvoke(DefaultImportState<CacheUpdaterConfigurator> state) {\r
+ protected void doInvoke(DefaultImportState<CacheUpdaterConfigurator> state) {\r
CacheUpdaterConfigurator config = state.getConfig();\r
if (config.getClassList() == null || config.getClassList().isEmpty()){\r
//!! not yet implemented\r
createClassListFromBoolean();\r
}\r
handleClassList(config.getClassList());\r
- return true;\r
+ return;\r
}\r
\r
\r
DescriptionBase.class, IdentifiableMediaEntity.class, \r
Media.class, Sequence.class,\r
TaxonBase.class, TaxonNameBase.class,\r
- TaxonomicTree.class, TermBase.class\r
+ Classification.class, TermBase.class\r
});\r
handleClassList(list);\r
}else if (clazz.isAssignableFrom(IdentifiableMediaEntity.class)){\r
- List list = Arrays.asList(new Class[]{AgentBase.class, Collection.class, ReferenceBase.class, SpecimenOrObservationBase.class});\r
+ List list = Arrays.asList(new Class[]{AgentBase.class, Collection.class, Reference.class, SpecimenOrObservationBase.class});\r
handleClassList(list);\r
}else if (clazz.isAssignableFrom(TermBase.class)){\r
List list = Arrays.asList(new Class[]{DefinedTermBase.class, FeatureTree.class, TermVocabulary.class });\r
try {\r
//TermBase\r
if (DefinedTermBase.class.isAssignableFrom(clazz)){\r
- getTermService().updateTitleCache((Class) clazz);\r
+ getTermService().updateTitleCache((Class) clazz, null, null, null);\r
}else if (FeatureTree.class.isAssignableFrom(clazz)){\r
- getFeatureTreeService().updateTitleCache((Class) clazz);\r
+ getFeatureTreeService().updateTitleCache((Class) clazz, null, null, null);\r
}else if (TermVocabulary.class.isAssignableFrom(clazz)){\r
- getVocabularyService().updateTitleCache((Class) clazz);\r
+ getVocabularyService().updateTitleCache((Class) clazz, null, null, null);\r
} \r
//DescriptionBase\r
else if (DescriptionBase.class.isAssignableFrom(clazz)){\r
- getDescriptionService().updateTitleCache((Class) clazz);\r
+ getDescriptionService().updateTitleCache((Class) clazz, null, null, null);\r
}\r
//Media\r
else if (Media.class.isAssignableFrom(clazz)){\r
- getMediaService().updateTitleCache((Class) clazz);\r
+ getMediaService().updateTitleCache((Class) clazz, null, null, null);\r
}//TaxonBase\r
else if (TaxonBase.class.isAssignableFrom(clazz)){\r
- getTaxonService().updateTitleCache((Class) clazz);\r
+ getTaxonService().updateTitleCache((Class) clazz, null, null, null);\r
}\r
//IdentifiableMediaEntity\r
else if (AgentBase.class.isAssignableFrom(clazz)){\r
- getAgentService().updateTitleCache((Class) clazz);\r
+ getAgentService().updateTitleCache((Class) clazz, null, null, null);\r
}else if (Collection.class.isAssignableFrom(clazz)){\r
- getCollectionService().updateTitleCache((Class) clazz);\r
- }else if (ReferenceBase.class.isAssignableFrom(clazz)){\r
- getReferenceService().updateTitleCache((Class) clazz);\r
+ getCollectionService().updateTitleCache((Class) clazz, null, null, null);\r
+ }else if (Reference.class.isAssignableFrom(clazz)){\r
+ getReferenceService().updateTitleCache((Class) clazz, null, null, null);\r
}else if (SpecimenOrObservationBase.class.isAssignableFrom(clazz)){\r
- getReferenceService().updateTitleCache((Class) clazz);\r
+ getReferenceService().updateTitleCache((Class) clazz, null, null, null);\r
}\r
//Sequence\r
else if (Sequence.class.isAssignableFrom(clazz)){\r
//TODO misuse TaxonServic for sequence update, use sequence service when it exists\r
- getTaxonService().updateTitleCache((Class) clazz);\r
+ getTaxonService().updateTitleCache((Class) clazz, null, null, null);\r
}\r
//TaxonNameBase\r
else if (TaxonNameBase.class.isAssignableFrom(clazz)){\r
- getNameService().updateTitleCache((Class) clazz);\r
+ getNameService().updateTitleCache((Class) clazz, null, null, null);\r
}\r
//TaxonNameBase\r
- else if (TaxonomicTree.class.isAssignableFrom(clazz)){\r
- getTaxonTreeService().updateTitleCache((Class) clazz);\r
+ else if (Classification.class.isAssignableFrom(clazz)){\r
+ getClassificationService().updateTitleCache((Class) clazz, null, null, null);\r
}\r
//unknown class\r
else {\r