Check to see whether repository models are initliased

Mirrored from community commit c81600dbfe2006e6ae6531c52704f12d497e4398
This commit is contained in:
cetra3
2016-10-11 01:37:22 +01:00
parent f8df123669
commit 7eeb32f30b

View File

@@ -172,10 +172,11 @@ public class RecordsManagementAdminServiceImpl extends RecordsManagementAdminBas
@Override @Override
public void onApplicationEvent(ContextRefreshedEvent event) public void onApplicationEvent(ContextRefreshedEvent event)
{ {
transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback<Void>()
{ if(!isCustomMapInit && getDictionaryService().getAllModels().contains(RM_CUSTOM_MODEL)) {
public Void execute() throws Throwable transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback<Void>() {
{ public Void execute() throws Throwable {
// initialise custom properties // initialise custom properties
initCustomMap(); initCustomMap();
@@ -183,6 +184,7 @@ public class RecordsManagementAdminServiceImpl extends RecordsManagementAdminBas
} }
}); });
} }
}
/** /**
* Helper method to indicate whether the custom map is initialised or not. * Helper method to indicate whether the custom map is initialised or not.