* @param persistedTerms\r
* @return\r
*/\r
- private UUID firstPass(Class clazz, Map<UUID, DefinedTermBase> persistedTerms) {\r
+ public UUID firstPass(Class clazz, Map<UUID, DefinedTermBase> persistedTerms) {\r
TransactionStatus txStatus = transactionManager.getTransaction(txDefinition);\r
- logger.debug("loading terms for " + clazz.getSimpleName());\r
+ logger.warn("loading terms for " + clazz.getSimpleName());\r
Map<UUID,DefinedTermBase> terms = new HashMap<UUID,DefinedTermBase>();\r
\r
for(DefinedTermBase d : persistedTerms.values()) {\r
\r
UUID vocabularyUuid = loadedVocabulary.getUuid();\r
\r
- logger.debug("loading vocabulary " + vocabularyUuid);\r
+ logger.warn("loading vocabulary " + vocabularyUuid);\r
TermVocabulary persistedVocabulary = vocabularyDao.findByUuid(vocabularyUuid);\r
if(persistedVocabulary == null) { // i.e. there is no persisted vocabulary\r
- logger.debug("vocabulary " + vocabularyUuid + " does not exist - saving");\r
+ logger.warn("vocabulary " + vocabularyUuid + " does not exist - saving");\r
saveVocabulary(loadedVocabulary);\r
} else {\r
- logger.debug("vocabulary " + vocabularyUuid + " does exists and already has " + persistedVocabulary.size() + " terms");\r
+ logger.warn("vocabulary " + vocabularyUuid + " does exist and already has " + persistedVocabulary.size() + " terms");\r
boolean persistedVocabularyHasMissingTerms = false;\r
for(Object t : loadedVocabulary.getTerms()) { \r
if(!persistedVocabulary.getTerms().contains(t)) {\r
}\r
} \r
if(persistedVocabularyHasMissingTerms) {\r
- logger.debug("vocabulary " + vocabularyUuid + " exists but does not have all the required terms - updating");\r
+ logger.warn("vocabulary " + vocabularyUuid + " exists but does not have all the required terms - updating");\r
updateVocabulary(persistedVocabulary);\r
}\r
}\r