mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Check to see whether repository models are initliased
Mirrored from community commit c81600dbfe2006e6ae6531c52704f12d497e4398
This commit is contained in:
@@ -172,16 +172,18 @@ public class RecordsManagementAdminServiceImpl extends RecordsManagementAdminBas
|
||||
@Override
|
||||
public void onApplicationEvent(ContextRefreshedEvent event)
|
||||
{
|
||||
transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback<Void>()
|
||||
{
|
||||
public Void execute() throws Throwable
|
||||
{
|
||||
// initialise custom properties
|
||||
initCustomMap();
|
||||
|
||||
return null;
|
||||
}
|
||||
});
|
||||
|
||||
if(!isCustomMapInit && getDictionaryService().getAllModels().contains(RM_CUSTOM_MODEL)) {
|
||||
transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback<Void>() {
|
||||
public Void execute() throws Throwable {
|
||||
|
||||
// initialise custom properties
|
||||
initCustomMap();
|
||||
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user